-
Notifications
You must be signed in to change notification settings - Fork 366
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
Bug with orthographic projection on Linux/Mac? #1142
Comments
This version appears a bit buggy with the Orthographic projection, but it seems to be fixed with 5.1.0. However, Cartopy does not support Proj 5+ (#1045), so you will have to downgrade it to 4.9.3. |
Hi @QuLogic yes, that is indeed the issue - thank you! On my Windows computer, the proj4 version is 5.1.0 which seems to work ok with Cartopy, maybe by fluke. I see now that the Cartopy documentation says to use the conda-forge channel, and when I re-installed Cartopy on Linux from conda-forge instead of default, it uses proj4 4.9.3 dependency instead of 5+ and my issue above is resolved. Out of curiosity, do you know why are there different Cartopy dependencies on default vs. conda-forge channels? I'm not very familiar with all the intricacies of conda channels and I usually just check for a library first on default channel, and then if it's not found, check for it on conda-forge. Is that not generally the best approach? Thank you so much for your help! |
The difference in dependencies is an artifact of the fact that conda-forge is community-managed, so little issues like this tend to be updated more rapidly than the default/main Conda channel. |
Ah, I see! That makes sense. Thanks very much for your insights @dopplershift! |
Description
I think I might have stumbled onto a bug with the orthographic projection which is specific to Linux/Mac and doesn't seem to exist in Windows.
Examples
Orthographic projection with stock image, coastline, and scatter plot
Windows looks fine:
With exactly the same code and same version of Cartopy (0.16.0) on Linux, there is no stock image and the scatter plot is messed up:
Orthographic projection with land and ocean features only
Windows is fine:
Linux also fine, so far:
Orthographic projection with land and ocean features, plus scatter plot
Windows seems mostly fine (although the bottom of the map has been sliced off?):
Linux now completely messed up:
Code to reproduce
Jupyter notebook with output from Linux
Jupyter notebook with exactly the same code, but output was generated by running on Windows
Full environment definition
Operating system
Several of my students encountered the issue on their Mac computers. I don't have a Mac, but was able to reproduce the issue on Ubuntu 16.04 LTS.
Cartopy version
0.16.0
conda list
pip list
The text was updated successfully, but these errors were encountered: