-
Notifications
You must be signed in to change notification settings - Fork 3
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
Where does one find rotation? #7
Comments
Hi @alexw-im, The rotation is, in a sense, part of the WCS object. However, there is no simple way to extract it (to my knowledge) because Astrometry.net generates a CD matrix (details at https://docs.astropy.org/en/stable/wcs/index.html and https://arxiv.org/abs/astro-ph/0207407). In a nutshell, the CD matrix is a general linear transformation (not just scale + rotation but also shear), which makes the notion of field rotation ill-defined. I can think of two workarounds:
|
Hi,
I can confirm that the WCS produced has the PC_* keywords and you can obtain the angle with the arctan of the ratio of the values. |
Our you can use local_partial_pixel_derivatives to get the angle in any part of the image (probably better). |
It looks like the
Match
object includes center RA and Dec but not rotation to north about the frame center. I guess that's probably provided in the attached WCS? If so, I can't find it. Any pointers where to go looking?The text was updated successfully, but these errors were encountered: