lsst.afw 22.0.1-44-g1eb145662+f83c99e373
|
Public Member Functions | |
def | __init__ (self, isTrimmed=True, verbose=False, background=numpy.nan, showAmpGain=True, markSize=10, markValue=0, ampImValue=None, scaleGain=lambda gain:(gain *1000)//10) |
def | getCcdImage (self, det, imageFactory, binSize) |
def | getAmpImage (self, amp, imageFactory) |
Public Attributes | |
isTrimmed | |
verbose | |
background | |
showAmpGain | |
markSize | |
markValue | |
ampImValue | |
scaleGain | |
A class to retrieve synthetic images for display by the show* methods Parameters ---------- isTrimmed : `bool` Should amps be trimmed? verbose : `bool` Be chatty? background : `float` The value of any pixels that lie outside the CCDs. showAmpGain : `bool` Color the amp segments with the gain of the amp? markSize : `float` Size of the side of the box used to mark the read corner. markValue : `float` Value to assign the read corner mark. ampImValue : `float` or `None` Value to assign to amps; scaleGain(gain) is used if `None`. scaleGain : callable Function to scale the gain by.
def lsst.afw.cameraGeom.utils.FakeImageDataSource.__init__ | ( | self, | |
isTrimmed = True , |
|||
verbose = False , |
|||
background = numpy.nan , |
|||
showAmpGain = True , |
|||
markSize = 10 , |
|||
markValue = 0 , |
|||
ampImValue = None , |
|||
scaleGain = lambda gain: (gain*1000)//10 |
|||
) |
Reimplemented in lsst.afw.cameraGeom.utils.ButlerImage.
def lsst.afw.cameraGeom.utils.FakeImageDataSource.getAmpImage | ( | self, | |
amp, | |||
imageFactory | |||
) |
Return an amp segment image. Parameters ---------- amp : `lsst.afw.table.AmpInfoTable` AmpInfoTable for this amp. imageFactory : callable like `lsst.afw.image.Image` Image constructor for making the image. Returns ------- ampImage : `lsst.afw.image.Image` The constructed image.
def lsst.afw.cameraGeom.utils.FakeImageDataSource.getCcdImage | ( | self, | |
det, | |||
imageFactory, | |||
binSize | |||
) |
Return a CCD image for the detector and the (possibly updated) Detector. Parameters ---------- det : `lsst.afw.cameraGeom.Detector` Detector to use for making the image. imageFactory : callable like `lsst.afw.image.Image` Image constructor for making the image. binSize : `int` Bin the image by this factor in both dimensions. Returns ------- ccdImage : `lsst.afw.image.Image` The constructed image.
Reimplemented in lsst.afw.cameraGeom.utils.ButlerImage.