A class to return an Image of a given Ccd using the butler
Definition at line 313 of file utils.py.
| 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
-
| butler | The butler to use. If no butler is provided an empty image is returned |
| type | The type of image to read (e.g. raw, bias, flat, calexp) |
| isTrimmed | If true, the showCamera command expects to be given trimmed images |
| verbose | Be chatty (in particular, print any error messages from the butler) |
| background | The value of any pixels that lie outside the CCDs |
| gravity | If 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 |
| callback | 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,*kwargs | Passed 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.