diff --git a/Inst_eddies/Tests/long_tests.json b/Inst_eddies/Tests/long_tests.json index 8174a3b0bb2cd64dfc40f0a86a4418b81fa6a577..3dcee46aaeb8694463d6098c950e07e589391c04 100644 --- a/Inst_eddies/Tests/long_tests.json +++ b/Inst_eddies/Tests/long_tests.json @@ -83,7 +83,7 @@ "$build_dir/Inst_eddies/inst_eddies_Aviso.py", "-b", "1.625", "15.625", "-38.375", "-30.375", "$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" ] }, @@ -106,7 +106,7 @@ [ "$build_dir/Inst_eddies/inst_eddies_Aviso.py", "$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" ], "description": @@ -121,7 +121,7 @@ "$build_dir/Inst_eddies/inst_eddies_Aviso.py", "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "--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"] }, @@ -134,7 +134,7 @@ "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "--last_date=2006-01-15", "--bbox", "0.125", "29.875", "-59.875", "-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"] } diff --git a/Inst_eddies/Tests/short_tests.json b/Inst_eddies/Tests/short_tests.json index 2c3cb0417d29c723bcb436f59d9e55f8b1a6c491..7e60c76ab13091840735981997b1f6490c3e97c0 100644 --- a/Inst_eddies/Tests/short_tests.json +++ b/Inst_eddies/Tests/short_tests.json @@ -420,7 +420,8 @@ [ "$build_dir/Inst_eddies/inst_eddies_Aviso.py", "--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" }, @@ -521,7 +522,7 @@ "--template=dt_global_allsat_phy_l4_%Y%m%d_20210726.nc", "--last_date=2006-01-15", "--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"] } diff --git a/Inst_eddies/inst_eddies_Aviso.py b/Inst_eddies/inst_eddies_Aviso.py index 9b5c81713b093cef7b20a77062b469dfa6fa5ab9..86d4142eb8231accefd72869d7385a7f43c6b2ec 100644 --- a/Inst_eddies/inst_eddies_Aviso.py +++ b/Inst_eddies/inst_eddies_Aviso.py @@ -26,6 +26,8 @@ argparser = argparse.ArgumentParser() argparser.add_argument("first_file", help = "NetCDF file containing SSH and velocity at a " "single date") +argparser.add_argument("slice", type = int, + help = "slice number to create") argparser.add_argument("--template", help = "template of basename with date.strftime format " "codes, only used for several dates") @@ -59,4 +61,4 @@ else: inst_eddies.loop_inst_eddies(filename_generator(args.first_file, first_date, last_date, args.template, dirname), args.bbox, d, - my_slice = 0) + my_slice = args.slice)