nirspec_fs_msa

jwst.flatfield.flat_field.nirspec_fs_msa(output_model, f_flat_model, s_flat_model, d_flat_model, dispaxis, user_supplied_flat=None, inverse=False)[source]

Apply flat-fielding for NIRSpec fixed slit and MSA data, in-place.

Parameters:
output_modelMultiSlitModel

MultiSlitModel, modified (flat fielded) slit-by-slit, in-place.

f_flat_modelNirspecFlatModel or None

Flat field for the fore optics.

s_flat_modelNirspecFlatModel or None

Flat field for the spectrograph.

d_flat_modelNirspecFlatModel or None

Flat field for the detector.

dispaxisint

1 means horizontal dispersion, 2 means vertical dispersion.

user_supplied_flatJwstDataModel or None, optional

If provided, override all other calculated or reference-file-retrieved flat information and use this data.

inversebool, optional

Invert the math operations used to apply the flat field.

Returns:
interpolated_flatsMultiSlitModel

The interpolated flat field, one for each slit.