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:
- im
lsst.afw.image.Image
orlsst.afw.image.MaskedImage
orlsst.afw.image.Exposure
An image of a chip, ready to be binned and maybe rotated.
- ccd
lsst.afw.cameraGeom.Detector
orNone
The Detector; if
None
assume that im is an exposure and extract its Detector.- imageSource
FakeImageDataSource
orNone
Source to get ccd images. Must have a
getCcdImage()
method.- correctGain
bool
Correct each amplifier for its gain?
- subtractBias
bool
Subtract the bias from each amplifier?
- convertToFloat
bool
Convert
im
to floating point if possible.- obeyNQuarter
bool
Obey nQuarter from the Detector (default: True)
- im
- Returns:
- image
lsst.afw.image.Image
like The constructed image (type returned by
im.Factory
).
- image
Notes
If imageSource is derived from ButlerImage, imageSource.butler is available.