bugGNU Astronomy Utilities - Bugs: bug #51353, Pure rotation must be around pixel...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51353: Pure rotation must be around pixel coordinate (0,0)

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Sat 01 Jul 2017 12:54:49 PM UTC
   
 
Category:  Warp Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Sat 01 Jul 2017 01:25:16 PM UTC, comment #1: 

The correction is now done and pushed to the main repo.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Sat 01 Jul 2017 12:54:49 PM UTC, original submission:  

When doing rotation about pixel coordinate (0,0) by an angle theta, until now Warp would use the following wrong equation (which is correct for rotation of the coordinates, not rotation of the point):


  cos(theta)  sin(theta)
 -sin(theta)  cos(theta)


When rotating the point (not the coordinates), the negative sign changes. However, this was not noticed! The reason was that in the standard aligned images, the first axis (RA) of the WCS points to the left, not the right. So the rotation would actually occur not around image coordinate (0,0), but image coordinate (X,0), where X is the length of the image along the first axis.

This lead us to incorrectly associate rotation in the WCS axis directions (only when the RA and image X axis are in opposite directions).

The problem became clear when trying rotation on an image where the RA and X axis were in the same direction.

So the rotation matrix above is now corrected and like all the other warpings, rotation is also around the image coordinate (0,0). I am almost finished correcting it and will close this bug when it is complete.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-01 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code