astroufsc / chimera

Chimera - Observatory Automation System
http://chimera.sf.net/
GNU General Public License v2.0
36 stars 19 forks source link

Move WCS calculations to astropy #93

Open wschoenell opened 9 years ago

wschoenell commented 9 years ago

We currently calculate when exposing, on the camera saveImage process: https://github.com/astroufsc/chimera/blob/e15ce55eb7a20f635a4baa40fdc15ecf54a68185/src/chimera/instruments/camera.py#L172-L177

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