spacetelescope / wss_tools

Python tools for JWST Wavefront Sensing Software
https://wss-tools.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11 stars 10 forks source link

Does mosaic for THUMBNAIL have WCS? #3

Closed pllim closed 8 years ago

pllim commented 8 years ago

Answer: Yes.

Below is the resultant WCS from using nircam_test input images. Obviously, it ignores distortion but shouldn't matter for the purpose of QUIP. The mosaic was generated using MosaicAuto and saved out using SaveImage.

>>> from astropy.io import fits
>>> from astropy.wcs import WCS
>>> with fits.open('mosaic0_quip.fits') as pf:
...     data = pf[0].data
...     hdr = pf[0].header
>>> WCS(hdr)
WCS Keywords

Number of WCS axes: 2
CTYPE : 'RA---TAN'  'DEC--TAN'  
CRVAL : 5.6305680000000002  0.42412888888889  
CRPIX : 484.0  276.0  
PC1_1 PC1_2  : 1.0  0.0  
PC2_1 PC2_2  : -0.0  1.0  
CDELT : 0.0001818624  0.0001818624  
NAXIS    : 758 550