wcs_from_header

grizli.utils.wcs_from_header(header, relax=True, **kwargs)[source]

Initialize WCS from a Header

Parameters
headerHeader

FITS header with optional SIPCRPX1 and SIPCRPX2 keywords that define a separate reference pixel for a SIP header

relax, kwargsbool, dict

Keywords passed to astropy.wcs.WCS

Returns
wcsWCS

WCS object