Skip to content

System (storm) - relative winds (isentropic analysis) #1976

Answered by sgdecker
DanielAdriaansen asked this question in Q&A
Discussion options

You must be logged in to vote

MetPy doesn't have the concept of a vector quantity (which is what VECN constructs in GEMPAK); instead, you work with the scalar components directly (u and v). The system-relative wind is therefore just a subtraction operation, so it is "too simple" for MetPy to have its own function. Here is an example:

usys = (nam_isen['ugrd'] - 14.49*units('m/s')).rename('usys')
vsys = (nam_isen['vgrd'] - 3.88*units('m/s')).rename('vsys')
wind_sys = xr.merge([usys, vsys])

where the system motion was hard-coded to have a u component of 14.49 m/s, and a v component of 3.88 m/s, and nam_isen is the result of metpy.calc.isentropic_interpolation_as_dataset, and that dataset happens to have variables in it n…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dopplershift
Comment options

Answer selected by dopplershift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants