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.
| def lsst.afw.cameraGeom.utils.FakeImageDataSource.getAmpImage |
( |
|
self, |
|
|
|
amp, |
|
|
|
imageFactory |
|
) |
| |
|
inherited |
Return an amp segment image.
- Parameters
-
| [in] | amp | AmpInfoTable for this amp |
| [in] | imageFactory | image constructor fo making the imag |
Definition at line 299 of file utils.py.
| 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.
| lsst.afw.cameraGeom.utils.FakeImageDataSource.ampImValue |
|
inherited |
| lsst.afw.cameraGeom.utils.ButlerImage.background |
| lsst.afw.cameraGeom.utils.ButlerImage.butler |
| lsst.afw.cameraGeom.utils.ButlerImage.callback |
| lsst.afw.cameraGeom.utils.ButlerImage.gravity |
| lsst.afw.cameraGeom.utils.ButlerImage.isRaw |
| lsst.afw.cameraGeom.utils.ButlerImage.isTrimmed |
| lsst.afw.cameraGeom.utils.ButlerImage.kwargs |
| lsst.afw.cameraGeom.utils.FakeImageDataSource.markSize |
|
inherited |
| lsst.afw.cameraGeom.utils.FakeImageDataSource.markValue |
|
inherited |
| lsst.afw.cameraGeom.utils.FakeImageDataSource.scaleGain |
|
inherited |
| lsst.afw.cameraGeom.utils.FakeImageDataSource.showAmpGain |
|
inherited |
| lsst.afw.cameraGeom.utils.ButlerImage.type |
| lsst.afw.cameraGeom.utils.ButlerImage.verbose |
The documentation for this class was generated from the following file: