FakeImageDataSource

class lsst.afw.cameraGeom.utils.FakeImageDataSource(isTrimmed=True, verbose=False, background=nan, showAmpGain=True, markSize=10, markValue=0, ampImValue=None, scaleGain=<function FakeImageDataSource.<lambda>>)

Bases: object

A class to retrieve synthetic images for display by the show* methods

Parameters
isTrimmedbool

Should amps be trimmed?

verbosebool

Be chatty?

backgroundfloat

The value of any pixels that lie outside the CCDs.

showAmpGainbool

Color the amp segments with the gain of the amp?

markSizefloat

Size of the side of the box used to mark the read corner.

markValuefloat

Value to assign the read corner mark.

ampImValuefloat or None

Value to assign to amps; scaleGain(gain) is used if None.

scaleGaincallable

Function to scale the gain by.

Methods Summary

getAmpImage(amp, imageFactory)

Return an amp segment image.

getCcdImage(det, imageFactory, binSize)

Return a CCD image for the detector and the (possibly updated) Detector.

Methods Documentation

getAmpImage(amp, imageFactory)

Return an amp segment image.

Parameters
amplsst.afw.table.AmpInfoTable

AmpInfoTable for this amp.

imageFactorycallable like lsst.afw.image.Image

Image constructor for making the image.

Returns
ampImagelsst.afw.image.Image

The constructed image.

getCcdImage(det, imageFactory, binSize)

Return a CCD image for the detector and the (possibly updated) Detector.

Parameters
detlsst.afw.cameraGeom.Detector

Detector to use for making the image.

imageFactorycallable like lsst.afw.image.Image

Image constructor for making the image.

binSizeint

Bin the image by this factor in both dimensions.

Returns
ccdImagelsst.afw.image.Image

The constructed image.