-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cartopy projection from a cube #5219
Comments
I would be happy to either write or review a PR for this. |
Why can't you use |
I think that is illustrated in the logic that |
In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity. If this issue is still important to you, then please comment on this issue and the stale label will be removed. Otherwise this issue will be automatically closed in 28 days time. |
This stale issue has been automatically closed due to a lack of community activity. If you still care about this issue, then please either:
|
✨ Feature Request
A convenience function to get an appropriate Cartopy projection from a cube.
Motivation
When plotting a map to the current axes,
iris.plot
has some logic that figures out the appropriate Cartopy projection and uses it to set up a Cartopy GeoAxes to plot onto (if the current axes isn't already a Cartopy one). This is super convenient and I use it all the time. However, it relies on Matplotlib's implicit API, which is not really how Matplotlib recommends doing things these days.If this logic could be factored out into its own public function, then users who want to use the recommended explicit API could do so without losing too much convenience.
Additional context
I realise there isn't much to this logic, and I could just write my own convenience function for my own use. However, I think it's worth Iris making it as easy as possible for users to follow the recommended practice.
The text was updated successfully, but these errors were encountered: