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

WCS_ROTATE fails (again) for 180 degree rotations #34

Open
PaddyLeahy opened this issue Mar 21, 2023 · 1 comment
Open

WCS_ROTATE fails (again) for 180 degree rotations #34

PaddyLeahy opened this issue Mar 21, 2023 · 1 comment

Comments

@PaddyLeahy
Copy link

Just discovered that WCS_ROTATE is still not working properly for 180 degree rotations; specifically, it fails at longitude 180 degrees:

HIDL> wcs_rotate, 180d0+[1,0,-1], 7d0+[0,0,0], phi, theta, [180d0,0d0], theta0=0d0
HIDL> print, phi
1.0000000 180.00000 -1.0000000
HIDL> print, theta
7.0000000 7.0000000 7.0000000

@PaddyLeahy
Copy link
Author

Actually it doesn't matter what CRVAL is: it always fails for longitude 180, due to the trap you put in when last modified, since it replaces cases of longitude=180 with 0. Did you mean to put in 180+/-eps ?

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

1 participant