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
wavecorrreference file name.- source_xposfloat
X position of the source as a fraction of the slit size.
- aperture_namestr
Aperture name.
- Returns:
- model
Tabular1Dor None A model which takes wavelength inputs and returns zero-point corrected wavelengths. Returns None if an invertible model cannot be generated.
- model