calculate_wavelength_correction_transform

jwst.wavecorr.wavecorr.calculate_wavelength_correction_transform(lam, dispersion, freference, source_xpos, aperture_name)[source]

Add a transform for wavelength correction to the WCS pipeline for each slit.

Parameters:
lamndarray

Wavelength array in meters.

dispersionndarray

The pixel dispersion in meters.

freferencestr

wavecorr reference file name.

source_xposfloat

X position of the source as a fraction of the slit size.

aperture_namestr

Aperture name.

Returns:
modelTabular1D or None

A model which takes wavelength inputs and returns zero-point corrected wavelengths. Returns None if an invertible model cannot be generated.