|
lsst.afw gf03f0b42f3+b1047159b2
|
Public Member Functions | |
| __init__ (self, butler=None, type="raw", isTrimmed=True, verbose=False, background=numpy.nan, callback=None, *args, **kwargs) | |
| getCcdImage (self, ccd, imageFactory=afwImage.ImageF, binSize=1, asMaskedImage=False) | |
| getAmpImage (self, amp, imageFactory) | |
Public Attributes | |
| str | type = type |
| butler = butler | |
| kwargs = kwargs | |
| bool | isRaw = False |
| callback = callback | |
| isTrimmed = isTrimmed | |
| verbose = verbose | |
| background = background | |
| showAmpGain = showAmpGain | |
| markSize = markSize | |
| markValue = markValue | |
| ampImValue = ampImValue | |
| scaleGain = scaleGain | |
Protected Member Functions | |
| _prepareImage (self, ccd, im, binSize, allowRotate=True) | |
A class to return an Image of a given Ccd using the butler.
Parameters
----------
butler : `lsst.daf.butler.Butler` or `None`
The butler to use. If `None`, an empty image is returned. Assumes that
the instrument was specified during butler construction or is included
in the ``kwargs`` parameter.
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, detector, 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 base class constructor.
**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)
| lsst.afw.cameraGeom.utils.ButlerImage.__init__ | ( | self, | |
| butler = None, | |||
| type = "raw", | |||
| isTrimmed = True, | |||
| verbose = False, | |||
| background = numpy.nan, | |||
| callback = None, | |||
| * | args, | ||
| ** | kwargs ) |
|
protected |
|
inherited |
Return an amp segment image.
Parameters
----------
amp : `lsst.afw.table.AmpInfoTable`
AmpInfoTable for this amp.
imageFactory : callable like `lsst.afw.image.Image`
Image constructor for making the image.
Returns
-------
ampImage : `lsst.afw.image.Image`
The constructed image.
| lsst.afw.cameraGeom.utils.ButlerImage.getCcdImage | ( | self, | |
| ccd, | |||
| imageFactory = afwImage.ImageF, | |||
| binSize = 1, | |||
| asMaskedImage = False ) |
Return an image of the specified ccd, and also the (possibly updated) ccd
Reimplemented from lsst.afw.cameraGeom.utils.FakeImageDataSource.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |