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

Add argument slice to `inst_eddies_Aviso.py`

So the script can write to a slice other than 0.
parent b5ed95d1
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
"$build_dir/Inst_eddies/inst_eddies_Aviso.py", "$build_dir/Inst_eddies/inst_eddies_Aviso.py",
"-b", "1.625", "15.625", "-38.375", "-30.375", "-b", "1.625", "15.625", "-38.375", "-30.375",
"$large_input_dir/dt_global_allsat_phy_l4_20060101_20210726.nc", "$large_input_dir/dt_global_allsat_phy_l4_20060101_20210726.nc",
"--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "-l", "0", "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "-l",
"20060115" "20060115"
] ]
}, },
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
[ [
"$build_dir/Inst_eddies/inst_eddies_Aviso.py", "$build_dir/Inst_eddies/inst_eddies_Aviso.py",
"$large_input_dir/dataset-duacs-global-allsat-phy-2020-01-31.nc", "$large_input_dir/dataset-duacs-global-allsat-phy-2020-01-31.nc",
"--template=dataset-duacs-global-allsat-phy-%Y-%m-%d.nc", "-l", "0", "--template=dataset-duacs-global-allsat-phy-%Y-%m-%d.nc", "-l",
"20200202" "20200202"
], ],
"description": "description":
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
"$build_dir/Inst_eddies/inst_eddies_Aviso.py", "$build_dir/Inst_eddies/inst_eddies_Aviso.py",
"--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc",
"--last_date=1993-03-31", "--bbox", "20", "30", "35", "42", "--last_date=1993-03-31", "--bbox", "20", "30", "35", "42",
"$large_input_dir/dt_global_allsat_phy_l4_19930101_20210726.nc" "$large_input_dir/dt_global_allsat_phy_l4_19930101_20210726.nc", "0"
], ],
"create_file": ["config_nml.txt", "&config_nml /\n"] "create_file": ["config_nml.txt", "&config_nml /\n"]
}, },
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
"--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc",
"--last_date=2006-01-15", "--bbox", "0.125", "29.875", "-59.875", "--last_date=2006-01-15", "--bbox", "0.125", "29.875", "-59.875",
"-15.125", "-15.125",
"$large_input_dir/dt_global_allsat_phy_l4_20060101_20210726.nc" "$large_input_dir/dt_global_allsat_phy_l4_20060101_20210726.nc", "0"
], ],
"create_file": ["config_nml.txt", "&config_nml /\n"] "create_file": ["config_nml.txt", "&config_nml /\n"]
} }
......
...@@ -420,7 +420,8 @@ ...@@ -420,7 +420,8 @@
[ [
"$build_dir/Inst_eddies/inst_eddies_Aviso.py", "$build_dir/Inst_eddies/inst_eddies_Aviso.py",
"--template=huv_region_1_%Y_%m_%d.nc", "-l", "2006-01-04", "--template=huv_region_1_%Y_%m_%d.nc", "-l", "2006-01-04",
"$src_dir/Inst_eddies/Tests/Input/Region_1/huv_region_1_2006_01_01.nc" "$src_dir/Inst_eddies/Tests/Input/Region_1/huv_region_1_2006_01_01.nc",
"0"
], ],
"input": "20454\n" "input": "20454\n"
}, },
...@@ -521,7 +522,7 @@ ...@@ -521,7 +522,7 @@
"--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc",
"--last_date=2006-01-15", "--last_date=2006-01-15",
"--bbox", "16.125", "20.875", "-38.875", "-34.125", "--bbox", "16.125", "20.875", "-38.875", "-34.125",
"$large_input_dir/dt_global_allsat_phy_l4_20060101_20210726.nc" "$large_input_dir/dt_global_allsat_phy_l4_20060101_20210726.nc", "0"
], ],
"create_file": ["config_nml.txt", "&config_nml /\n"] "create_file": ["config_nml.txt", "&config_nml /\n"]
} }
......
...@@ -26,6 +26,8 @@ argparser = argparse.ArgumentParser() ...@@ -26,6 +26,8 @@ argparser = argparse.ArgumentParser()
argparser.add_argument("first_file", argparser.add_argument("first_file",
help = "NetCDF file containing SSH and velocity at a " help = "NetCDF file containing SSH and velocity at a "
"single date") "single date")
argparser.add_argument("slice", type = int,
help = "slice number to create")
argparser.add_argument("--template", argparser.add_argument("--template",
help = "template of basename with date.strftime format " help = "template of basename with date.strftime format "
"codes, only used for several dates") "codes, only used for several dates")
...@@ -59,4 +61,4 @@ else: ...@@ -59,4 +61,4 @@ else:
inst_eddies.loop_inst_eddies(filename_generator(args.first_file, first_date, inst_eddies.loop_inst_eddies(filename_generator(args.first_file, first_date,
last_date, args.template, last_date, args.template,
dirname), args.bbox, d, dirname), args.bbox, d,
my_slice = 0) my_slice = args.slice)
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