Commit 2979a9d8 authored by renzo's avatar renzo

fix copernicus

parent 8dee4301
......@@ -20,7 +20,7 @@ def download_copernicus(tmp_path):
+ out_name + " --user rfing --pwd RodrigoCMEMS2018"
call = call.replace("DATE-MIN", (date.today() - timedelta(days=22)).strftime("%Y-%m-%d"))
call = call.replace("DATE-MAX", (date.today() + timedelta(days=9)).strp("%Y-%m-%d"))
call = call.replace("DATE-MAX", (date.today() + timedelta(days=9)).strftime("%Y-%m-%d"))
subprocess.run(call, shell=True, check=True, stdout=sys.stdout, stderr=sys.stderr)
# Se hace lo siguiente porque a veces motuclient retorna 0 cuando hubo error
if not os.path.isfile(download_dir + "/" + out_name):
......
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