LSST Applications g0fba68d861+2e894914a0,g1ec0fe41b4+e220e2fb2f,g1f759649c2+d3ce33c3e0,g1fd858c14a+2b9bf32e51,g35bb328faa+fcb1d3bbc8,g4d2262a081+1dc91b7776,g53246c7159+fcb1d3bbc8,g56a49b3a55+1053ce1741,g60b5630c4e+d3ce33c3e0,g67b6fd64d1+fad15079a7,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8180f54f50+9253e245c2,g8352419a5c+fcb1d3bbc8,g8852436030+f11a5d3b0b,g89139ef638+fad15079a7,g9125e01d80+fcb1d3bbc8,g94187f82dc+d3ce33c3e0,g989de1cb63+fad15079a7,g9ccd5d7f00+44d9ee3d90,g9d31334357+d3ce33c3e0,g9f33ca652e+9a8c17f5f6,gabe3b4be73+1e0a283bba,gabf8522325+94c30d56e9,gb1101e3267+90933e15fb,gb58c049af0+f03b321e39,gb89ab40317+fad15079a7,gc0af124501+26f6120d90,gcf25f946ba+f11a5d3b0b,gd6cbbdb0b4+8d7f1baacb,gd794735e4e+4bba874dfe,gdb1c4ca869+16879ca1a6,gde0f65d7ad+0609b2c34e,ge278dab8ac+4d6e48c014,ge410e46f29+fad15079a7,gf5e32f922b+fcb1d3bbc8,gf618743f1b+dd10d22602,gf67bdafdda+fad15079a7,w.2025.17
LSST Data Management Base Package
|
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 ) |
Definition at line 436 of file utils.py.
|
protected |
Definition at line 449 of file utils.py.
|
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.
Definition at line 380 of file utils.py.
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.
Definition at line 459 of file utils.py.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |