wcs_from_datamodel

grizli.jwst_utils.wcs_from_datamodel(datamodel, **kwargs)[source]

Initialize WCS object from wcsinfo parameters, accounting for the aperture reference position that sets the tangent point

Parameters
datamodeljwst.datamodels.image.ImageModel
kwargsdict

Keyword arguments passed to wcs_from_header

Returns
wcsWCS