Return wind shear in m/s, degrees
This commit is contained in:
parent
9f0d889972
commit
c6670fefc6
1 changed files with 3 additions and 5 deletions
|
@ -13,7 +13,8 @@ from xmet.thermo import follow_dry_adiabat, \
|
|||
pressure_height, \
|
||||
virtual_temp, \
|
||||
kelvin, \
|
||||
wind_uv
|
||||
wind_uv, \
|
||||
wind_speed_dir
|
||||
|
||||
from xmet.units import deg
|
||||
|
||||
|
@ -246,10 +247,7 @@ class Sounding(DatabaseTable):
|
|||
shear_u += shear[0]
|
||||
shear_v += shear[1]
|
||||
|
||||
return (
|
||||
shear_u / levels,
|
||||
shear_v / levels
|
||||
)
|
||||
return wind_speed_dir(shear_u / levels, shear_v / levels)
|
||||
|
||||
def between(n, a, b):
|
||||
return n > a and n < b
|
||||
|
|
Loading…
Add table
Reference in a new issue