gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [bug #51353] Pure rotation must be around pixel coordin


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #51353] Pure rotation must be around pixel coordinate (0, 0)
Date: Sat, 1 Jul 2017 08:54:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

URL:
  <http://savannah.gnu.org/bugs/?51353>

                 Summary: Pure rotation must be around pixel coordinate (0,0)
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Sat 01 Jul 2017 02:54:49 PM CEST
                Category: Warp
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: In Progress
                 Privacy: Public
             Assigned to: makhlaghi
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51353>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]