lsst.ip.diffim  22.0.1-21-g5bd0cb7e+2c70496b1c
Classes | Functions | Variables
lsst.ip.diffim.getTemplate Namespace Reference

Classes

class  GetCoaddAsTemplateConfig
 
class  GetCoaddAsTemplateTask
 
class  GetCalexpAsTemplateConfig
 
class  GetCalexpAsTemplateTask
 
class  GetMultiTractCoaddTemplateConnections
 

Functions

def run (self, coaddExposures, bbox, wcs)
 

Variables

 detectorPolygon = geom.Box2D(inputs['bbox'])
 
int overlappingArea = 0
 
list coaddExposureList = []
 
 dataId = coaddRef.dataId
 
 patchWcs = inputs['skyMap'][dataId['tract']].getWcs()
 
 patchBBox = inputs['skyMap'][dataId['tract']][dataId['patch']].getOuterBBox()
 
 patchCorners = patchWcs.pixelToSky(geom.Box2D(patchBBox).getCorners())
 
 patchPolygon = afwGeom.Polygon(inputs['wcs'].skyToPixel(patchCorners))
 

Function Documentation

◆ run()

def lsst.ip.diffim.getTemplate.run (   self,
  coaddExposures,
  bbox,
  wcs 
)
Warp coadds from multiple tracts to form a template for image diff.

Where the tracts overlap, the resulting template image is averaged.
The PSF on the template is created by combining the CoaddPsf on each
template image into a meta-CoaddPsf.

Parameters
----------
coaddExposures: list of DeferredDatasetHandle to `lsst.afw.image.Exposure`
    Coadds to be mosaicked
bbox : `lsst.geom.Box2I`
    Template Bounding box of the detector geometry onto which to
    resample the coaddExposures
wcs : `lsst.afw.geom.SkyWcs`
    Template WCS onto which to resample the coaddExposures

Returns
-------
result : `struct`
    return a pipeBase.Struct:
    - ``outputExposure`` : a template coadd exposure assembled out of patches


Raises
------
NoWorkFound
    Raised if no patches overlatp the input detector bbox

Definition at line 603 of file getTemplate.py.

Variable Documentation

◆ coaddExposureList

list lsst.ip.diffim.getTemplate.coaddExposureList = []

Definition at line 585 of file getTemplate.py.

◆ dataId

lsst.ip.diffim.getTemplate.dataId = coaddRef.dataId

Definition at line 587 of file getTemplate.py.

◆ detectorPolygon

lsst.ip.diffim.getTemplate.detectorPolygon = geom.Box2D(inputs['bbox'])

Definition at line 583 of file getTemplate.py.

◆ overlappingArea

int lsst.ip.diffim.getTemplate.overlappingArea = 0

Definition at line 584 of file getTemplate.py.

◆ patchBBox

lsst.ip.diffim.getTemplate.patchBBox = inputs['skyMap'][dataId['tract']][dataId['patch']].getOuterBBox()

Definition at line 589 of file getTemplate.py.

◆ patchCorners

lsst.ip.diffim.getTemplate.patchCorners = patchWcs.pixelToSky(geom.Box2D(patchBBox).getCorners())

Definition at line 590 of file getTemplate.py.

◆ patchPolygon

lsst.ip.diffim.getTemplate.patchPolygon = afwGeom.Polygon(inputs['wcs'].skyToPixel(patchCorners))

Definition at line 591 of file getTemplate.py.

◆ patchWcs

lsst.ip.diffim.getTemplate.patchWcs = inputs['skyMap'][dataId['tract']].getWcs()

Definition at line 588 of file getTemplate.py.