You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be np.asanyarray() instead of np.array() to respect any potential masks. I'm not sure if the take_along_axis later will respect the mask or not, but hopefully this gives someone some pointers on where to look to solve this issue.
Description
Using
contourf
withtransform_first=True
on masked data simply ignores the mask and plots the underlying value.Code to reproduce
gives a plot that shows very high values ~1e36 (which actually should be masked!):
transform_first=False
and/or filling the masked array with nans gives the expected result:Full environment definition
Operating system
Cartopy version
0.23.0
conda list
env.txt
pip list
pip.txt
The text was updated successfully, but these errors were encountered: