roms-tools 2.3.0__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 (143) hide show
  1. ci/environment.yml +1 -0
  2. roms_tools/__init__.py +1 -0
  3. roms_tools/analysis/roms_output.py +10 -6
  4. roms_tools/setup/boundary_forcing.py +178 -193
  5. roms_tools/setup/datasets.py +58 -1
  6. roms_tools/setup/grid.py +31 -97
  7. roms_tools/setup/initial_conditions.py +172 -126
  8. roms_tools/setup/nesting.py +2 -23
  9. roms_tools/setup/river_forcing.py +34 -67
  10. roms_tools/setup/surface_forcing.py +111 -61
  11. roms_tools/setup/tides.py +7 -30
  12. roms_tools/setup/utils.py +24 -70
  13. roms_tools/tests/test_setup/test_boundary_forcing.py +220 -57
  14. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/.zattrs +5 -3
  15. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/.zmetadata +156 -121
  16. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/.zarray +2 -2
  17. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/.zattrs +2 -1
  18. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/abs_time/0 +0 -0
  19. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/.zarray +2 -2
  20. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/.zattrs +1 -1
  21. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/bry_time/0 +0 -0
  22. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_east/.zarray +4 -4
  23. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_east/0.0.0 +0 -0
  24. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_north/.zarray +4 -4
  25. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_north/0.0.0 +0 -0
  26. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_south/.zarray +4 -4
  27. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_south/0.0.0 +0 -0
  28. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_west/.zarray +4 -4
  29. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/salt_west/0.0.0 +0 -0
  30. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_east/.zarray +4 -4
  31. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_east/0.0.0 +0 -0
  32. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_north/.zarray +4 -4
  33. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_north/0.0.0 +0 -0
  34. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_south/.zarray +4 -4
  35. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_south/0.0.0 +0 -0
  36. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_west/.zarray +4 -4
  37. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/temp_west/0.0.0 +0 -0
  38. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_east/.zarray +4 -4
  39. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_east/0.0.0 +0 -0
  40. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_north/.zarray +4 -4
  41. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_north/0.0.0 +0 -0
  42. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_south/.zarray +4 -4
  43. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_south/0.0.0 +0 -0
  44. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_west/.zarray +4 -4
  45. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/u_west/0.0.0 +0 -0
  46. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_east/.zarray +4 -4
  47. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_east/0.0 +0 -0
  48. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_north/.zarray +4 -4
  49. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_north/0.0 +0 -0
  50. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_south/.zarray +4 -4
  51. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_south/0.0 +0 -0
  52. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_west/.zarray +4 -4
  53. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/ubar_west/0.0 +0 -0
  54. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_east/.zarray +4 -4
  55. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_east/0.0.0 +0 -0
  56. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_north/.zarray +4 -4
  57. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_north/0.0.0 +0 -0
  58. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_south/.zarray +4 -4
  59. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_south/0.0.0 +0 -0
  60. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_west/.zarray +4 -4
  61. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/v_west/0.0.0 +0 -0
  62. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_east/.zarray +4 -4
  63. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_east/0.0 +0 -0
  64. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_north/.zarray +4 -4
  65. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_north/0.0 +0 -0
  66. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_south/.zarray +4 -4
  67. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_south/0.0 +0 -0
  68. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_west/.zarray +4 -4
  69. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/vbar_west/0.0 +0 -0
  70. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/.zarray +4 -4
  71. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/.zattrs +8 -0
  72. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_east/0.0 +0 -0
  73. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/.zarray +4 -4
  74. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/.zattrs +8 -0
  75. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_north/0.0 +0 -0
  76. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/.zarray +4 -4
  77. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/.zattrs +8 -0
  78. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_south/0.0 +0 -0
  79. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/.zarray +4 -4
  80. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/.zattrs +8 -0
  81. roms_tools/tests/test_setup/test_data/boundary_forcing.zarr/zeta_west/0.0 +0 -0
  82. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/.zattrs +4 -4
  83. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/.zmetadata +4 -4
  84. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/angle/0.0 +0 -0
  85. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/angle_coarse/0.0 +0 -0
  86. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/f/0.0 +0 -0
  87. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/h/0.0 +0 -0
  88. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_coarse/0.0 +0 -0
  89. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_rho/0.0 +0 -0
  90. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_u/0.0 +0 -0
  91. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lat_v/0.0 +0 -0
  92. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_coarse/0.0 +0 -0
  93. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_rho/0.0 +0 -0
  94. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_u/0.0 +0 -0
  95. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/lon_v/0.0 +0 -0
  96. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_coarse/0.0 +0 -0
  97. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_rho/0.0 +0 -0
  98. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_u/0.0 +0 -0
  99. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/mask_v/0.0 +0 -0
  100. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/pm/0.0 +0 -0
  101. roms_tools/tests/test_setup/test_data/grid_that_straddles_dateline.zarr/pn/0.0 +0 -0
  102. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zattrs +2 -1
  103. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/.zmetadata +6 -4
  104. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/Cs_r/.zattrs +1 -1
  105. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/Cs_w/.zattrs +1 -1
  106. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NH4/0.0.0.0 +0 -0
  107. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/NO3/0.0.0.0 +0 -0
  108. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/PO4/0.0.0.0 +0 -0
  109. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/abs_time/.zattrs +1 -0
  110. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/diatSi/0.0.0.0 +0 -0
  111. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ocean_time/.zattrs +1 -1
  112. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spC/0.0.0.0 +0 -0
  113. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spCaCO3/0.0.0.0 +0 -0
  114. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/spFe/0.0.0.0 +0 -0
  115. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/temp/0.0.0.0 +0 -0
  116. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/u/0.0.0.0 +0 -0
  117. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/ubar/0.0.0 +0 -0
  118. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/v/0.0.0.0 +0 -0
  119. roms_tools/tests/test_setup/test_data/initial_conditions_with_bgc_from_climatology.zarr/vbar/0.0.0 +0 -0
  120. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/.zmetadata +30 -0
  121. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zarray +22 -0
  122. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/.zattrs +8 -0
  123. roms_tools/tests/test_setup/test_data/river_forcing_no_climatology.zarr/river_location/0.0 +0 -0
  124. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/.zmetadata +30 -0
  125. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/.zarray +22 -0
  126. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/.zattrs +8 -0
  127. roms_tools/tests/test_setup/test_data/river_forcing_with_bgc.zarr/river_location/0.0 +0 -0
  128. roms_tools/tests/test_setup/test_grid.py +0 -13
  129. roms_tools/tests/test_setup/test_initial_conditions.py +204 -66
  130. roms_tools/tests/test_setup/test_nesting.py +0 -16
  131. roms_tools/tests/test_setup/test_river_forcing.py +8 -36
  132. roms_tools/tests/test_setup/test_surface_forcing.py +102 -73
  133. roms_tools/tests/test_setup/test_tides.py +4 -16
  134. roms_tools/tests/test_setup/test_utils.py +1 -0
  135. roms_tools/tests/{test_utils.py → test_tiling/test_partition.py} +1 -1
  136. roms_tools/tiling/partition.py +338 -0
  137. roms_tools/utils.py +66 -333
  138. roms_tools/vertical_coordinate.py +54 -133
  139. {roms_tools-2.3.0.dist-info → roms_tools-2.4.0.dist-info}/METADATA +1 -1
  140. {roms_tools-2.3.0.dist-info → roms_tools-2.4.0.dist-info}/RECORD +143 -136
  141. {roms_tools-2.3.0.dist-info → roms_tools-2.4.0.dist-info}/LICENSE +0 -0
  142. {roms_tools-2.3.0.dist-info → roms_tools-2.4.0.dist-info}/WHEEL +0 -0
  143. {roms_tools-2.3.0.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
+ }
@@ -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"):