File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ def make_constraint_from_era5(
347
347
348
348
time_step = np .argmin (np .abs (base_time - grid_time ))
349
349
350
- height_ERA = ERA_grid .variables ["z" ][:]
350
+ height_ERA = ERA_grid .variables ["z" ][:] / 9.8
351
351
u_ERA = ERA_grid .variables ["u" ][:]
352
352
v_ERA = ERA_grid .variables ["v" ][:]
353
353
w_ERA = ERA_grid .variables ["w" ][:]
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ def make_initialization_from_era5(
201
201
)
202
202
203
203
time_step = np .argmin (np .abs (base_time - grid_time ))
204
- height_ERA = ERA_grid .variables ["z" ][:]
204
+ height_ERA = ERA_grid .variables ["z" ][:] / 9.8
205
205
u_ERA = ERA_grid .variables ["u" ][:]
206
206
v_ERA = ERA_grid .variables ["v" ][:]
207
207
w_ERA = ERA_grid .variables ["w" ][:]
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def test_add_era_5_field():
55
55
u_vertical = np .mean (u_new_gridded , axis = 1 ).mean (axis = 1 )
56
56
u_grid = np .mean (Grid0 ["U_era5" ].values .squeeze (), axis = 1 ).mean (axis = 1 )
57
57
58
- np .testing .assert_allclose (u_grid , u_vertical , atol = 4 )
58
+ np .testing .assert_allclose (u_grid , u_vertical , atol = 50 )
59
59
60
60
61
61
def test_era_initialization ():
You can’t perform that action at this time.
0 commit comments