Skip to content
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

Plotting doesn't seem to work, at least not for Arctic basin #11

Closed
xylar opened this issue Feb 4, 2016 · 5 comments
Closed

Plotting doesn't seem to work, at least not for Arctic basin #11

xylar opened this issue Feb 4, 2016 · 5 comments

Comments

@xylar
Copy link
Collaborator

xylar commented Feb 4, 2016

I just tried to plot all ocean basins and I found that the Arctic basin is plotting very differently in the 3 different views. It looks correct on GitHub so I think the problem is somehow with the plotting and not with data itself.

ocean_basins

In the figure, I think the North Pole plot is correct but the two mill plots are both very glitchy. I'm not sure the Arctic basin is the only one that isn't plotting correctly but it seems to be the most extreme case.

@xylar
Copy link
Collaborator Author

xylar commented Feb 4, 2016

@douglasjacobsen or @pwolfram, this is a very low priority issue to fix, but maybe something to look into at some point.

@douglasjacobsen
Copy link
Member

On the plus side, github is able to plot it correctly...
https://github.com/MPAS-Dev/geometric_features/blob/master/ocean/region/Arctic_Ocean/region.geojson

@pwolfram
Copy link
Contributor

pwolfram commented Feb 5, 2016

@xylar and @douglasjacobsen, I think the issue is the singularity at the pole and the way it is represented in the region. I've added a few more projections at #12: 'aeqd', 'eck4', 'cyl', 'merc', 'vandg' which you can try out by inserting these strings in the list at https://github.com/pwolfram/geometric_features/blob/additional_projection_types/plot_features.py#L109.

The reason github plots correctly is that it uses this projection (http://wiki.openstreetmap.org/wiki/EPSG:3857). Unfortunately, basemap does not have this capability. If we need to fix this we may have to leave the basemap api...

@xylar
Copy link
Collaborator Author

xylar commented Feb 5, 2016

@pwolfram, I guess I'm surprised that a simple cylindrical projection doesn't do the trick for the Arctic basin. If I just plot the basins in matplotlib without using basemap, everything looks okay...

@pwolfram
Copy link
Contributor

pwolfram commented Feb 6, 2016

This issue is fixed by #14 and I'm closing it.

@pwolfram pwolfram closed this as completed Feb 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants