-
Notifications
You must be signed in to change notification settings - Fork 2
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
Missing support for lambert azimuthal projection #12
Comments
Hi @uandrae, thanks for opening this issue. Could you please share the code that you ran which triggered this error, and if possible the data that you were trying to plot? The Lambert azimuthal equal area projection is supported in earthkit-plots, but in this case it looks like earthkit is unable to extract that original Lambert gridpoints from your data, so it would be very useful to see the original file you're trying to plot. Many thanks! |
Thanks for getting back to me. Data is extracted from MARS as
using the earthkit plotting
Fails as above. Whereas if I use a |
Did you manage to reproduce my error? |
Hi @uandrae, Many thanks for sharing your code - I have managed to reproduce the error, and I'm working on a fix which should be released early this week. Thanks for your patience! :) |
Hi @uandrae, I've released a fix for this at earthkit-plots version 0.2.3 - you should be able to get it with: pip install earthkit-plots --upgrade Note also that this issue was migrated from the earthkit-maps project to earthkit-plots; these used to be two separate libraries but for many good reasons (and while earthkit is still in beta) we decided to merge earthkit-maps into earthkit-plots. Apologies for the inconvenience! If you want to run the equivalent of import earthkit.plots.quickmap as qmap
qmap.plot(data) Give that a go and let me know if it works as expected. Many thanks! |
I'm afraid that
just ends without errors, or any generated plots. |
Tried again with
Running
Still gives the same error:
|
Hi @uandrae, it looks like you're not actually using earthkit-plots 0.2.3, even though your module list suggests that you are - the telltale sign is that your error references line 136 in |
OK, this is for python3/3.11.10-01, for python3/3.10.10-01 I expect a plot to appear, but nothing happens? |
Hi @uandrae, the If you're running this in a script, you need to call qmap.plot(data).figure.save("my_image.png") Side note: if you upgrade to earthkit-plots 0.2.4, you can skip the qmap.plot(data).save("my_image.png") |
Is your feature request related to a problem? Please describe.
In the DE330 DestinE project we output hydrological data in the lambert azimuthal projection. When trying to plot this with earthkit.qickmap it fails as shown below. Is this projection not yet supported?
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
Organisation
DE330@DestinE
The text was updated successfully, but these errors were encountered: