|
|
@ -102,14 +102,15 @@ def get_srh(wrfin, timeidx=0, method="cat", squeeze=True, |
|
|
|
z = geopt_unstag / Constants.G |
|
|
|
z = geopt_unstag / Constants.G |
|
|
|
|
|
|
|
|
|
|
|
# Re-ordering from high to low |
|
|
|
# Re-ordering from high to low |
|
|
|
u1 = np.ascontiguousarray(u[...,::-1,:,:]) |
|
|
|
u1 = np.ascontiguousarray(u[..., ::-1, :, :]) |
|
|
|
v1 = np.ascontiguousarray(v[...,::-1,:,:]) |
|
|
|
v1 = np.ascontiguousarray(v[..., ::-1, :, :]) |
|
|
|
z1 = np.ascontiguousarray(z[...,::-1,:,:]) |
|
|
|
z1 = np.ascontiguousarray(z[..., ::-1, :, :]) |
|
|
|
|
|
|
|
|
|
|
|
srh = _srhel(u1, v1, z1, ter, lats, top) |
|
|
|
srh = _srhel(u1, v1, z1, ter, lats, top) |
|
|
|
|
|
|
|
|
|
|
|
return srh |
|
|
|
return srh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@copy_and_set_metadata(copy_varname="MAPFAC_M", name="updraft_helicity", |
|
|
|
@copy_and_set_metadata(copy_varname="MAPFAC_M", name="updraft_helicity", |
|
|
|
description="updraft helicity", |
|
|
|
description="updraft helicity", |
|
|
|
units="m2 s-2") |
|
|
|
units="m2 s-2") |
|
|
@ -207,4 +208,3 @@ def get_uh(wrfin, timeidx=0, method="cat", squeeze=True, |
|
|
|
uh = _udhel(zp, mapfct, u, v, wstag, dx, dy, bottom, top) |
|
|
|
uh = _udhel(zp, mapfct, u, v, wstag, dx, dy, bottom, top) |
|
|
|
|
|
|
|
|
|
|
|
return uh |
|
|
|
return uh |
|
|
|
|
|
|
|
|