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
parse_cf() mercator projection - no central_latitude #1101
Comments
Can you point me to a file somewhere with this attribute? I'd like to use it validate putting in a patch to CartoPy. |
I think I'm still getting this issue. I don't think the logic is correct:
With this minimal example:
You can see central_latitude still exists. I think if you remove the if statement, it works and thus can be simplified to:
|
If you drop a |
Unfortunately the data I work with isn't publicly accessible. I'm not sure
I follow your statement though. Isn't the code already supposed to drop
central latitude for those projections with the pop?
…On Tue, Dec 3, 2019, 6:08 PM Ryan May ***@***.***> wrote:
If you drop a central_latitude of 90, any already projected coordinates
won't work. Can you point me to a file with this metadata so I can do a
more exhaustive test?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1101?email_source=notifications&email_token=ADU7FFTLMXKM5QSNSNVTUUTQW3YI7A5CNFSM4IE7DPWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF3IDQY#issuecomment-561414595>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADU7FFWLX224Z7WOBLOBDELQW3YI7ANCNFSM4IE7DPWA>
.
|
The code that's in right now, only drops |
I see. I think the issue is that cartopy's Mercator projection has no central_latitude kwd: e.g. |
@ahuang11 I'm not sure that it makes sense to ever specify a central latitude (or origin latitude) for Mercator. The CF Conventions documentation on Mercator don't list it as a metadata parameter. Also, the PROJ docs on Mercator only show Testing with PyProj, it looks like from pyproj import Proj
proj1 = Proj({'proj':'merc', 'lon_0':'-100', 'lat_0':'90'})
proj2 = Proj({'proj':'merc', 'lon_0':'-100', 'lat_0':'0'})
proj1(-100, 50) == proj2(-100, 50) prints |
I think similar to
The text was updated successfully, but these errors were encountered: