match_gwcs_to_sip¶
- grizli.jwst_utils.match_gwcs_to_sip(input, step=64, transform=None, verbose=True, overwrite=True)[source]¶
Calculate transformation of gwcs to match SIP header, which may have been realigned (shift, rotation, scale)
- Parameters
- inputstr,
HDUList FITS filename of a JWST image or a previously-opened
HDUListwith SIP wcs information stored in the first extension.- stepint
Step size of the pixel grid for calculating the tranformation
- transform
skimage.transform Transform object, e.g.,
skimage.transform.SimilarityTransformorskimage.transform.Euclideanransform- verbosebool
Verbose messages
- overwritebool
If True and
inputis a string, re-write to file
- inputstr,
- Returns
- obj
jwst.datamodels.image.ImageModel Datamodel with updated WCS object. The
REFkeywords are updated inimg[1].header.
- obj
Notes
The scale factor of transformation is applied by multiplying the scale to the last parameters of the
distortionWCS pipeline. These might not necessarily be scale coefficients for all instrument WCS pipelines