-
Notifications
You must be signed in to change notification settings - Fork 271
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
Bug: fix geographic coordinate conversions #4839
Bug: fix geographic coordinate conversions #4839
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you verify this matches what's in the docs?
Just took a look through the docs and I can't find any mention of latitude/theta conversion. There are some scattered comments related to the aitoff projection that mention e.g., "latitude is -PI/2 to PI/2 (latitude = PI/2 - colatitude)", but I don't see any user-facing docs that do. Checking on that prompted me to look at longitude as well and I realized the |
@yt-fido test this please |
@yt-fido test this please |
1 similar comment
@yt-fido test this please |
pre-commit.ci autofix |
Assuming tests still pass, this should be good to go. @matthewturk any more comments here? |
@yt-fido test this please |
1 similar comment
@yt-fido test this please |
@matthewturk are you able to take another look ? I may be able to fill in as a reviewer otherwise. |
@neutrinoceros I checked in w Matt, he'll be able to take another look soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great.
thanks all ! |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
Manual backport for #4839
The latitude to theta conversion (EDIT: as well as the longitude to phi and to
convert_to_cartesian
method) in the geographic coordinate handlers was incorrect in a number of locations. I added a new test and parametrized the existing geographic coordinate tests while I was there.