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_modelJwstDataModel

Input datamodel to be corrected.

gain_factorfloat

Scale gain factor.

Returns:
output_modelJwstDataModel

Output datamodel with rescaled data.