Commit 16373fe0 authored by renzo's avatar renzo

noaa arreglado

parent f54e08c4
......@@ -61,7 +61,8 @@ def copy_mats(paths, dir, filenames, patterns):
substring_parts = name_without_date.split(template)
if len(substring_parts) > 1 and not substring_parts[-1]: # es un .mat del source i
found = True
copy(dir + "/" + name, paths[source])
if not os.path.exists(paths[source] + "/" + name):
copy(dir + "/" + name, paths[source])
return found
root = "/home/renzo/Desktop/automatizacion-de-bajadas/tmp"
......
......@@ -4,8 +4,11 @@ function []=procesar_noaa(output_path, day, nctoolbox_path)
if day == "today"
formatted_date = datestr(now, 'yyyymmdd');
else
elseif day == "yesterday"
formatted_date = datestr(now - days(1), 'yyyymmdd');
else
[~,formatted_date,~] = fileparts(pwd)
end
date = datenum(formatted_date,'yyyymmdd')
date=datevec(date)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment