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
I am experiencing some trouble when using cartopy transformations in the plot module.
I am concerned about plotting speed (plotting very high resolution maps of ocean model output takes forever).
According to #657 I tried to use plot.imshow but I am getting unexpected results for the map projection.
The longitude wrapping does not seem to work and as seen by the mismatch between the ocean mask data and the coastline in the example below, the projection seems to be inaccurate.
This seems to be related to the cartopy module (see the last plot which was done 'outside' of xarray).
My question is twofold, I guess
Is there is any other 'high speed' alternative to plot high resolution maps.
Since this error might not appear as drastically in all mapping scenarios, should plot.imshow display a warning, when invoked with a transformation argument, or even an error?
Thanks for the detailed and well documented question. I had a look at your data, and there are two issues that imshow cannot handle well:
your data isn't well centred (lons go from -300 to 60, which explains the shape of your image on the globe). This wouldn't be a big deal if it wasn't for the other problem, which is:
your latitude data isn't regular.
plt.plot(ds.lath[1:].values-ds.lath[:-1].values)
Gives:
which is quite... interesting.
Anyways, imshow is so much faster because it needs regular, nicely sorted data. In your case I don't think there is much other choice than pcolormesh or contourf... Note also that plotting on Robinson is slower than plotting on a plate carree projection.
Uh oh!
There was an error while loading. Please reload this page.
I am experiencing some trouble when using cartopy transformations in the plot module.
I am concerned about plotting speed (plotting very high resolution maps of ocean model output takes forever).
According to #657 I tried to use plot.imshow but I am getting unexpected results for the map projection.
The longitude wrapping does not seem to work and as seen by the mismatch between the ocean mask data and the coastline in the example below, the projection seems to be inaccurate.
This seems to be related to the cartopy module (see the last plot which was done 'outside' of xarray).
My question is twofold, I guess
ocean_mask.nc.zip
The text was updated successfully, but these errors were encountered: