wcs_from_fits_header

romanisim.wcs.wcs_from_fits_header(header)

Convert a FITS WCS to a GWCS.

This function reads SIP coefficients from a FITS WCS and implements the corresponding gWCS WCS. It was copied from gwcs.tests.utils._gwcs_from_hst_fits_wcs.

Parameters:
headerastropy.io.fits.header.Header

FITS header

Returns:
wcsgwcs.wcs.WCS

gwcs WCS corresponding to header