do_correction_mos

jwst.pathloss.pathloss.do_correction_mos(data, pathloss, inverse=False, source_type=None)[source]

Path loss correction for NIRSpec MOS.

Data are modified in-place.

Parameters:
dataJwstDataModel

The NIRSpec MOS data to be corrected.

pathlossPathlossModel or None

The pathloss reference data.

inversebool

Invert the math operations used to apply the pathloss correction.

source_typestr or None

Force processing using the specified source type.

Returns:
correctionsMultiSlitModel

The pathloss corrections applied.