img_with_wcs

grizli.jwst_utils.img_with_wcs(input, overwrite=True, fit_sip_header=True, skip_completed=True, verbose=True)[source]

Open a JWST exposure and apply the distortion model.

Parameters
inputobject

Anything jwst.datamodels.util.open can accept for initialization.

overwritebool

Overwrite FITS file

fit_sip_headerbool

Run pipeline_model_wcs_header to rederive SIP distortion header

skip_completedbool

Skip the pipeline_model_wcs_header step if the GRIZLWCS keyword is already set to True.

verbosebool

Messaging to terminal.

Returns
with_wcsjwst.datamodels.ImageModel

Image model with full gwcs in with_wcs.meta.wcs.