-
Hi all, Seems to happen when I'm shading CAPE/CIN
works for a while then
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This looks to be a current sticking point in MetPy (I've opened #1752 to have an issue to keep track of it). Based on some quick exploration, I can get basic SkewT stuff working with just xarray, but not cape/cin shading. Mixing xarray and Pint Quantities reproduces the Unfortunately, this likely means either waiting for fixes in MetPy (or maybe even upstream in matplotlib if we can't fix the mixed object issues here) or casting all your xarray objects in the plotting calls to Pint quantities (i.e., |
Beta Was this translation helpful? Give feedback.
This looks to be a current sticking point in MetPy (I've opened #1752 to have an issue to keep track of it). Based on some quick exploration, I can get basic SkewT stuff working with just xarray, but not cape/cin shading. Mixing xarray and Pint Quantities reproduces the
TypeError
/ConversionError
you found above, and it looks like you have some manual creation of quantities rather than just using source xarray objects, so I believe that is what going on in your example.Unfortunately, this likely means either waiting for fixes in MetPy (or maybe even upstream in matplotlib if we can't fix the mixed object issues here) or casting all your xarray objects in the plotting calls to Pint quantit…