do_correction
- jwst.barshadow.bar_shadow.do_correction(input_model, barshadow_model=None, inverse=False, source_type=None, correction_pars=None)[source]
Correct MSA data for bar shadows.
- Parameters:
- input_model
MultiSlitModel Science data model to be corrected. Updated in place.
- barshadow_model
BarshadowModel, optional Bar shadow data model from reference file.
- inversebool, optional
Invert the math operations used to apply the flat field.
- source_typestr or None, optional
Force processing using the specified source type.
- correction_parsdict or None, optional
Correction parameters to use instead of recalculation.
- input_model
- Returns:
- input_model
MultiSlitModel Science data model with correction applied and barshadow extensions added.
- corrections
MultiSlitModel A model of the correction arrays.
- input_model