|
| def | __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. More...
|
| |
| def | getCcdImage (self, ccd, imageFactory=afwImage.ImageF, binSize=1) |
| |
| def | getAmpImage (self, amp, imageFactory) |
| | Return an amp segment image. More...
|
| |
A class to return an Image of a given Ccd using the butler
Definition at line 315 of file utils.py.
◆ __init__()
| 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 320 of file utils.py.
◆ getAmpImage()
| 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 301 of file utils.py.
◆ getCcdImage()
| 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 359 of file utils.py.
◆ ampImValue
| lsst.afw.cameraGeom.utils.FakeImageDataSource.ampImValue |
|
inherited |
◆ background
| lsst.afw.cameraGeom.utils.ButlerImage.background |
◆ butler
| lsst.afw.cameraGeom.utils.ButlerImage.butler |
◆ callback
| lsst.afw.cameraGeom.utils.ButlerImage.callback |
◆ gravity
| lsst.afw.cameraGeom.utils.ButlerImage.gravity |
◆ isRaw
| lsst.afw.cameraGeom.utils.ButlerImage.isRaw |
◆ isTrimmed
| lsst.afw.cameraGeom.utils.ButlerImage.isTrimmed |
◆ kwargs
| lsst.afw.cameraGeom.utils.ButlerImage.kwargs |
◆ markSize
| lsst.afw.cameraGeom.utils.FakeImageDataSource.markSize |
|
inherited |
◆ markValue
| lsst.afw.cameraGeom.utils.FakeImageDataSource.markValue |
|
inherited |
◆ scaleGain
| lsst.afw.cameraGeom.utils.FakeImageDataSource.scaleGain |
|
inherited |
◆ showAmpGain
| lsst.afw.cameraGeom.utils.FakeImageDataSource.showAmpGain |
|
inherited |
◆ type
| lsst.afw.cameraGeom.utils.ButlerImage.type |
◆ verbose
| lsst.afw.cameraGeom.utils.ButlerImage.verbose |
The documentation for this class was generated from the following file: