A class to return an Image of a given Ccd using the butler.
Parameters
----------
butler : `lsst.daf.persistence.Butler` or `None`
The butler to use. If `None`, an empty image is returned.
type : `str`
The type of image to read (e.g. raw, bias, flat, calexp).
isTrimmed : `bool`
If true, the showCamera command expects to be given trimmed images.
verbose : `bool`
Be chatty (in particular, log any error messages from the butler)?
background : `float`
The value of any pixels that lie outside the CCDs.
callback : callable
A 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 : `list`
Passed to the butler.
**kwargs : `dict`
Passed to the butler.
Notes
-----
You can define a short named function as a callback::
def callback(im, ccd, imageSource):
return cameraGeom.utils.rawCallback(im, ccd, imageSource, correctGain=True)
Definition at line 399 of file utils.py.