lsst.afw  14.0-25-g0e8fc950e+3
Classes | Namespaces | Functions
utils.py File Reference

Go to the source code of this file.

Classes

class  lsst.afw.cameraGeom.utils.FakeImageDataSource
 
class  lsst.afw.cameraGeom.utils.ButlerImage
 

Namespaces

 lsst.afw.cameraGeom.utils
 

Functions

def lsst.afw.cameraGeom.utils.prepareWcsData (wcs, amp, isTrimmed=True)
 Put Wcs from an Amp image into CCD coordinates. More...
 
def lsst.afw.cameraGeom.utils.plotFocalPlane (camera, fieldSizeDeg_x=0, fieldSizeDeg_y=None, dx=0.1, dy=0.1, figsize=(10., 10.), useIds=False, showFig=True, savePath=None)
 Make a plot of the focal plane along with a set points that sample the field of view. More...
 
def lsst.afw.cameraGeom.utils.makeImageFromAmp (amp, imValue=None, imageFactory=afwImage.ImageU, markSize=10, markValue=0, scaleGain=lambda gain:(gain *1000)//10)
 Make an image from an amp object. More...
 
def lsst.afw.cameraGeom.utils.calcRawCcdBBox (ccd)
 Calculate the raw ccd bounding box. More...
 
def lsst.afw.cameraGeom.utils.makeImageFromCcd (ccd, isTrimmed=True, showAmpGain=True, imageFactory=afwImage.ImageU, rcMarkSize=10, binSize=1)
 Make an Image of a Ccd. More...
 
def lsst.afw.cameraGeom.utils.rawCallback (im, ccd=None, imageSource=None, correctGain=False, subtractBias=False, convertToFloat=False)
 A callback function that may or may not subtract bias/correct gain/trim a raw image. More...
 
def lsst.afw.cameraGeom.utils.overlayCcdBoxes (ccd, untrimmedCcdBbox=None, nQuarter=0, isTrimmed=False, ccdOrigin=(0, 0), display=None, binSize=1)
 Overlay bounding boxes on an image display. More...
 
def lsst.afw.cameraGeom.utils.showAmp (amp, imageSource=FakeImageDataSource(isTrimmed=False), display=None, overlay=True, imageFactory=afwImage.ImageU)
 Show an amp in an image display. More...
 
def lsst.afw.cameraGeom.utils.showCcd (ccd, imageSource=FakeImageDataSource(), display=None, frame=None, overlay=True, imageFactory=afwImage.ImageF, binSize=1, inCameraCoords=False)
 Show a CCD on display. More...
 
def lsst.afw.cameraGeom.utils.getCcdInCamBBoxList (ccdList, binSize, pixelSize_o, origin)
 Get the bounding boxes of a list of Detectors within a camera sized pixel grid. More...
 
def lsst.afw.cameraGeom.utils.getCameraImageBBox (camBbox, pixelSize, bufferSize)
 Get the bounding box of a camera sized image in pixels. More...
 
def lsst.afw.cameraGeom.utils.makeImageFromCamera (camera, detectorNameList=None, background=numpy.nan, bufferSize=10, imageSource=FakeImageDataSource(), imageFactory=afwImage.ImageU, binSize=1)
 Make an Image of a Camera. More...
 
def lsst.afw.cameraGeom.utils.showCamera (camera, imageSource=FakeImageDataSource(), imageFactory=afwImage.ImageF, detectorNameList=None, binSize=10, bufferSize=10, frame=None, overlay=True, title="", showWcs=None, ctype=afwDisplay.GREEN, textSize=1.25, originAtCenter=True, display=None, kwargs)
 Show a Camera on display, with the specified display. More...
 
def lsst.afw.cameraGeom.utils.makeFocalPlaneWcs (pixelSize, referencePixel)
 Make a WCS for the focal plane geometry (i.e. More...
 
def lsst.afw.cameraGeom.utils.findAmp (ccd, pixelPosition)
 Find the Amp with the specified pixel position within the composite. More...