lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
lsst.afw.cameraGeom.utils.ButlerImage Class Reference
Inheritance diagram for lsst.afw.cameraGeom.utils.ButlerImage:
lsst.afw.cameraGeom.utils.FakeImageDataSource

Public Member Functions

def __init__
 Create an object that knows how to prepare images for showCamera using the butler. More...
 
def getCcdImage
 
- Public Member Functions inherited from lsst.afw.cameraGeom.utils.FakeImageDataSource
def __init__
 Construct a FakeImageDataSource. More...
 
def getCcdImage
 Return a CCD image for the detector and the (possibly updated) Detector. More...
 
def getAmpImage
 Return an amp segment image. More...
 

Public Attributes

 isTrimmed
 
 type
 
 butler
 
 kwargs
 
 isRaw
 
 gravity
 
 background
 
 verbose
 
 callback
 
- Public Attributes inherited from lsst.afw.cameraGeom.utils.FakeImageDataSource
 isTrimmed
 
 verbose
 
 background
 
 showAmpGain
 
 markSize
 
 markValue
 
 ampImValue
 
 scaleGain
 

Detailed Description

A class to return an Image of a given Ccd using the butler

Definition at line 313 of file utils.py.

Constructor & Destructor Documentation

def lsst.afw.cameraGeom.utils.ButlerImage.__init__ (   self,
  butler = None,
  type = "raw",
  isTrimmed = True,
  verbose = False,
  background = numpy.nan,
  gravity = None,
  callback = None,
  args,
  kwargs 
)

Create an object that knows how to prepare images for showCamera using the butler.

Parameters
butlerThe butler to use. If no butler is provided an empty image is returned
typeThe type of image to read (e.g. raw, bias, flat, calexp)
isTrimmedIf true, the showCamera command expects to be given trimmed images
verboseBe chatty (in particular, print any error messages from the butler)
backgroundThe value of any pixels that lie outside the CCDs
gravityIf the image returned by the butler is trimmed (e.g. some of the SuprimeCam CCDs) Specify how to fit the image into the available space; N => align top, W => align left
callbackA function called with (image, ccd, butler) for every image, which returns the image to be displayed (e.g. rawCallback). The image must be of the correct size, allowing for the value of isTrimmed
*args,*kwargsPassed to the butler

N.b. You can use a lambda as a callback, e.g. callback=lambda im, ccd, imageSource : cgUtils.rawCallback(im, ccd, imageSource, correctGain=True)

Definition at line 318 of file utils.py.

Member Function Documentation

def lsst.afw.cameraGeom.utils.ButlerImage.getCcdImage (   self,
  ccd,
  imageFactory = afwImage.ImageF,
  binSize = 1 
)
Return an image of the specified ccd, and also the (possibly updated) ccd

Definition at line 357 of file utils.py.

Member Data Documentation

lsst.afw.cameraGeom.utils.ButlerImage.background

Definition at line 343 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.butler

Definition at line 339 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.callback

Definition at line 345 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.gravity

Definition at line 342 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.isRaw

Definition at line 341 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.isTrimmed

Definition at line 337 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.kwargs

Definition at line 340 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.type

Definition at line 338 of file utils.py.

lsst.afw.cameraGeom.utils.ButlerImage.verbose

Definition at line 344 of file utils.py.


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