GetDcrTemplateTask#
- class lsst.ip.diffim.GetDcrTemplateTask(*args, **kwargs)#
Bases:
GetTemplateTaskMethods 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
runmethod.Methods Documentation
- checkPatchList(patchList)#
Check that all of the DcrModel subfilters are present for each patch.
Parameters#
- patchList
dict 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.
- patchList
- getDcrModel(patchList, coaddRefs, visitInfo)#
Build DCR-matched coadds from a list of exposure references.
Parameters#
- patchList
dict Dict of the patches containing valid data for each tract.
- coaddRefs
list[lsst.daf.butler.DeferredDatasetHandle] Data references to
Exposurerepresenting DcrModels that overlap the detector.- visitInfo
lsst.afw.image.VisitInfo Metadata for the science image.
Returns#
- coaddExposures
list[lsst.afw.image.Exposure] Coadd exposures that overlap the detector.
- patchList
- 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#
- dcrCoaddExposureHandles
list[lsst.daf.butler.DeferredDatasetHandleoflsst.afw.image.Exposure] Data references to exposures that might overlap the detector.
- bbox
lsst.geom.Box2I Template Bounding box of the detector geometry onto which to resample the coaddExposures.
- skymap
lsst.skymap.SkyMap Input definition of geometry/bbox and projection/wcs for template exposures.
- wcs
lsst.afw.geom.SkyWcs Template WCS onto which to resample the coaddExposures.
- visitInfo
lsst.afw.image.VisitInfo Metadata for the science image.
Returns#
- result
lsst.pipe.base.Struct A struct with attibutes:
coaddExposuresDict of coadd exposures that overlap the projected bbox, indexed on tract id (
dict[int,list[lsst.afw.image.Exposure] ]).dataIdsDict 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.
- dcrCoaddExposureHandles
- runQuantum(butlerQC, inputRefs, outputRefs)#
Do butler IO and transform to provide in memory objects for tasks
runmethod.Parameters#
- butlerQC
QuantumContext A butler which is specialized to operate in the context of a
lsst.daf.butler.Quantum.- inputRefs
InputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined input/prerequisite connections.- outputRefs
OutputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined output connections.
- butlerQC