GetDcrTemplateTask#

class lsst.ip.diffim.GetDcrTemplateTask(*args, **kwargs)#

Bases: GetTemplateTask

Methods Summary

checkPatchList(patchList)

Check that all of the DcrModel subfilters are present for each patch.

getDcrModel(patchList, coaddRefs, visitInfo)

Build DCR-matched coadds from a list of exposure references.

getExposures(dcrCoaddExposureHandles, bbox, ...)

Return lists of coadds and their corresponding dataIds that overlap the detector.

runQuantum(butlerQC, inputRefs, outputRefs)

Do butler IO and transform to provide in memory objects for tasks run method.

Methods Documentation

checkPatchList(patchList)#

Check that all of the DcrModel subfilters are present for each patch.

Parameters#

patchListdict

Dict of the patches containing valid data for each tract.

Raises#

RuntimeError

If the number of exposures found for a patch does not match the number of subfilters.

getDcrModel(patchList, coaddRefs, visitInfo)#

Build DCR-matched coadds from a list of exposure references.

Parameters#

patchListdict

Dict of the patches containing valid data for each tract.

coaddRefslist [lsst.daf.butler.DeferredDatasetHandle]

Data references to Exposure representing DcrModels that overlap the detector.

visitInfolsst.afw.image.VisitInfo

Metadata for the science image.

Returns#

coaddExposureslist [lsst.afw.image.Exposure]

Coadd exposures that overlap the detector.

getExposures(dcrCoaddExposureHandles, bbox, skymap, wcs, visitInfo)#

Return lists of coadds and their corresponding dataIds that overlap the detector.

The spatial index in the registry has generous padding and often supplies patches near, but not directly overlapping the detector. Filters inputs so that we don’t have to read in all input coadds.

Parameters#

dcrCoaddExposureHandleslist [lsst.daf.butler.DeferredDatasetHandle of lsst.afw.image.Exposure]

Data references to exposures that might overlap the detector.

bboxlsst.geom.Box2I

Template Bounding box of the detector geometry onto which to resample the coaddExposures.

skymaplsst.skymap.SkyMap

Input definition of geometry/bbox and projection/wcs for template exposures.

wcslsst.afw.geom.SkyWcs

Template WCS onto which to resample the coaddExposures.

visitInfolsst.afw.image.VisitInfo

Metadata for the science image.

Returns#

resultlsst.pipe.base.Struct

A struct with attibutes:

coaddExposures

Dict of coadd exposures that overlap the projected bbox, indexed on tract id (dict [int, list [lsst.afw.image.Exposure] ]).

dataIds

Dict of data IDs of the coadd exposures that overlap the projected bbox, indexed on tract id (dict [int, list [`lsst.daf.butler.DataCoordinate] ]).

Raises#

pipeBase.NoWorkFound

Raised if no patches overlatp the input detector bbox.

runQuantum(butlerQC, inputRefs, outputRefs)#

Do butler IO and transform to provide in memory objects for tasks run method.

Parameters#

butlerQCQuantumContext

A butler which is specialized to operate in the context of a lsst.daf.butler.Quantum.

inputRefsInputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined input/prerequisite connections.

outputRefsOutputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined output connections.