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
gwcsand SIP WCS of a JWST exposure with the round trip transformationpixel -> 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
gwcsforward transform to generate the SIP header rather than theastropy.wcsSIP header.- func_kwargsdict
Keyword arguments for the
gwcsSIP header generation.
- Returns
- fig
matplotlib.figure.Figure Figure object
- fig