roms-tools 2.2.1__py3-none-any.whl → 2.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ci/environment.yml +1 -0
- roms_tools/__init__.py +2 -0
- roms_tools/analysis/roms_output.py +590 -0
- roms_tools/{setup/download.py → download.py} +3 -0
- roms_tools/{setup/plot.py → plot.py} +34 -28
- roms_tools/setup/boundary_forcing.py +199 -203
- roms_tools/setup/datasets.py +60 -136
- roms_tools/setup/grid.py +40 -67
- roms_tools/setup/initial_conditions.py +249 -247
- roms_tools/setup/nesting.py +6 -27
- roms_tools/setup/river_forcing.py +41 -76
- roms_tools/setup/surface_forcing.py +125 -75
- roms_tools/setup/tides.py +31 -51
- roms_tools/setup/topography.py +1 -1
- roms_tools/setup/utils.py +44 -224
- roms_tools/tests/test_analysis/test_roms_output.py +269 -0
- roms_tools/tests/{test_setup/test_regrid.py → test_regrid.py} +1 -1
- roms_tools/tests/test_setup/test_boundary_forcing.py +221 -58
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/.zattrs +5 -3
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/.zmetadata +156 -121
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/.zarray +2 -2
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/.zattrs +2 -1
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/.zarray +2 -2
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/.zattrs +1 -1
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_east/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_north/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_south/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_west/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_east/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_north/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_south/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_west/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_east/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_north/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_south/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_west/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_east/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_north/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_south/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_west/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_east/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_north/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_south/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_west/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_east/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_north/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_south/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_west/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/.zattrs +8 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/.zattrs +8 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/.zattrs +8 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/.zarray +4 -4
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/.zattrs +8 -0
- roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/.zattrs +4 -4
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/.zmetadata +4 -4
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/angle/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/angle_coarse/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/f/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/h/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_coarse/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_rho/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_u/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_v/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_coarse/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_rho/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_u/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_v/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_coarse/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_rho/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_u/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_v/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/pm/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/pn/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zattrs +2 -1
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zmetadata +6 -4
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/Cs_r/.zattrs +1 -1
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/Cs_w/.zattrs +1 -1
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NH4/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NO3/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/PO4/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/abs_time/.zattrs +1 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/diatSi/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ocean_time/.zattrs +1 -1
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spC/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spCaCO3/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spFe/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/temp/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/u/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ubar/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/v/0.0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/vbar/0.0.0 +0 -0
- roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/.zmetadata +30 -0
- roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zarray +22 -0
- roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zattrs +8 -0
- roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/0.0 +0 -0
- roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/.zmetadata +30 -0
- roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/.zarray +22 -0
- roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/.zattrs +8 -0
- roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/0.0 +0 -0
- roms_tools/tests/test_setup/test_datasets.py +1 -1
- roms_tools/tests/test_setup/test_grid.py +1 -14
- roms_tools/tests/test_setup/test_initial_conditions.py +205 -67
- roms_tools/tests/test_setup/test_nesting.py +0 -16
- roms_tools/tests/test_setup/test_river_forcing.py +9 -37
- roms_tools/tests/test_setup/test_surface_forcing.py +103 -74
- roms_tools/tests/test_setup/test_tides.py +5 -17
- roms_tools/tests/test_setup/test_topography.py +1 -1
- roms_tools/tests/test_setup/test_utils.py +57 -1
- roms_tools/tests/{test_utils.py → test_tiling/test_partition.py} +1 -1
- roms_tools/tiling/partition.py +338 -0
- roms_tools/utils.py +310 -276
- roms_tools/vertical_coordinate.py +227 -0
- {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/METADATA +1 -1
- {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/RECORD +151 -142
- roms_tools/setup/vertical_coordinate.py +0 -109
- /roms_tools/{setup/regrid.py → regrid.py} +0 -0
- {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/LICENSE +0 -0
- {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/WHEEL +0 -0
- {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/top_level.txt +0 -0
|
@@ -3,7 +3,15 @@
|
|
|
3
3
|
"bry_time",
|
|
4
4
|
"eta_rho"
|
|
5
5
|
],
|
|
6
|
+
"_ChunkSizes": [
|
|
7
|
+
1,
|
|
8
|
+
681,
|
|
9
|
+
1440
|
|
10
|
+
],
|
|
11
|
+
"cell_methods": "area: mean",
|
|
6
12
|
"coordinates": "abs_time",
|
|
7
13
|
"long_name": "eastern boundary sea surface height",
|
|
14
|
+
"standard_name": "sea_surface_height_above_geoid",
|
|
15
|
+
"unit_long": "Meters",
|
|
8
16
|
"units": "m"
|
|
9
17
|
}
|
|
Binary file
|
|
@@ -3,7 +3,15 @@
|
|
|
3
3
|
"bry_time",
|
|
4
4
|
"xi_rho"
|
|
5
5
|
],
|
|
6
|
+
"_ChunkSizes": [
|
|
7
|
+
1,
|
|
8
|
+
681,
|
|
9
|
+
1440
|
|
10
|
+
],
|
|
11
|
+
"cell_methods": "area: mean",
|
|
6
12
|
"coordinates": "abs_time",
|
|
7
13
|
"long_name": "northern boundary sea surface height",
|
|
14
|
+
"standard_name": "sea_surface_height_above_geoid",
|
|
15
|
+
"unit_long": "Meters",
|
|
8
16
|
"units": "m"
|
|
9
17
|
}
|
|
Binary file
|
|
@@ -3,7 +3,15 @@
|
|
|
3
3
|
"bry_time",
|
|
4
4
|
"xi_rho"
|
|
5
5
|
],
|
|
6
|
+
"_ChunkSizes": [
|
|
7
|
+
1,
|
|
8
|
+
681,
|
|
9
|
+
1440
|
|
10
|
+
],
|
|
11
|
+
"cell_methods": "area: mean",
|
|
6
12
|
"coordinates": "abs_time",
|
|
7
13
|
"long_name": "southern boundary sea surface height",
|
|
14
|
+
"standard_name": "sea_surface_height_above_geoid",
|
|
15
|
+
"unit_long": "Meters",
|
|
8
16
|
"units": "m"
|
|
9
17
|
}
|
|
Binary file
|
|
@@ -3,7 +3,15 @@
|
|
|
3
3
|
"bry_time",
|
|
4
4
|
"eta_rho"
|
|
5
5
|
],
|
|
6
|
+
"_ChunkSizes": [
|
|
7
|
+
1,
|
|
8
|
+
681,
|
|
9
|
+
1440
|
|
10
|
+
],
|
|
11
|
+
"cell_methods": "area: mean",
|
|
6
12
|
"coordinates": "abs_time",
|
|
7
13
|
"long_name": "western boundary sea surface height",
|
|
14
|
+
"standard_name": "sea_surface_height_above_geoid",
|
|
15
|
+
"unit_long": "Meters",
|
|
8
16
|
"units": "m"
|
|
9
17
|
}
|
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"center_lat": 0,
|
|
3
|
-
"center_lon": 0,
|
|
3
|
+
"center_lon": 0.5,
|
|
4
4
|
"hc": 300.0,
|
|
5
5
|
"hmin": 5.0,
|
|
6
|
-
"roms_tools_version": "0.1.
|
|
6
|
+
"roms_tools_version": "0.1.dev180+gfb7e1ef.d20250106",
|
|
7
7
|
"rot": 20,
|
|
8
|
-
"size_x":
|
|
9
|
-
"size_y":
|
|
8
|
+
"size_x": 1000,
|
|
9
|
+
"size_y": 1000,
|
|
10
10
|
"theta_b": 2.0,
|
|
11
11
|
"theta_s": 5.0,
|
|
12
12
|
"title": "ROMS grid created by ROMS-Tools",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"metadata": {
|
|
3
3
|
".zattrs": {
|
|
4
4
|
"center_lat": 0,
|
|
5
|
-
"center_lon": 0,
|
|
5
|
+
"center_lon": 0.5,
|
|
6
6
|
"hc": 300.0,
|
|
7
7
|
"hmin": 5.0,
|
|
8
|
-
"roms_tools_version": "0.1.
|
|
8
|
+
"roms_tools_version": "0.1.dev180+gfb7e1ef.d20250106",
|
|
9
9
|
"rot": 20,
|
|
10
|
-
"size_x":
|
|
11
|
-
"size_y":
|
|
10
|
+
"size_x": 1000,
|
|
11
|
+
"size_y": 1000,
|
|
12
12
|
"theta_b": 2.0,
|
|
13
13
|
"theta_s": 5.0,
|
|
14
14
|
"title": "ROMS grid created by ROMS-Tools",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zattrs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"adjust_depth_for_sea_surface_height": "False",
|
|
2
3
|
"bgc_source": "CESM_REGRIDDED",
|
|
3
4
|
"hc": 250.0,
|
|
4
5
|
"ini_time": "2021-06-29 00:00:00",
|
|
5
6
|
"model_reference_date": "2000-01-01 00:00:00",
|
|
6
|
-
"roms_tools_version": "0.1.
|
|
7
|
+
"roms_tools_version": "0.1.dev177",
|
|
7
8
|
"source": "GLORYS",
|
|
8
9
|
"theta_b": 2.0,
|
|
9
10
|
"theta_s": 5.0,
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zmetadata
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
".zattrs": {
|
|
4
|
+
"adjust_depth_for_sea_surface_height": "False",
|
|
4
5
|
"bgc_source": "CESM_REGRIDDED",
|
|
5
6
|
"hc": 250.0,
|
|
6
7
|
"ini_time": "2021-06-29 00:00:00",
|
|
7
8
|
"model_reference_date": "2000-01-01 00:00:00",
|
|
8
|
-
"roms_tools_version": "0.1.
|
|
9
|
+
"roms_tools_version": "0.1.dev177",
|
|
9
10
|
"source": "GLORYS",
|
|
10
11
|
"theta_b": 2.0,
|
|
11
12
|
"theta_s": 5.0,
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
"_ARRAY_DIMENSIONS": [
|
|
113
114
|
"s_rho"
|
|
114
115
|
],
|
|
115
|
-
"long_name": "
|
|
116
|
+
"long_name": "Vertical stretching function at rho-points",
|
|
116
117
|
"units": "nondimensional"
|
|
117
118
|
},
|
|
118
119
|
"Cs_w/.zarray": {
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"_ARRAY_DIMENSIONS": [
|
|
140
141
|
"s_w"
|
|
141
142
|
],
|
|
142
|
-
"long_name": "
|
|
143
|
+
"long_name": "Vertical stretching function at w-points",
|
|
143
144
|
"units": "nondimensional"
|
|
144
145
|
},
|
|
145
146
|
"DIC/.zarray": {
|
|
@@ -722,6 +723,7 @@
|
|
|
722
723
|
"ocean_time"
|
|
723
724
|
],
|
|
724
725
|
"calendar": "proleptic_gregorian",
|
|
726
|
+
"long_name": "absolute time",
|
|
725
727
|
"units": "days since 2021-06-29 00:00:00"
|
|
726
728
|
},
|
|
727
729
|
"diatC/.zarray": {
|
|
@@ -1081,7 +1083,7 @@
|
|
|
1081
1083
|
"_ARRAY_DIMENSIONS": [
|
|
1082
1084
|
"ocean_time"
|
|
1083
1085
|
],
|
|
1084
|
-
"long_name": "seconds since 2000-01-01 00:00:00",
|
|
1086
|
+
"long_name": "relative time: seconds since 2000-01-01 00:00:00",
|
|
1085
1087
|
"units": "seconds"
|
|
1086
1088
|
},
|
|
1087
1089
|
"salt/.zarray": {
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NH4/0.0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NO3/0.0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/PO4/0.0.0.0
CHANGED
|
Binary file
|
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spC/0.0.0.0
CHANGED
|
Binary file
|
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spFe/0.0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/temp/0.0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/u/0.0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ubar/0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/v/0.0.0.0
CHANGED
|
Binary file
|
roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/vbar/0.0.0
CHANGED
|
Binary file
|
|
@@ -32,6 +32,36 @@
|
|
|
32
32
|
"long_name": "absolute time",
|
|
33
33
|
"units": "days since 1997-12-15 00:00:00"
|
|
34
34
|
},
|
|
35
|
+
"river_location/.zarray": {
|
|
36
|
+
"chunks": [
|
|
37
|
+
20,
|
|
38
|
+
20
|
|
39
|
+
],
|
|
40
|
+
"compressor": {
|
|
41
|
+
"blocksize": 0,
|
|
42
|
+
"clevel": 5,
|
|
43
|
+
"cname": "lz4",
|
|
44
|
+
"id": "blosc",
|
|
45
|
+
"shuffle": 1
|
|
46
|
+
},
|
|
47
|
+
"dtype": "<f8",
|
|
48
|
+
"fill_value": "NaN",
|
|
49
|
+
"filters": null,
|
|
50
|
+
"order": "C",
|
|
51
|
+
"shape": [
|
|
52
|
+
20,
|
|
53
|
+
20
|
|
54
|
+
],
|
|
55
|
+
"zarr_format": 2
|
|
56
|
+
},
|
|
57
|
+
"river_location/.zattrs": {
|
|
58
|
+
"_ARRAY_DIMENSIONS": [
|
|
59
|
+
"eta_rho",
|
|
60
|
+
"xi_rho"
|
|
61
|
+
],
|
|
62
|
+
"long_name": "River index plus local volume fraction",
|
|
63
|
+
"units": "none"
|
|
64
|
+
},
|
|
35
65
|
"river_name/.zarray": {
|
|
36
66
|
"chunks": [
|
|
37
67
|
6
|
roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zarray
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chunks": [
|
|
3
|
+
20,
|
|
4
|
+
20
|
|
5
|
+
],
|
|
6
|
+
"compressor": {
|
|
7
|
+
"blocksize": 0,
|
|
8
|
+
"clevel": 5,
|
|
9
|
+
"cname": "lz4",
|
|
10
|
+
"id": "blosc",
|
|
11
|
+
"shuffle": 1
|
|
12
|
+
},
|
|
13
|
+
"dtype": "<f8",
|
|
14
|
+
"fill_value": "NaN",
|
|
15
|
+
"filters": null,
|
|
16
|
+
"order": "C",
|
|
17
|
+
"shape": [
|
|
18
|
+
20,
|
|
19
|
+
20
|
|
20
|
+
],
|
|
21
|
+
"zarr_format": 2
|
|
22
|
+
}
|
|
Binary file
|
|
@@ -60,6 +60,36 @@
|
|
|
60
60
|
],
|
|
61
61
|
"long_name": "Month index (1-12)"
|
|
62
62
|
},
|
|
63
|
+
"river_location/.zarray": {
|
|
64
|
+
"chunks": [
|
|
65
|
+
20,
|
|
66
|
+
20
|
|
67
|
+
],
|
|
68
|
+
"compressor": {
|
|
69
|
+
"blocksize": 0,
|
|
70
|
+
"clevel": 5,
|
|
71
|
+
"cname": "lz4",
|
|
72
|
+
"id": "blosc",
|
|
73
|
+
"shuffle": 1
|
|
74
|
+
},
|
|
75
|
+
"dtype": "<f8",
|
|
76
|
+
"fill_value": "NaN",
|
|
77
|
+
"filters": null,
|
|
78
|
+
"order": "C",
|
|
79
|
+
"shape": [
|
|
80
|
+
20,
|
|
81
|
+
20
|
|
82
|
+
],
|
|
83
|
+
"zarr_format": 2
|
|
84
|
+
},
|
|
85
|
+
"river_location/.zattrs": {
|
|
86
|
+
"_ARRAY_DIMENSIONS": [
|
|
87
|
+
"eta_rho",
|
|
88
|
+
"xi_rho"
|
|
89
|
+
],
|
|
90
|
+
"long_name": "River index plus local volume fraction",
|
|
91
|
+
"units": "none"
|
|
92
|
+
},
|
|
63
93
|
"river_name/.zarray": {
|
|
64
94
|
"chunks": [
|
|
65
95
|
6
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chunks": [
|
|
3
|
+
20,
|
|
4
|
+
20
|
|
5
|
+
],
|
|
6
|
+
"compressor": {
|
|
7
|
+
"blocksize": 0,
|
|
8
|
+
"clevel": 5,
|
|
9
|
+
"cname": "lz4",
|
|
10
|
+
"id": "blosc",
|
|
11
|
+
"shuffle": 1
|
|
12
|
+
},
|
|
13
|
+
"dtype": "<f8",
|
|
14
|
+
"fill_value": "NaN",
|
|
15
|
+
"filters": null,
|
|
16
|
+
"order": "C",
|
|
17
|
+
"shape": [
|
|
18
|
+
20,
|
|
19
|
+
20
|
|
20
|
+
],
|
|
21
|
+
"zarr_format": 2
|
|
22
|
+
}
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ import xarray as xr
|
|
|
4
4
|
from roms_tools import Grid
|
|
5
5
|
import importlib.metadata
|
|
6
6
|
import textwrap
|
|
7
|
-
from roms_tools.
|
|
7
|
+
from roms_tools.download import download_test_data
|
|
8
8
|
from conftest import calculate_file_hash
|
|
9
9
|
from pathlib import Path
|
|
10
10
|
|
|
@@ -90,7 +90,6 @@ def test_plot_save_methods(tmp_path):
|
|
|
90
90
|
str(tmp_path / file_str),
|
|
91
91
|
]: # test for Path object and str
|
|
92
92
|
|
|
93
|
-
# Test saving without partitioning
|
|
94
93
|
saved_filenames = grid.save(filepath)
|
|
95
94
|
# Check if the .nc file was created
|
|
96
95
|
filepath = Path(filepath).with_suffix(".nc")
|
|
@@ -100,18 +99,6 @@ def test_plot_save_methods(tmp_path):
|
|
|
100
99
|
# Clean up the .nc file
|
|
101
100
|
filepath.unlink()
|
|
102
101
|
|
|
103
|
-
# Test saving with partitioning
|
|
104
|
-
saved_filenames = grid.save(filepath, np_eta=2, np_xi=5)
|
|
105
|
-
|
|
106
|
-
filepath_str = str(filepath.with_suffix(""))
|
|
107
|
-
expected_filepath_list = [
|
|
108
|
-
Path(filepath_str + f".{index}.nc") for index in range(10)
|
|
109
|
-
]
|
|
110
|
-
assert saved_filenames == expected_filepath_list
|
|
111
|
-
for expected_filepath in expected_filepath_list:
|
|
112
|
-
assert expected_filepath.exists()
|
|
113
|
-
expected_filepath.unlink()
|
|
114
|
-
|
|
115
102
|
|
|
116
103
|
def test_raise_if_domain_too_large():
|
|
117
104
|
with pytest.raises(ValueError, match="Domain size exceeds"):
|