Updated sws_ola with new format
This commit is contained in:
parent
a6ec88b87b
commit
86252c67d4
1 changed files with 4 additions and 4 deletions
|
@ -28,12 +28,12 @@ def data(var):
|
|||
return np.load(sws_out.joinpath(f"{var}.npy"))
|
||||
|
||||
|
||||
x = data("xp")
|
||||
t = data("tsec")
|
||||
x = data("x")
|
||||
t = data("t")
|
||||
|
||||
watl = data("watl")
|
||||
zk = data("zk")
|
||||
velk = data("velk")
|
||||
velk, _ = data("velk")
|
||||
vz = data("vz")
|
||||
|
||||
olaflow_root = pathlib.Path(config.get("olaflow", "root"))
|
||||
|
@ -44,7 +44,7 @@ watl_t = interpolate.interp1d(x, watl[680])
|
|||
alpha_water = np.where(model.z < watl_t(model.x), 1, 0)
|
||||
|
||||
zk_t = interpolate.interp1d(x, zk[680])
|
||||
velk_t = interpolate.interp1d(x, velk[680, :, 0, :])(model.x)
|
||||
velk_t = interpolate.interp1d(x, velk[680, :, :])(model.x)
|
||||
vz_t = interpolate.interp1d(x, vz[680])(model.x)
|
||||
zk_tl = zk_t(model.x)
|
||||
|
||||
|
|
Loading…
Reference in a new issue