Plotting maxima & minima, lows & highs, etc #3300
-
I just need a nudge in the right direction. Is there a built in function of some sort for plotting lows & highs, or maxima & minima (e.g. from vorticity), etc, given a 2D (or xarray) data field plotted on a horizontal cartopy map? I tried writing my own function using something like this, after identifying highs and lows in the array:
It works but there's problems fitting it to the map window since the map is dynamically sized by matplotlib and cartopy. If I simply plot all the highs and lows it will literally try to plot all of them even if they are beyond the borders of the map, causing the map to resize and a lot of new whitespace will appear. I have had to resort to manually constraining highs and lows by hardcoded lat/long until I figure it out. If this has been covered in MetPy Mondays I will be glad to have a look. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I think this example is what you are looking for. The functionality isn't built in yet, but there is work in that direction (#3110). |
Beta Was this translation helpful? Give feedback.
-
Yes, there is active work to make the finding and plotting of highs/lows (max/min) ongoing with an active issue #3110 in MetPy. The hope is to have that in for the next release of the package. |
Beta Was this translation helpful? Give feedback.
I think this example is what you are looking for. The functionality isn't built in yet, but there is work in that direction (#3110).