Skip to content
Snippets Groups Projects
Commit 16317009 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Do not allow the first file to be missing

parent c14b2bfb
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,14 @@ def loop_inst_eddies(files, bbox, d, my_slice): ...@@ -84,6 +84,14 @@ def loop_inst_eddies(files, bbox, d, my_slice):
cropped_fname = f"SHPC/Slice_{my_slice}/cropped.nc" cropped_fname = f"SHPC/Slice_{my_slice}/cropped.nc"
unpacked_fname = f"SHPC/Slice_{my_slice}/unpacked.nc" unpacked_fname = f"SHPC/Slice_{my_slice}/unpacked.nc"
# First file is out of the loop because it must be present:
nc_file = next(files)
print("inst_eddies.loop_inst_eddies: Date:", d)
print("inst_eddies.loop_inst_eddies: Input file:", nc_file, flush = True)
process_1_file(bbox, nco_instance, nc_file, cropped_fname, unpacked_fname,
inst_eddies_exe, d, my_slice, writer)
d += 1
for nc_file in files: for nc_file in files:
print("inst_eddies.loop_inst_eddies: Date:", d) print("inst_eddies.loop_inst_eddies: Date:", d)
print("inst_eddies.loop_inst_eddies: Input file:", nc_file, print("inst_eddies.loop_inst_eddies: Input file:", nc_file,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment