applyGains

lsst.ip.isr.applyGains(exposure, normalizeGains=False, ptcGains=None)

Scale an exposure by the amplifier gains.

Parameters:
exposurelsst.afw.image.Exposure

Exposure to process. The image is modified.

normalizeGainsBool, optional

If True, then amplifiers are scaled to force the median of each amplifier to equal the median of those medians.

ptcGainsdict`[`str], optional

Dictionary keyed by amp name containing the PTC gains.