Open PaddyLeahy opened 1 year ago
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
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 ?
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