-
Notifications
You must be signed in to change notification settings - Fork 94
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
Possibly an issue with get_lonlats() for robinson projection #232
Comments
Could this be related to OSGeo/PROJ#304 ? |
So the question is is what version of proj and pyproj are you using @ninahakansson and @mraspaud was your fix only for the mollweide projection? |
Yes, my fix was only for mollweide. Looking at the robinson code, it doesn't seem to be returning any HUGE_VAL when it's out of bounds, as was the case with mollweide before my patch. In other words, it's probably a bug in proj. |
Ok, here is an example of a problematic behaviour:
|
So one lon/lat has multiple possible projection coordinates... |
PR made to PROJ: OSGeo/PROJ#2151 |
This is now fixed and merged in PROJ, closing this issue. |
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
I am trying to resample and plot data on a Robinson projection.
However when plotting I get data also in the 4 corners. I have found away around it
and was thinking of adding an example to the docs.
But when using the ortho projection there is no problem with data in the corners.
Longitudes retrieved by get_lonlats() are for the ortho projection very large 10^30
in the corners outside the globe. However for the robinson projection they are not.
Expected Output
I would have expected longitude outside the globe to be very large or nan or nodata
for both the robinson and ortho projection. In the attached picture I expected red color outside the globe.
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Python 3.6.7
Pyresample 1.13.2
The text was updated successfully, but these errors were encountered: