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

Correct npstereo and spstereo to be polar stereographic projections #97

Open
rgrumbine opened this issue Sep 2, 2022 · 1 comment
Open

Comments

@rgrumbine
Copy link

in map_tools.py
there are options for npstereo and spstereo, which ordinary readers would take to mean north and south polar stereographic projections, but in the code, it is actually orthographic projection which is used. This is a very different projection.

@aerorahul
Copy link
Contributor

aerorahul commented Sep 9, 2022

I think the fix is easy enough

self.projection = ccrs.Orthographic(central_longitude=self.cenlon,
                            central_latitude=-90,
                            globe=self.globe)

should be replaced w/

self.projection = crs.SouthPolarStereo(central_longitude=self.cenlon, globe=None)

Similar for North Polar Stereographic projection.

The self.globe attribute could be set based on the selected projection as well

self.globe = globe

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

2 participants