flat_for_nirspec_ifu

jwst.flatfield.flat_field.flat_for_nirspec_ifu(output_model, f_flat_model, s_flat_model, d_flat_model, dispaxis)[source]

Create the interpolated flat for NIRSpec IFU.

Parameters:
output_modelJwstDataModel

Science data model, modified (flat fielded) in-place.

f_flat_modelNirspecFlatModel, NirspecQuadFlatModel, 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.

Returns:
flat, flat_dq, flat_errndarray

The interpolated flat correction and associated DQ and error.

any_updatedbool

True if any slice of the IFU has been corrected.