flat_for_nirspec_slit
- jwst.flatfield.flat_field.flat_for_nirspec_slit(slit, f_flat_model, s_flat_model, d_flat_model, dispaxis, exposure_type, slit_nt, subarray, use_wavecorr)[source]
Create the interpolated flat for NIRSpec slit data.
- Parameters:
- slit
SlitModel A slit to process.
- f_flat_model
NirspecFlatModel,NirspecQuadFlatModel, or None Flat field for the fore optics.
- s_flat_model
NirspecFlatModelor None Flat field for the spectrograph.
- d_flat_model
NirspecFlatModelor None Flat field for the detector.
- dispaxisint
1 means horizontal dispersion, 2 means vertical dispersion.
- exposure_typestr
The exposure type
- slit_ntnamedtuple or None
For MOS data (only), this is used to get the quadrant number and the indices of the current shutter in the Y and X directions.
- subarraystr
The subarray specification from
JwstDataModel.meta.subarray.- use_wavecorrbool or None
Flag indicating whether or not to use the corrected wavelengths provided (upstream) by the wavecorr step.
- slit
- Returns:
- flat
SlitModel The calculated flat.
- flat