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.
Files changed (152) hide show
  1. ci/environment.yml +1 -0
  2. roms_tools/__init__.py +2 -0
  3. roms_tools/analysis/roms_output.py +590 -0
  4. roms_tools/{setup/download.py → download.py} +3 -0
  5. roms_tools/{setup/plot.py → plot.py} +34 -28
  6. roms_tools/setup/boundary_forcing.py +199 -203
  7. roms_tools/setup/datasets.py +60 -136
  8. roms_tools/setup/grid.py +40 -67
  9. roms_tools/setup/initial_conditions.py +249 -247
  10. roms_tools/setup/nesting.py +6 -27
  11. roms_tools/setup/river_forcing.py +41 -76
  12. roms_tools/setup/surface_forcing.py +125 -75
  13. roms_tools/setup/tides.py +31 -51
  14. roms_tools/setup/topography.py +1 -1
  15. roms_tools/setup/utils.py +44 -224
  16. roms_tools/tests/test_analysis/test_roms_output.py +269 -0
  17. roms_tools/tests/{test_setup/test_regrid.py → test_regrid.py} +1 -1
  18. roms_tools/tests/test_setup/test_boundary_forcing.py +221 -58
  19. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/.zattrs +5 -3
  20. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/.zmetadata +156 -121
  21. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/.zarray +2 -2
  22. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/.zattrs +2 -1
  23. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/0 +0 -0
  24. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/.zarray +2 -2
  25. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/.zattrs +1 -1
  26. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/0 +0 -0
  27. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_east/.zarray +4 -4
  28. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_east/0.0.0 +0 -0
  29. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_north/.zarray +4 -4
  30. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_north/0.0.0 +0 -0
  31. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_south/.zarray +4 -4
  32. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_south/0.0.0 +0 -0
  33. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_west/.zarray +4 -4
  34. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_west/0.0.0 +0 -0
  35. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_east/.zarray +4 -4
  36. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_east/0.0.0 +0 -0
  37. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_north/.zarray +4 -4
  38. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_north/0.0.0 +0 -0
  39. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_south/.zarray +4 -4
  40. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_south/0.0.0 +0 -0
  41. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_west/.zarray +4 -4
  42. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_west/0.0.0 +0 -0
  43. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_east/.zarray +4 -4
  44. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_east/0.0.0 +0 -0
  45. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_north/.zarray +4 -4
  46. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_north/0.0.0 +0 -0
  47. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_south/.zarray +4 -4
  48. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_south/0.0.0 +0 -0
  49. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_west/.zarray +4 -4
  50. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_west/0.0.0 +0 -0
  51. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_east/.zarray +4 -4
  52. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_east/0.0 +0 -0
  53. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_north/.zarray +4 -4
  54. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_north/0.0 +0 -0
  55. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_south/.zarray +4 -4
  56. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_south/0.0 +0 -0
  57. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_west/.zarray +4 -4
  58. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_west/0.0 +0 -0
  59. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_east/.zarray +4 -4
  60. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_east/0.0.0 +0 -0
  61. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_north/.zarray +4 -4
  62. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_north/0.0.0 +0 -0
  63. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_south/.zarray +4 -4
  64. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_south/0.0.0 +0 -0
  65. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_west/.zarray +4 -4
  66. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_west/0.0.0 +0 -0
  67. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_east/.zarray +4 -4
  68. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_east/0.0 +0 -0
  69. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_north/.zarray +4 -4
  70. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_north/0.0 +0 -0
  71. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_south/.zarray +4 -4
  72. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_south/0.0 +0 -0
  73. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_west/.zarray +4 -4
  74. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_west/0.0 +0 -0
  75. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/.zarray +4 -4
  76. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/.zattrs +8 -0
  77. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/0.0 +0 -0
  78. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/.zarray +4 -4
  79. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/.zattrs +8 -0
  80. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/0.0 +0 -0
  81. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/.zarray +4 -4
  82. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/.zattrs +8 -0
  83. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/0.0 +0 -0
  84. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/.zarray +4 -4
  85. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/.zattrs +8 -0
  86. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/0.0 +0 -0
  87. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/.zattrs +4 -4
  88. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/.zmetadata +4 -4
  89. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/angle/0.0 +0 -0
  90. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/angle_coarse/0.0 +0 -0
  91. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/f/0.0 +0 -0
  92. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/h/0.0 +0 -0
  93. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_coarse/0.0 +0 -0
  94. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_rho/0.0 +0 -0
  95. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_u/0.0 +0 -0
  96. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_v/0.0 +0 -0
  97. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_coarse/0.0 +0 -0
  98. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_rho/0.0 +0 -0
  99. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_u/0.0 +0 -0
  100. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_v/0.0 +0 -0
  101. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_coarse/0.0 +0 -0
  102. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_rho/0.0 +0 -0
  103. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_u/0.0 +0 -0
  104. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_v/0.0 +0 -0
  105. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/pm/0.0 +0 -0
  106. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/pn/0.0 +0 -0
  107. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zattrs +2 -1
  108. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zmetadata +6 -4
  109. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/Cs_r/.zattrs +1 -1
  110. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/Cs_w/.zattrs +1 -1
  111. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NH4/0.0.0.0 +0 -0
  112. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NO3/0.0.0.0 +0 -0
  113. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/PO4/0.0.0.0 +0 -0
  114. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/abs_time/.zattrs +1 -0
  115. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/diatSi/0.0.0.0 +0 -0
  116. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ocean_time/.zattrs +1 -1
  117. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spC/0.0.0.0 +0 -0
  118. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spCaCO3/0.0.0.0 +0 -0
  119. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spFe/0.0.0.0 +0 -0
  120. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/temp/0.0.0.0 +0 -0
  121. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/u/0.0.0.0 +0 -0
  122. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ubar/0.0.0 +0 -0
  123. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/v/0.0.0.0 +0 -0
  124. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/vbar/0.0.0 +0 -0
  125. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/.zmetadata +30 -0
  126. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zarray +22 -0
  127. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zattrs +8 -0
  128. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/0.0 +0 -0
  129. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/.zmetadata +30 -0
  130. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/.zarray +22 -0
  131. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/.zattrs +8 -0
  132. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/0.0 +0 -0
  133. roms_tools/tests/test_setup/test_datasets.py +1 -1
  134. roms_tools/tests/test_setup/test_grid.py +1 -14
  135. roms_tools/tests/test_setup/test_initial_conditions.py +205 -67
  136. roms_tools/tests/test_setup/test_nesting.py +0 -16
  137. roms_tools/tests/test_setup/test_river_forcing.py +9 -37
  138. roms_tools/tests/test_setup/test_surface_forcing.py +103 -74
  139. roms_tools/tests/test_setup/test_tides.py +5 -17
  140. roms_tools/tests/test_setup/test_topography.py +1 -1
  141. roms_tools/tests/test_setup/test_utils.py +57 -1
  142. roms_tools/tests/{test_utils.py → test_tiling/test_partition.py} +1 -1
  143. roms_tools/tiling/partition.py +338 -0
  144. roms_tools/utils.py +310 -276
  145. roms_tools/vertical_coordinate.py +227 -0
  146. {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/METADATA +1 -1
  147. {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/RECORD +151 -142
  148. roms_tools/setup/vertical_coordinate.py +0 -109
  149. /roms_tools/{setup/regrid.py → regrid.py} +0 -0
  150. {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/LICENSE +0 -0
  151. {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/WHEEL +0 -0
  152. {roms_tools-2.2.1.dist-info → roms_tools-2.4.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "chunks": [
3
- 1,
4
- 4
3
+ 2,
4
+ 5
5
5
  ],
6
6
  "compressor": {
7
7
  "blocksize": 0,
@@ -15,8 +15,8 @@
15
15
  "filters": null,
16
16
  "order": "C",
17
17
  "shape": [
18
- 1,
19
- 4
18
+ 2,
19
+ 5
20
20
  ],
21
21
  "zarr_format": 2
22
22
  }
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "chunks": [
3
- 1,
4
- 4
3
+ 2,
4
+ 5
5
5
  ],
6
6
  "compressor": {
7
7
  "blocksize": 0,
@@ -15,8 +15,8 @@
15
15
  "filters": null,
16
16
  "order": "C",
17
17
  "shape": [
18
- 1,
19
- 4
18
+ 2,
19
+ 5
20
20
  ],
21
21
  "zarr_format": 2
22
22
  }
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "chunks": [
3
- 1,
4
- 4
3
+ 2,
4
+ 5
5
5
  ],
6
6
  "compressor": {
7
7
  "blocksize": 0,
@@ -15,8 +15,8 @@
15
15
  "filters": null,
16
16
  "order": "C",
17
17
  "shape": [
18
- 1,
19
- 4
18
+ 2,
19
+ 5
20
20
  ],
21
21
  "zarr_format": 2
22
22
  }
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "chunks": [
3
- 1,
4
- 4
3
+ 2,
4
+ 5
5
5
  ],
6
6
  "compressor": {
7
7
  "blocksize": 0,
@@ -15,8 +15,8 @@
15
15
  "filters": null,
16
16
  "order": "C",
17
17
  "shape": [
18
- 1,
19
- 4
18
+ 2,
19
+ 5
20
20
  ],
21
21
  "zarr_format": 2
22
22
  }
@@ -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
  }
@@ -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.dev239+dirty",
6
+ "roms_tools_version": "0.1.dev180+gfb7e1ef.d20250106",
7
7
  "rot": 20,
8
- "size_x": 100,
9
- "size_y": 100,
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.dev239+dirty",
8
+ "roms_tools_version": "0.1.dev180+gfb7e1ef.d20250106",
9
9
  "rot": 20,
10
- "size_x": 100,
11
- "size_y": 100,
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",
@@ -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.dev157+dirty",
7
+ "roms_tools_version": "0.1.dev177",
7
8
  "source": "GLORYS",
8
9
  "theta_b": 2.0,
9
10
  "theta_s": 5.0,
@@ -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.dev157+dirty",
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": "S-coordinate stretching curves at rho-points",
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": "S-coordinate stretching curves at w-points",
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": {
@@ -2,6 +2,6 @@
2
2
  "_ARRAY_DIMENSIONS": [
3
3
  "s_rho"
4
4
  ],
5
- "long_name": "S-coordinate stretching curves at rho-points",
5
+ "long_name": "Vertical stretching function at rho-points",
6
6
  "units": "nondimensional"
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "_ARRAY_DIMENSIONS": [
3
3
  "s_w"
4
4
  ],
5
- "long_name": "S-coordinate stretching curves at w-points",
5
+ "long_name": "Vertical stretching function at w-points",
6
6
  "units": "nondimensional"
7
7
  }
@@ -3,5 +3,6 @@
3
3
  "ocean_time"
4
4
  ],
5
5
  "calendar": "proleptic_gregorian",
6
+ "long_name": "absolute time",
6
7
  "units": "days since 2021-06-29 00:00:00"
7
8
  }
@@ -2,6 +2,6 @@
2
2
  "_ARRAY_DIMENSIONS": [
3
3
  "ocean_time"
4
4
  ],
5
- "long_name": "seconds since 2000-01-01 00:00:00",
5
+ "long_name": "relative time: seconds since 2000-01-01 00:00:00",
6
6
  "units": "seconds"
7
7
  }
@@ -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
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "_ARRAY_DIMENSIONS": [
3
+ "eta_rho",
4
+ "xi_rho"
5
+ ],
6
+ "long_name": "River index plus local volume fraction",
7
+ "units": "none"
8
+ }
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "_ARRAY_DIMENSIONS": [
3
+ "eta_rho",
4
+ "xi_rho"
5
+ ],
6
+ "long_name": "River index plus local volume fraction",
7
+ "units": "none"
8
+ }
@@ -9,7 +9,7 @@ from roms_tools.setup.datasets import (
9
9
  ERA5Correction,
10
10
  CESMBGCDataset,
11
11
  )
12
- from roms_tools.setup.download import download_test_data
12
+ from roms_tools.download import download_test_data
13
13
  from pathlib import Path
14
14
 
15
15
 
@@ -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.setup.download import download_test_data
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"):