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

Move WCS calculations to astropy #93

Open
wschoenell opened this issue Jul 24, 2015 · 0 comments
Open

Move WCS calculations to astropy #93

wschoenell opened this issue Jul 24, 2015 · 0 comments

Comments

@wschoenell
Copy link
Contributor

We currently calculate when exposing, on the camera saveImage process:

img += [("CRPIX1", CRPIX1, "coordinate system reference pixel"),
("CRPIX2", CRPIX2, "coordinate system reference pixel"),
("CD1_1", scale_x, "transformation matrix element (1,1)"),
("CD1_2", 0.0, "transformation matrix element (1,2)"),
("CD2_1", 0.0, "transformation matrix element (2,1)"),
("CD2_2", scale_y, "transformation matrix element (2,2)")]

For this few parameters it is ok this approach, but since we are getting more complex I suggest to move this wcs stuff to the Image object using the astropy wcs package:

http://astropy.readthedocs.org/en/latest/wcs/#building-a-wcs-structure-programmatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant