rawCallback¶
- lsst.afw.cameraGeom.utils.rawCallback(im, ccd=None, imageSource=None, correctGain=False, subtractBias=False, convertToFloat=False, obeyNQuarter=True)¶
- A callback function that may or may not subtract bias/correct gain/trim a raw image. - Parameters:
- imlsst.afw.image.Imageorlsst.afw.image.MaskedImageorlsst.afw.image.Exposure
- An image of a chip, ready to be binned and maybe rotated. 
- ccdlsst.afw.cameraGeom.DetectororNone
- The Detector; if - Noneassume that im is an exposure and extract its Detector.
- imageSourceFakeImageDataSourceorNone
- Source to get ccd images. Must have a - getCcdImage()method.
- correctGainbool
- Correct each amplifier for its gain? 
- subtractBiasbool
- Subtract the bias from each amplifier? 
- convertToFloatbool
- Convert - imto floating point if possible.
- obeyNQuarterbool
- Obey nQuarter from the Detector (default: True) 
 
- im
- Returns:
- imagelsst.afw.image.Imagelike
- The constructed image (type returned by - im.Factory).
 
- image
 - Notes - If imageSource is derived from ButlerImage, imageSource.butler is available.