lsst.afw  13.0-109-g62eb66483
Public Member Functions | Public Attributes | List of all members
lsst.afw.cameraGeom.utils.FakeImageDataSource Class Reference
Inheritance diagram for lsst.afw.cameraGeom.utils.FakeImageDataSource:
lsst.afw.cameraGeom.utils.ButlerImage

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)
 Construct a FakeImageDataSource. More...
 
def getCcdImage (self, det, imageFactory, binSize)
 Return a CCD image for the detector and the (possibly updated) Detector. More...
 
def getAmpImage (self, amp, imageFactory)
 Return an amp segment image. More...
 

Public Attributes

 isTrimmed
 
 verbose
 
 background
 
 showAmpGain
 
 markSize
 
 markValue
 
 ampImValue
 
 scaleGain
 

Detailed Description

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

Definition at line 263 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

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 
)

Construct a FakeImageDataSource.

Parameters
[in]isTrimmedShould amps be trimmed?
[in]verboseBe chatty
[in]backgroundThe value of any pixels that lie outside the CCDs
[in]showAmpGaincolor the amp segments with the gain of the amp
[in]markSizesize of the side of the box used to mark the read corner
[in]markValuevalue to assing the read corner mark
[in]ampImValueValue to assing to amps. scaleGain(gain) is used if None
[in]scaleGainfunction to scale the gain by

Definition at line 268 of file utils.py.

Member Function Documentation

◆ getAmpImage()

def lsst.afw.cameraGeom.utils.FakeImageDataSource.getAmpImage (   self,
  amp,
  imageFactory 
)

Return an amp segment image.

Parameters
[in]ampAmpInfoTable for this amp
[in]imageFactoryimage constructor fo making the imag

Definition at line 299 of file utils.py.

◆ getCcdImage()

def lsst.afw.cameraGeom.utils.FakeImageDataSource.getCcdImage (   self,
  det,
  imageFactory,
  binSize 
)

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

Parameters
[in]detDetector to use for making the image
[in]imageFactoryimage constructor for making the image
[in]binSizenumber of pixels per bin axis

Definition at line 289 of file utils.py.

Member Data Documentation

◆ ampImValue

lsst.afw.cameraGeom.utils.FakeImageDataSource.ampImValue

Definition at line 286 of file utils.py.

◆ background

lsst.afw.cameraGeom.utils.FakeImageDataSource.background

Definition at line 282 of file utils.py.

◆ isTrimmed

lsst.afw.cameraGeom.utils.FakeImageDataSource.isTrimmed

Definition at line 280 of file utils.py.

◆ markSize

lsst.afw.cameraGeom.utils.FakeImageDataSource.markSize

Definition at line 284 of file utils.py.

◆ markValue

lsst.afw.cameraGeom.utils.FakeImageDataSource.markValue

Definition at line 285 of file utils.py.

◆ scaleGain

lsst.afw.cameraGeom.utils.FakeImageDataSource.scaleGain

Definition at line 287 of file utils.py.

◆ showAmpGain

lsst.afw.cameraGeom.utils.FakeImageDataSource.showAmpGain

Definition at line 283 of file utils.py.

◆ verbose

lsst.afw.cameraGeom.utils.FakeImageDataSource.verbose

Definition at line 281 of file utils.py.


The documentation for this class was generated from the following file: