do_correction_ifu

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

Path loss correction for NIRSpec IFU.

Data are modified in-place.

Parameters:
dataJwstDataModel

The NIRSpec IFU data to be corrected.

pathlossJwstDataModel

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:
correctionsJwstDataModel

The pathloss corrections applied.