-
For quick reference I'm using metpy 0.12.2, and I am trying to compute temperature advection:
I am not sure what's going on here after looking through the 0.12 documentation. Any insights are appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you need to work with MetPy<1.0, you'll have to
You'll have to specifically do this for U, V for this to work. As the return will be a Pint quantity with units, I'd suggest a consistent application of above to Temperature as well, so the result is physically meaningful. Either way, I'd strongly suggest upgrading to a newer MetPy if at all possible. Thanks! |
Beta Was this translation helpful? Give feedback.
If you need to work with MetPy<1.0, you'll have to
u = ds['u'].values
; use these as-is or manually create Pint quantities with units, oru = ds['u'].metpy.unit_array
to create Pint quantities with units quickly.You'll have to specifically do this for U, V for this to work. As the return will be a Pint quantity with units, I'd suggest a consistent application of above to Temperature as well, so the result is physically meaningful. Either way, I'd strongly suggest upgrading to a newer MetPy if at all possible. Thanks!