-
Notifications
You must be signed in to change notification settings - Fork 791
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
Regression in rHealpix projection since v4.9.1 #1206
Comments
Bisect results:
|
A quick check of the commit, looks like inverting the following change gets some of the way (command line round-trip works again), but I'm still having issues with it within cartopy...:
|
Confirming that the full fix is below:
Unfortunately, applying this to the 5.2 branch is a bit harder, as it has been subsequently factored out. |
What is the fix above applied to? The master branch?
Don't worry, we haven't scheduled any patch releases for the 5.2 branch. |
It was applied on top of the bad commit (to try avoiding too many moving parts). |
Another key change:
|
Numerical test results based on function output, rather than mathematical derivation. Verified global coverage with graphical eyeballing through cartopy.
Fixed rHealpix projection, closing #1206.
Solved by #1207. |
I'm working on providing the Rectangular Healpix projection in cartopy. I started the process some time ago (around Christmas 🎄last year as it happens) and was using v4.9.1. It produced some pretty pleasant results:
(FWIW, cartopy has a general image transformation tool that can produce images like this for any projection that has a forward and inverse defined)
I didn't have the time to investigate at the time, but it turns out that this projection has had a regression in later versions of proj, particularly with regards to the lower rectangle. The following image is indicative of the issue:
A quick demonstration of the issue:
And with 5.2.0:
You can see that the round-trip transformation is no longer correct.
The image gives us another hint of what is going on - notice how cartopy is projecting the antarctic geometry to the north pole, which suggests that it is the
lon/lat
->healpix meters
conversion which is wrong.The text was updated successfully, but these errors were encountered: