compare_gwcs_sip

grizli.jwst_utils.compare_gwcs_sip(file, save=False, step=32, use_gwcs_func=False, func_kwargs={'crpix': None, 'degree': 5, 'max_pix_error': 0.01})[source]

Make a figure comparing the gwcs and SIP WCS of a JWST exposure with the round trip transformation pixel -> gwcs_RaDec -> sip_pixel

Parameters
filestr

Filename, e.g., jw...._cal.fits

savebool

Save the figure to file.replace('.fits', '.sip.png')

stepint

Step size for the test pixel grid

use_gwcs_funcbool

Use the gwcs forward transform to generate the SIP header rather than the astropy.wcs SIP header.

func_kwargsdict

Keyword arguments for the gwcs SIP header generation.

Returns
figmatplotlib.figure.Figure

Figure object