Commit c70eee5b authored by renzo's avatar renzo

fix filtro uruguay

parent 36d2e20c
function []=filtro_Uruguay(output_path)
function []=filtro_Uruguay(output_path, date)
%%
% %Descargados de la web ANP. {'Fecha' 'Hora' 'Nivel de Bater�a (Med)V' 'Nivel de Bater�a (Max)V' 'Nivel de Bater�a (Min)V'}
formatted_date = datestr(now, 'yyyymmdd');
FILES=dir('Isla*.csv');
file_name=FILES.name;
fileID = fopen(file_name)
......@@ -133,7 +132,7 @@ function []=filtro_Uruguay(output_path)
fecha=datenum(orden(6:end-5));
IdF=modificado1_2_3(6:end-5);
save(strcat(output_path, "/", formatted_date,'IdF.mat'),'IdF','fecha')
save(strcat(output_path, "/", date,'IdF.mat'),'IdF','fecha')
%%
......@@ -296,7 +295,7 @@ S=dir('Isla*.csv');
fecha=datenum(orden(6:end-5));
LPa=modificado1_2_3_4(6:end-5);
save(strcat(output_path, "/", formatted_date, 'LPa.mat'),'LPa','fecha')
save(strcat(output_path, "/", date, 'LPa.mat'),'LPa','fecha')
%%%plot(fecha,ordenados(6:end-5,5));hold on;plot(fecha,LPa)
......@@ -390,7 +389,7 @@ S=dir('Isla*.csv');
fecha=datenum(orden);
MVD=modificado1_2;
save(strcat(output_path, "/", formatted_date,'MVD.mat'),'MVD','fecha')
save(strcat(output_path, "/", date,'MVD.mat'),'MVD','fecha')
end
\ No newline at end of file
......@@ -11,7 +11,7 @@ def download_all(args):
path = config["output_path"]
dates = [datetime.strptime(f[:8], '%Y%m%d') for f in listdir(path) if isfile(join(path, f)) and f[-3:] == "mat"]
min_date = min(dates)
max_date = max(dates)
max_date = datetime.today()
cur_date = min_date
while (cur_date != max_date):
if (cur_date not in dates):
......
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