roms-tools 1.1.0__py3-none-any.whl → 1.2.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.
- roms_tools/_version.py +1 -1
- roms_tools/setup/boundary_forcing.py +52 -126
- roms_tools/setup/datasets.py +22 -2
- roms_tools/setup/grid.py +20 -4
- roms_tools/setup/initial_conditions.py +84 -35
- roms_tools/setup/mixins.py +58 -47
- roms_tools/setup/plot.py +5 -47
- roms_tools/setup/surface_forcing.py +19 -5
- roms_tools/setup/tides.py +77 -69
- roms_tools/setup/vertical_coordinate.py +5 -0
- roms_tools/tests/test_boundary_forcing.py +197 -235
- roms_tools/tests/test_initial_conditions.py +69 -74
- roms_tools/tests/test_surface_forcing.py +26 -0
- roms_tools/tests/test_vertical_coordinate.py +80 -84
- {roms_tools-1.1.0.dist-info → roms_tools-1.2.0.dist-info}/METADATA +1 -1
- roms_tools-1.2.0.dist-info/RECORD +31 -0
- roms_tools-1.1.0.dist-info/RECORD +0 -31
- {roms_tools-1.1.0.dist-info → roms_tools-1.2.0.dist-info}/LICENSE +0 -0
- {roms_tools-1.1.0.dist-info → roms_tools-1.2.0.dist-info}/WHEEL +0 -0
- {roms_tools-1.1.0.dist-info → roms_tools-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -230,59 +230,48 @@ def test_initial_conditions_data_consistency_plot_save(
|
|
|
230
230
|
[
|
|
231
231
|
[
|
|
232
232
|
[
|
|
233
|
-
[16.84414,
|
|
234
|
-
[
|
|
235
|
-
[
|
|
236
|
-
[
|
|
233
|
+
[16.84414, 18.088203, 18.431192, 19.294329],
|
|
234
|
+
[12.639833, 15.712767, 13.02848, 18.633307],
|
|
235
|
+
[11.027701, 12.302642, 8.143677, 8.710737],
|
|
236
|
+
[10.233599, 10.147332, 10.458557, 9.20282],
|
|
237
237
|
],
|
|
238
238
|
[
|
|
239
|
-
[
|
|
240
|
-
[
|
|
241
|
-
[
|
|
242
|
-
[
|
|
239
|
+
[16.905312, 18.121834, 18.496748, 19.30358],
|
|
240
|
+
[13.479691, 15.920951, 14.5227165, 18.637077],
|
|
241
|
+
[11.650267, 12.646921, 11.435992, 11.25943],
|
|
242
|
+
[10.546486, 10.502733, 11.209945, 10.667074],
|
|
243
243
|
],
|
|
244
244
|
[
|
|
245
|
-
[
|
|
246
|
-
[
|
|
247
|
-
[
|
|
248
|
-
[
|
|
249
|
-
],
|
|
250
|
-
[
|
|
251
|
-
[10.233599, 10.546486, 10.671082],
|
|
252
|
-
[10.147331, 10.502733, 10.68275],
|
|
253
|
-
[10.458557, 11.209945, 11.377164],
|
|
254
|
-
[9.20282, 10.667074, 11.752404],
|
|
245
|
+
[16.967817, 18.315424, 18.718002, 19.439777],
|
|
246
|
+
[14.426711, 16.10028, 15.05175, 18.667465],
|
|
247
|
+
[12.200586, 13.150708, 13.356925, 13.111585],
|
|
248
|
+
[10.671082, 10.68275, 11.377164, 11.752404],
|
|
255
249
|
],
|
|
256
250
|
]
|
|
257
251
|
],
|
|
258
252
|
dtype=np.float32,
|
|
259
253
|
)
|
|
254
|
+
|
|
260
255
|
expected_salt = np.array(
|
|
261
256
|
[
|
|
262
257
|
[
|
|
263
258
|
[
|
|
264
|
-
[33.832672,
|
|
265
|
-
[
|
|
266
|
-
[
|
|
267
|
-
[
|
|
259
|
+
[33.832672, 32.50002, 30.922323, 28.337738],
|
|
260
|
+
[34.8002, 32.43797, 34.885834, 29.237692],
|
|
261
|
+
[34.046825, 33.892323, 34.964134, 34.975933],
|
|
262
|
+
[35.21593, 35.224304, 35.299217, 34.25124],
|
|
268
263
|
],
|
|
269
264
|
[
|
|
270
|
-
[
|
|
271
|
-
[
|
|
272
|
-
[
|
|
273
|
-
[
|
|
265
|
+
[33.77759, 32.48105, 30.909824, 28.335176],
|
|
266
|
+
[34.691143, 32.369576, 34.82964, 29.232145],
|
|
267
|
+
[33.950684, 33.84102, 34.91892, 34.48586],
|
|
268
|
+
[35.209476, 35.209522, 35.31244, 33.828175],
|
|
274
269
|
],
|
|
275
270
|
[
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
],
|
|
281
|
-
[
|
|
282
|
-
[35.21593, 35.209476, 35.20767],
|
|
283
|
-
[35.224304, 35.209522, 35.20715],
|
|
284
|
-
[35.299217, 35.31244, 35.31555],
|
|
285
|
-
[34.25124, 33.828175, 33.234303],
|
|
271
|
+
[33.633846, 32.154694, 30.508572, 28.067144],
|
|
272
|
+
[34.382282, 32.027843, 34.775684, 29.09444],
|
|
273
|
+
[33.87148, 33.69169, 34.91941, 32.729057],
|
|
274
|
+
[35.20767, 35.20715, 35.31555, 33.234303],
|
|
286
275
|
],
|
|
287
276
|
]
|
|
288
277
|
],
|
|
@@ -304,17 +293,23 @@ def test_initial_conditions_data_consistency_plot_save(
|
|
|
304
293
|
expected_u = np.array(
|
|
305
294
|
[
|
|
306
295
|
[
|
|
307
|
-
[[-0.0, -0.0, -0.0], [-0.0, -0.0, -0.0], [0.0, -0.0, -0.0]],
|
|
308
|
-
[[0.0, -0.0, -0.0], [-0.0, -0.0, -0.0], [-0.0, -0.0, -0.0]],
|
|
309
296
|
[
|
|
310
|
-
[0.0, 0.0,
|
|
311
|
-
[0.0, 0.0, -0.0],
|
|
312
|
-
[0.
|
|
297
|
+
[-0.0, -0.0, 0.0],
|
|
298
|
+
[0.0, -0.0, -0.0],
|
|
299
|
+
[0.0, 0.0, 0.06979556],
|
|
300
|
+
[0.04268532, 0.04645353, 0.0211786],
|
|
313
301
|
],
|
|
314
302
|
[
|
|
315
|
-
[0.
|
|
316
|
-
[0.
|
|
317
|
-
[0.
|
|
303
|
+
[-0.0, -0.0, -0.0],
|
|
304
|
+
[-0.0, -0.0, -0.0],
|
|
305
|
+
[0.0, 0.0, 0.06167743],
|
|
306
|
+
[0.03889201, 0.04914769, 0.03679834],
|
|
307
|
+
],
|
|
308
|
+
[
|
|
309
|
+
[-0.0, -0.0, -0.0],
|
|
310
|
+
[-0.0, -0.0, -0.0],
|
|
311
|
+
[-0.0, -0.0, -0.02247071],
|
|
312
|
+
[0.03351666, 0.03673013, 0.0274788],
|
|
318
313
|
],
|
|
319
314
|
]
|
|
320
315
|
],
|
|
@@ -325,22 +320,19 @@ def test_initial_conditions_data_consistency_plot_save(
|
|
|
325
320
|
[
|
|
326
321
|
[
|
|
327
322
|
[
|
|
328
|
-
[0.0, 0.0, 0.0],
|
|
329
|
-
[0.0, 0.0, -0.0],
|
|
330
|
-
[-0.
|
|
331
|
-
[-0.0, -0.0, -0.0],
|
|
323
|
+
[0.0, 0.0, -0.0, -0.0],
|
|
324
|
+
[-0.0, -0.0, -0.03831354, -0.0],
|
|
325
|
+
[-0.00951457, -0.0, 0.01915873, -0.06720348],
|
|
332
326
|
],
|
|
333
327
|
[
|
|
334
|
-
[
|
|
335
|
-
[-0.0, -0.0, -0.0],
|
|
336
|
-
[-0.
|
|
337
|
-
[-0.0, -0.0, -0.0],
|
|
328
|
+
[0.0, 0.0, -0.0, -0.0],
|
|
329
|
+
[-0.0, -0.0, -0.02400788, -0.0],
|
|
330
|
+
[-0.00576979, -0.0, 0.02625698, -0.08354441],
|
|
338
331
|
],
|
|
339
332
|
[
|
|
340
|
-
[-0.
|
|
341
|
-
[-0.0, -0.0, -0.0],
|
|
342
|
-
[0.
|
|
343
|
-
[-0.06720348, -0.08354441, -0.13835917],
|
|
333
|
+
[0.0, -0.0, -0.0, -0.0],
|
|
334
|
+
[-0.0, -0.0, -0.03179555, -0.0],
|
|
335
|
+
[-0.02147919, -0.0, 0.01757628, -0.13835917],
|
|
344
336
|
],
|
|
345
337
|
]
|
|
346
338
|
],
|
|
@@ -374,28 +366,22 @@ def test_initial_conditions_data_consistency_plot_save(
|
|
|
374
366
|
[
|
|
375
367
|
[
|
|
376
368
|
[
|
|
377
|
-
[2341.926,
|
|
378
|
-
[2317.
|
|
379
|
-
[
|
|
380
|
-
[
|
|
369
|
+
[2341.926, 2317.8875, 2297.689, 2276.4216],
|
|
370
|
+
[2330.5837, 2317.878, 2278.9314, 2259.975],
|
|
371
|
+
[2376.7534, 2362.5308, 2350.3384, 2310.4275],
|
|
372
|
+
[2384.8064, 2383.737, 2380.2297, 2350.0762],
|
|
381
373
|
],
|
|
382
374
|
[
|
|
383
|
-
[
|
|
384
|
-
[
|
|
385
|
-
[
|
|
386
|
-
[
|
|
375
|
+
[2340.8894, 2315.86, 2285.8933, 2258.4436],
|
|
376
|
+
[2329.8225, 2316.6787, 2269.464, 2247.7456],
|
|
377
|
+
[2373.4402, 2360.5066, 2344.3135, 2287.6785],
|
|
378
|
+
[2386.2126, 2385.1553, 2381.4849, 2342.5403],
|
|
387
379
|
],
|
|
388
380
|
[
|
|
389
|
-
[
|
|
390
|
-
[
|
|
391
|
-
[
|
|
392
|
-
[
|
|
393
|
-
],
|
|
394
|
-
[
|
|
395
|
-
[2384.8064, 2386.2126, 2386.632],
|
|
396
|
-
[2383.737, 2385.1553, 2385.6685],
|
|
397
|
-
[2380.2297, 2381.4849, 2381.8616],
|
|
398
|
-
[2350.0762, 2342.5403, 2339.2244],
|
|
381
|
+
[2340.557, 2315.2148, 2284.404, 2256.1062],
|
|
382
|
+
[2329.5264, 2316.3088, 2268.904, 2246.0632],
|
|
383
|
+
[2372.9192, 2360.2224, 2343.6768, 2281.5872],
|
|
384
|
+
[2386.632, 2385.6685, 2381.8616, 2339.2244],
|
|
399
385
|
],
|
|
400
386
|
]
|
|
401
387
|
],
|
|
@@ -429,6 +415,15 @@ def test_initial_conditions_data_consistency_plot_save(
|
|
|
429
415
|
)
|
|
430
416
|
|
|
431
417
|
initial_conditions_with_bgc_from_climatology.plot(varname="temp", s=0)
|
|
418
|
+
initial_conditions_with_bgc_from_climatology.plot(
|
|
419
|
+
varname="temp", s=0, depth_contours=True
|
|
420
|
+
)
|
|
421
|
+
initial_conditions_with_bgc_from_climatology.plot(
|
|
422
|
+
varname="temp", eta=0, layer_contours=True
|
|
423
|
+
)
|
|
424
|
+
initial_conditions_with_bgc_from_climatology.plot(
|
|
425
|
+
varname="temp", xi=0, layer_contours=True
|
|
426
|
+
)
|
|
432
427
|
initial_conditions_with_bgc_from_climatology.plot(varname="temp", eta=0)
|
|
433
428
|
initial_conditions_with_bgc_from_climatology.plot(varname="temp", xi=0)
|
|
434
429
|
initial_conditions_with_bgc_from_climatology.plot(varname="temp", s=0, xi=0)
|
|
@@ -193,6 +193,26 @@ def test_successful_initialization_with_regional_data(grid_fixture, request):
|
|
|
193
193
|
)
|
|
194
194
|
|
|
195
195
|
assert sfc_forcing.ds is not None
|
|
196
|
+
assert "uwnd" in sfc_forcing.ds["physics"]
|
|
197
|
+
assert "vwnd" in sfc_forcing.ds["physics"]
|
|
198
|
+
assert "swrad" in sfc_forcing.ds["physics"]
|
|
199
|
+
assert "lwrad" in sfc_forcing.ds["physics"]
|
|
200
|
+
assert "Tair" in sfc_forcing.ds["physics"]
|
|
201
|
+
assert "qair" in sfc_forcing.ds["physics"]
|
|
202
|
+
assert "rain" in sfc_forcing.ds["physics"]
|
|
203
|
+
|
|
204
|
+
assert sfc_forcing.start_time == start_time
|
|
205
|
+
assert sfc_forcing.end_time == end_time
|
|
206
|
+
assert sfc_forcing.physics_source == {
|
|
207
|
+
"name": "ERA5",
|
|
208
|
+
"path": fname,
|
|
209
|
+
"climatology": False,
|
|
210
|
+
}
|
|
211
|
+
assert not sfc_forcing.use_coarse_grid
|
|
212
|
+
|
|
213
|
+
sfc_forcing.plot("uwnd", time=0)
|
|
214
|
+
sfc_forcing.plot("vwnd", time=0)
|
|
215
|
+
sfc_forcing.plot("rain", time=0)
|
|
196
216
|
|
|
197
217
|
sfc_forcing = SurfaceForcing(
|
|
198
218
|
grid=grid,
|
|
@@ -202,6 +222,7 @@ def test_successful_initialization_with_regional_data(grid_fixture, request):
|
|
|
202
222
|
physics_source={"name": "ERA5", "path": fname},
|
|
203
223
|
)
|
|
204
224
|
|
|
225
|
+
assert sfc_forcing.ds is not None
|
|
205
226
|
assert "uwnd" in sfc_forcing.ds["physics"]
|
|
206
227
|
assert "vwnd" in sfc_forcing.ds["physics"]
|
|
207
228
|
assert "swrad" in sfc_forcing.ds["physics"]
|
|
@@ -217,6 +238,11 @@ def test_successful_initialization_with_regional_data(grid_fixture, request):
|
|
|
217
238
|
"path": fname,
|
|
218
239
|
"climatology": False,
|
|
219
240
|
}
|
|
241
|
+
assert sfc_forcing.use_coarse_grid
|
|
242
|
+
|
|
243
|
+
sfc_forcing.plot("uwnd", time=0)
|
|
244
|
+
sfc_forcing.plot("vwnd", time=0)
|
|
245
|
+
sfc_forcing.plot("rain", time=0)
|
|
220
246
|
|
|
221
247
|
|
|
222
248
|
@pytest.mark.parametrize(
|
|
@@ -90,28 +90,22 @@ def test_vertical_coordinate_data_consistency():
|
|
|
90
90
|
expected_layer_depth_rho = np.array(
|
|
91
91
|
[
|
|
92
92
|
[
|
|
93
|
-
[17.235603,
|
|
94
|
-
[17.235603,
|
|
95
|
-
[
|
|
96
|
-
[
|
|
93
|
+
[17.235603, 17.235603, 24.206884, 24.206884],
|
|
94
|
+
[17.235603, 17.235603, 24.206884, 24.206884],
|
|
95
|
+
[25.667452, 25.667452, 35.966946, 35.966946],
|
|
96
|
+
[25.667452, 25.667452, 35.966946, 35.966946],
|
|
97
97
|
],
|
|
98
98
|
[
|
|
99
|
-
[
|
|
100
|
-
[
|
|
101
|
-
[
|
|
102
|
-
[
|
|
99
|
+
[9.938617, 9.938617, 13.7451725, 13.7451725],
|
|
100
|
+
[9.938617, 9.938617, 13.7451725, 13.7451725],
|
|
101
|
+
[14.528268, 14.528268, 19.916193, 19.916193],
|
|
102
|
+
[14.528268, 14.528268, 19.916193, 19.916193],
|
|
103
103
|
],
|
|
104
104
|
[
|
|
105
|
-
[
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
],
|
|
110
|
-
[
|
|
111
|
-
[25.667452, 14.528268, 4.7055993],
|
|
112
|
-
[25.667452, 14.528268, 4.7055993],
|
|
113
|
-
[35.966946, 19.916193, 6.377065],
|
|
114
|
-
[35.966946, 19.916193, 6.377065],
|
|
105
|
+
[3.2495391, 3.2495391, 4.4592304, 4.4592304],
|
|
106
|
+
[3.2495391, 3.2495391, 4.4592304, 4.4592304],
|
|
107
|
+
[4.7055993, 4.7055993, 6.377065, 6.377065],
|
|
108
|
+
[4.7055993, 4.7055993, 6.377065, 6.377065],
|
|
115
109
|
],
|
|
116
110
|
],
|
|
117
111
|
dtype=np.float32,
|
|
@@ -119,24 +113,22 @@ def test_vertical_coordinate_data_consistency():
|
|
|
119
113
|
expected_layer_depth_u = np.array(
|
|
120
114
|
[
|
|
121
115
|
[
|
|
122
|
-
[17.235603,
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
|
|
126
|
-
[
|
|
127
|
-
[17.235603, 9.938617, 3.2495391],
|
|
128
|
-
[20.721243, 11.841895, 3.854385],
|
|
129
|
-
[24.206884, 13.7451725, 4.4592304],
|
|
116
|
+
[17.235603, 20.721243, 24.206884],
|
|
117
|
+
[17.235603, 20.721243, 24.206884],
|
|
118
|
+
[25.667452, 30.817198, 35.966946],
|
|
119
|
+
[25.667452, 30.817198, 35.966946],
|
|
130
120
|
],
|
|
131
121
|
[
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
122
|
+
[9.938617, 11.841895, 13.7451725],
|
|
123
|
+
[9.938617, 11.841895, 13.7451725],
|
|
124
|
+
[14.528268, 17.22223, 19.916193],
|
|
125
|
+
[14.528268, 17.22223, 19.916193],
|
|
135
126
|
],
|
|
136
127
|
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
139
|
-
[
|
|
128
|
+
[3.2495391, 3.854385, 4.4592304],
|
|
129
|
+
[3.2495391, 3.854385, 4.4592304],
|
|
130
|
+
[4.7055993, 5.5413322, 6.377065],
|
|
131
|
+
[4.7055993, 5.5413322, 6.377065],
|
|
140
132
|
],
|
|
141
133
|
],
|
|
142
134
|
dtype=np.float32,
|
|
@@ -144,22 +136,19 @@ def test_vertical_coordinate_data_consistency():
|
|
|
144
136
|
expected_layer_depth_v = np.array(
|
|
145
137
|
[
|
|
146
138
|
[
|
|
147
|
-
[17.235603,
|
|
148
|
-
[
|
|
149
|
-
[
|
|
150
|
-
[24.206884, 13.7451725, 4.4592304],
|
|
139
|
+
[17.235603, 17.235603, 24.206884, 24.206884],
|
|
140
|
+
[21.451529, 21.451529, 30.086914, 30.086914],
|
|
141
|
+
[25.667452, 25.667452, 35.966946, 35.966946],
|
|
151
142
|
],
|
|
152
143
|
[
|
|
153
|
-
[
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[30.086914, 16.830683, 5.418148],
|
|
144
|
+
[9.938617, 9.938617, 13.7451725, 13.7451725],
|
|
145
|
+
[12.233442, 12.233442, 16.830683, 16.830683],
|
|
146
|
+
[14.528268, 14.528268, 19.916193, 19.916193],
|
|
157
147
|
],
|
|
158
148
|
[
|
|
159
|
-
[
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
[35.966946, 19.916193, 6.377065],
|
|
149
|
+
[3.2495391, 3.2495391, 4.4592304, 4.4592304],
|
|
150
|
+
[3.977569, 3.977569, 5.418148, 5.418148],
|
|
151
|
+
[4.7055993, 4.7055993, 6.377065, 6.377065],
|
|
163
152
|
],
|
|
164
153
|
],
|
|
165
154
|
dtype=np.float32,
|
|
@@ -167,28 +156,28 @@ def test_vertical_coordinate_data_consistency():
|
|
|
167
156
|
expected_interface_depth_rho = np.array(
|
|
168
157
|
[
|
|
169
158
|
[
|
|
170
|
-
[21.013529,
|
|
171
|
-
[21.013529,
|
|
172
|
-
[
|
|
173
|
-
[
|
|
159
|
+
[21.013529, 21.013529, 29.688076, 29.688076],
|
|
160
|
+
[21.013529, 21.013529, 29.688076, 29.688076],
|
|
161
|
+
[31.51735, 31.51735, 44.52708, 44.52708],
|
|
162
|
+
[31.51735, 31.51735, 44.52708, 44.52708],
|
|
174
163
|
],
|
|
175
164
|
[
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
[
|
|
179
|
-
[
|
|
165
|
+
[13.487298, 13.487298, 18.78298, 18.78298],
|
|
166
|
+
[13.487298, 13.487298, 18.78298, 18.78298],
|
|
167
|
+
[19.881702, 19.881702, 27.529188, 27.529188],
|
|
168
|
+
[19.881702, 19.881702, 27.529188, 27.529188],
|
|
180
169
|
],
|
|
181
170
|
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
171
|
+
[6.5489607, 6.5489607, 9.014939, 9.014939],
|
|
172
|
+
[6.5489607, 6.5489607, 9.014939, 9.014939],
|
|
173
|
+
[9.519225, 9.519225, 12.960222, 12.960222],
|
|
174
|
+
[9.519225, 9.519225, 12.960222, 12.960222],
|
|
186
175
|
],
|
|
187
176
|
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
[
|
|
191
|
-
[
|
|
177
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
178
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
179
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
180
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
192
181
|
],
|
|
193
182
|
],
|
|
194
183
|
dtype=np.float32,
|
|
@@ -196,24 +185,28 @@ def test_vertical_coordinate_data_consistency():
|
|
|
196
185
|
expected_interface_depth_u = np.array(
|
|
197
186
|
[
|
|
198
187
|
[
|
|
199
|
-
[21.013529,
|
|
200
|
-
[
|
|
201
|
-
[
|
|
188
|
+
[21.013529, 25.350803, 29.688076],
|
|
189
|
+
[21.013529, 25.350803, 29.688076],
|
|
190
|
+
[31.51735, 38.022217, 44.52708],
|
|
191
|
+
[31.51735, 38.022217, 44.52708],
|
|
202
192
|
],
|
|
203
193
|
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
206
|
-
[
|
|
194
|
+
[13.487298, 16.13514, 18.78298],
|
|
195
|
+
[13.487298, 16.13514, 18.78298],
|
|
196
|
+
[19.881702, 23.705446, 27.529188],
|
|
197
|
+
[19.881702, 23.705446, 27.529188],
|
|
207
198
|
],
|
|
208
199
|
[
|
|
209
|
-
[
|
|
210
|
-
[
|
|
211
|
-
[
|
|
200
|
+
[6.5489607, 7.78195, 9.014939],
|
|
201
|
+
[6.5489607, 7.78195, 9.014939],
|
|
202
|
+
[9.519225, 11.239724, 12.960222],
|
|
203
|
+
[9.519225, 11.239724, 12.960222],
|
|
212
204
|
],
|
|
213
205
|
[
|
|
214
|
-
[
|
|
215
|
-
[
|
|
216
|
-
[
|
|
206
|
+
[-0.0, -0.0, -0.0],
|
|
207
|
+
[-0.0, -0.0, -0.0],
|
|
208
|
+
[-0.0, -0.0, -0.0],
|
|
209
|
+
[-0.0, -0.0, -0.0],
|
|
217
210
|
],
|
|
218
211
|
],
|
|
219
212
|
dtype=np.float32,
|
|
@@ -221,26 +214,29 @@ def test_vertical_coordinate_data_consistency():
|
|
|
221
214
|
expected_interface_depth_v = np.array(
|
|
222
215
|
[
|
|
223
216
|
[
|
|
224
|
-
[21.013529,
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
[29.688076, 18.78298, 9.014939, -0.0],
|
|
217
|
+
[21.013529, 21.013529, 29.688076, 29.688076],
|
|
218
|
+
[26.26544, 26.26544, 37.10758, 37.10758],
|
|
219
|
+
[31.51735, 31.51735, 44.52708, 44.52708],
|
|
228
220
|
],
|
|
229
221
|
[
|
|
230
|
-
[
|
|
231
|
-
[
|
|
232
|
-
[
|
|
233
|
-
[37.10758, 23.156084, 10.987581, -0.0],
|
|
222
|
+
[13.487298, 13.487298, 18.78298, 18.78298],
|
|
223
|
+
[16.684502, 16.684502, 23.156084, 23.156084],
|
|
224
|
+
[19.881702, 19.881702, 27.529188, 27.529188],
|
|
234
225
|
],
|
|
235
226
|
[
|
|
236
|
-
[
|
|
237
|
-
[
|
|
238
|
-
[
|
|
239
|
-
|
|
227
|
+
[6.5489607, 6.5489607, 9.014939, 9.014939],
|
|
228
|
+
[8.034093, 8.034093, 10.987581, 10.987581],
|
|
229
|
+
[9.519225, 9.519225, 12.960222, 12.960222],
|
|
230
|
+
],
|
|
231
|
+
[
|
|
232
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
233
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
234
|
+
[-0.0, -0.0, -0.0, -0.0],
|
|
240
235
|
],
|
|
241
236
|
],
|
|
242
237
|
dtype=np.float32,
|
|
243
238
|
)
|
|
239
|
+
|
|
244
240
|
# Check the values in the dataset
|
|
245
241
|
assert np.allclose(grid.ds["sc_r"].values, expected_sc_r)
|
|
246
242
|
assert np.allclose(grid.ds["Cs_r"].values, expected_Cs_r)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
ci/environment.yml,sha256=tjoIEUdPWfJBO4ijsJYhq7ay8_QfJKxRtq8Z0r8rHTI,427
|
|
2
|
+
roms_tools/__init__.py,sha256=PQ7jWQ97DYS5b6YIFZVE2PYaRwXjN0Ykfhq0PKqN9ME,560
|
|
3
|
+
roms_tools/_version.py,sha256=04tKkL_4Ep71xzu71RG5cmolpgjFnB01urHZHjYcqCU,72
|
|
4
|
+
roms_tools/setup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
roms_tools/setup/boundary_forcing.py,sha256=pXI7P6kaaOTX_Y5qI2fAZXeV0CTeWwVeB4DZ9MmNBL0,28745
|
|
6
|
+
roms_tools/setup/datasets.py,sha256=msbQAc-yjXG61EKKVwDED8DGw3UqdQdYishsrxkK8KQ,42193
|
|
7
|
+
roms_tools/setup/download.py,sha256=SapK5GIx-ykBrqqj0S_dgMxBBDGVKTfgIdbaiiOohhY,4280
|
|
8
|
+
roms_tools/setup/fill.py,sha256=45Ro5oN-n-n_qKZq3qTHn27ZKpTKWhr_9AWw6gUJ-9I,13291
|
|
9
|
+
roms_tools/setup/grid.py,sha256=jvztL2efzVUGMqzq9sk7c8xSALJVPpeclG4-MVf-9lM,39936
|
|
10
|
+
roms_tools/setup/initial_conditions.py,sha256=UY9cmXJxVPwKNRVD823iepEpaKNq_-dojN2xb6oX1H8,22860
|
|
11
|
+
roms_tools/setup/mixins.py,sha256=FVJox2ByofXukbGhEp_W_ZU2q4wA2LGOo7Y3uNB5rfs,17179
|
|
12
|
+
roms_tools/setup/plot.py,sha256=IN3iDuVWhSKwzDJgcvksaYAHOT2mK5RaCuQKz0hgouw,4596
|
|
13
|
+
roms_tools/setup/surface_forcing.py,sha256=GJohZJ8OB0C3BjkauBKH5bzoItEAsknW7crx2y8Vag0,22626
|
|
14
|
+
roms_tools/setup/tides.py,sha256=QooTHSdB8W3NcZ0ftdU8_QzgkyvpgDWuNKoRfE-g024,22265
|
|
15
|
+
roms_tools/setup/topography.py,sha256=qjvbeSO_Y-PvuqmpKZiOU42fLZJa8dkr60BRP9UU0sg,9778
|
|
16
|
+
roms_tools/setup/utils.py,sha256=6_rNPWSP1Q5PjRlMAKS3GunBWySzPcnj6xYAFaFbqfY,12678
|
|
17
|
+
roms_tools/setup/vertical_coordinate.py,sha256=f0r4KY6ZXl1pqs0M1aEj1vsivcoqPVzj3M03vku0C60,3034
|
|
18
|
+
roms_tools/tests/test_boundary_forcing.py,sha256=T8J2r6p6wtOjre1nfhkFsbmNYSlmP72VMjEYUdsrb88,23494
|
|
19
|
+
roms_tools/tests/test_datasets.py,sha256=RPpnKa4kUrXgCUCc3ca7SdHnFs7qQmOwQYQnPEN6T_g,11743
|
|
20
|
+
roms_tools/tests/test_grid.py,sha256=0qpYu-zPd4XhU0j2KE6qDpdk9e4zS8aS9blUl0Oxr4o,11142
|
|
21
|
+
roms_tools/tests/test_initial_conditions.py,sha256=2FvprTdgRBtSb3a7KwPVLPiPBoi2BilUHIDDVT70rUo,15678
|
|
22
|
+
roms_tools/tests/test_surface_forcing.py,sha256=X1EEl17kJHrSvhRt6XhPoDfP3TG-DDg65R-c5JbKPxU,78786
|
|
23
|
+
roms_tools/tests/test_tides.py,sha256=wcH8WAvzb-FqJmr_VLTwldV8XalyntZANhy-FRMQ7e4,11133
|
|
24
|
+
roms_tools/tests/test_topography.py,sha256=RxdLyz_Fduu85tVx5aW62Dj4REg_RLWgvsSpgjDURqM,2014
|
|
25
|
+
roms_tools/tests/test_utils.py,sha256=Ey5jrsdd7B9kL5ijqr9CLQNguPlxVMTybIneihdefN8,560
|
|
26
|
+
roms_tools/tests/test_vertical_coordinate.py,sha256=8Uv4XBEEp7T3X9kB3e97LvuIjAYAZVsZZNmfhZ1cONY,9281
|
|
27
|
+
roms_tools-1.2.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
28
|
+
roms_tools-1.2.0.dist-info/METADATA,sha256=ijfDOAUqBnipngs--aTbi29KZKZq502Yc8ywYAhDHWY,2923
|
|
29
|
+
roms_tools-1.2.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
30
|
+
roms_tools-1.2.0.dist-info/top_level.txt,sha256=aAf4T4nYQSkay5iKJ9kmTjlDgd4ETdp9OSlB4sJdt8Y,19
|
|
31
|
+
roms_tools-1.2.0.dist-info/RECORD,,
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
ci/environment.yml,sha256=tjoIEUdPWfJBO4ijsJYhq7ay8_QfJKxRtq8Z0r8rHTI,427
|
|
2
|
-
roms_tools/__init__.py,sha256=PQ7jWQ97DYS5b6YIFZVE2PYaRwXjN0Ykfhq0PKqN9ME,560
|
|
3
|
-
roms_tools/_version.py,sha256=zxeJ2mSI8C93mJwJVRHja1imkOUF_4LDMbFODuXtPc8,72
|
|
4
|
-
roms_tools/setup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
roms_tools/setup/boundary_forcing.py,sha256=IK-NqyCF5sFXyRpU0sKHt5uDYcsown2wq-0kIh32tIc,32060
|
|
6
|
-
roms_tools/setup/datasets.py,sha256=3PJ0JCQUcNVHd4Xl7dodJ6lZJmV5cRkCxH-vOuZtrZ4,41478
|
|
7
|
-
roms_tools/setup/download.py,sha256=SapK5GIx-ykBrqqj0S_dgMxBBDGVKTfgIdbaiiOohhY,4280
|
|
8
|
-
roms_tools/setup/fill.py,sha256=45Ro5oN-n-n_qKZq3qTHn27ZKpTKWhr_9AWw6gUJ-9I,13291
|
|
9
|
-
roms_tools/setup/grid.py,sha256=fBRGRw4MGSKt1nxQ1u-pbhooLPhQIkinSpIX9vc-Ij4,39182
|
|
10
|
-
roms_tools/setup/initial_conditions.py,sha256=EOAEsvAwaBEFI5hdD23C3xkNBNfen1i814sVptEGzf8,20458
|
|
11
|
-
roms_tools/setup/mixins.py,sha256=sq9CKHtWScR4v29IrgQic-UtfFreZMhCFqS39_rP6UE,16434
|
|
12
|
-
roms_tools/setup/plot.py,sha256=vpOoAHE5HvnmeAPyhr-GijGLLlqkEple5hfr_f3Nfn8,6331
|
|
13
|
-
roms_tools/setup/surface_forcing.py,sha256=fZGn93qzPgCJNKPUSjZH3rIfVL2nqXr4OJ7YtR5Tzro,22143
|
|
14
|
-
roms_tools/setup/tides.py,sha256=PP-R4mqMI_RpVOAg0hH3dAAaUjB6C3rSR_JyvJ1zODw,22907
|
|
15
|
-
roms_tools/setup/topography.py,sha256=qjvbeSO_Y-PvuqmpKZiOU42fLZJa8dkr60BRP9UU0sg,9778
|
|
16
|
-
roms_tools/setup/utils.py,sha256=6_rNPWSP1Q5PjRlMAKS3GunBWySzPcnj6xYAFaFbqfY,12678
|
|
17
|
-
roms_tools/setup/vertical_coordinate.py,sha256=hYQG-zQoMnxfuAzzQOF4XDGtYqp1GVc93kCfeTkjDgw,2875
|
|
18
|
-
roms_tools/tests/test_boundary_forcing.py,sha256=VDH7R8Wh5tN0fj_vtlEYjQ0dve6Zm6PGXoPU8uZaJsA,24043
|
|
19
|
-
roms_tools/tests/test_datasets.py,sha256=RPpnKa4kUrXgCUCc3ca7SdHnFs7qQmOwQYQnPEN6T_g,11743
|
|
20
|
-
roms_tools/tests/test_grid.py,sha256=0qpYu-zPd4XhU0j2KE6qDpdk9e4zS8aS9blUl0Oxr4o,11142
|
|
21
|
-
roms_tools/tests/test_initial_conditions.py,sha256=SiBp5uKjIX8xNzjFarCqCnNmsgxoqtiQuDF3NEjxEGE,15664
|
|
22
|
-
roms_tools/tests/test_surface_forcing.py,sha256=TyZNZVScFIow0wFiWA9Do0q9jN4wdVYN43lyEgzHslU,77892
|
|
23
|
-
roms_tools/tests/test_tides.py,sha256=wcH8WAvzb-FqJmr_VLTwldV8XalyntZANhy-FRMQ7e4,11133
|
|
24
|
-
roms_tools/tests/test_topography.py,sha256=RxdLyz_Fduu85tVx5aW62Dj4REg_RLWgvsSpgjDURqM,2014
|
|
25
|
-
roms_tools/tests/test_utils.py,sha256=Ey5jrsdd7B9kL5ijqr9CLQNguPlxVMTybIneihdefN8,560
|
|
26
|
-
roms_tools/tests/test_vertical_coordinate.py,sha256=s5DItBx-eoBAaZN-dtvM3V5y_rvXAIWHUjRIhQcKq84,9363
|
|
27
|
-
roms_tools-1.1.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
28
|
-
roms_tools-1.1.0.dist-info/METADATA,sha256=h-MWfFlBxYoNs1TsAYsaMIX_kygZIM9vAjG3iBpfTuQ,2923
|
|
29
|
-
roms_tools-1.1.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
30
|
-
roms_tools-1.1.0.dist-info/top_level.txt,sha256=aAf4T4nYQSkay5iKJ9kmTjlDgd4ETdp9OSlB4sJdt8Y,19
|
|
31
|
-
roms_tools-1.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|