do_correction
- jwst.gain_scale.gain_scale.do_correction(output_model, gain_factor)[source]
Rescale all integrations in an exposure by gain factor.
Rescales all integrations in an exposure by gain factor, to account for non-standard detector gain settings. The SCI, ERR, and variance arrays are rescaled.
- Parameters:
- output_model
JwstDataModel Input datamodel to be corrected.
- gain_factorfloat
Scale gain factor.
- output_model
- Returns:
- output_model
JwstDataModel Output datamodel with rescaled data.
- output_model