|
lsst.ip.diffim gaa63f70f4e+c8156c43f4
|
Classes | |
| class | GetCalexpAsTemplateConfig |
| class | GetCalexpAsTemplateTask |
| class | GetCoaddAsTemplateConfig |
| class | GetCoaddAsTemplateTask |
| class | GetDcrTemplateConnections |
| class | GetMultiTractCoaddTemplateConfig |
| class | GetMultiTractCoaddTemplateTask |
| class | GetTemplateConnections |
Functions | |
| def | run (self, coaddExposures, bbox, wcs, dataIds, **kwargs) |
| def | checkPatchList (self, patchList) |
| def | getDcrModel (self, patchList, coaddRefs, visitInfo) |
Variables | |
| detectorPolygon = geom.Box2D(inputs['bbox']) | |
| int | overlappingArea = 0 |
| list | coaddExposureList = [] |
| list | dataIds = [] |
| 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)) | |
| coaddExposures = self.getDcrModel(patchList, inputs['dcrCoadds'], inputs['visitInfo']) | |
| list | coaddExposureRefList = [] |
| patchList = dict() | |
| def lsst.ip.diffim.getTemplate.checkPatchList | ( | self, | |
| 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.
Definition at line 823 of file getTemplate.py.
| def lsst.ip.diffim.getTemplate.getDcrModel | ( | self, | |
| 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` of elements of type
`lsst.daf.butler.DeferredDatasetHandle` of
`lsst.afw.image.Exposure`
Data references to DcrModels that overlap the detector.
visitInfo : `lsst.afw.image.VisitInfo`
Metadata for the science image.
Returns
-------
`list` of elements of type `lsst.afw.image.Exposure`
Coadd exposures that overlap the detector.
Definition at line 842 of file getTemplate.py.
| def lsst.ip.diffim.getTemplate.run | ( | self, | |
| coaddExposures, | |||
| bbox, | |||
| wcs, | |||
| dataIds, | |||
| ** | kwargs | ||
| ) |
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 `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
dataIds : `list` of `lsst.daf.butler.DataCoordinate`
Record of the tract and patch of each coaddExposure.
**kwargs
Any additional keyword parameters.
Returns
-------
result : `lsst.pipe.base.Struct` containing
- ``outputExposure`` : a template coadd exposure assembled out of patches
Definition at line 596 of file getTemplate.py.
| list lsst.ip.diffim.getTemplate.coaddExposureList = [] |
Definition at line 575 of file getTemplate.py.
| list lsst.ip.diffim.getTemplate.coaddExposureRefList = [] |
Definition at line 794 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.coaddExposures = self.getDcrModel(patchList, inputs['dcrCoadds'], inputs['visitInfo']) |
Definition at line 593 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.dataId = coaddRef.dataId |
Definition at line 578 of file getTemplate.py.
| list lsst.ip.diffim.getTemplate.dataIds = [] |
Definition at line 576 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.detectorPolygon = geom.Box2D(inputs['bbox']) |
Definition at line 573 of file getTemplate.py.
| int lsst.ip.diffim.getTemplate.overlappingArea = 0 |
Definition at line 574 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchBBox = inputs['skyMap'][dataId['tract']][dataId['patch']].getOuterBBox() |
Definition at line 580 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchCorners = patchWcs.pixelToSky(geom.Box2D(patchBBox).getCorners()) |
Definition at line 581 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchList = dict() |
Definition at line 796 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchPolygon = afwGeom.Polygon(inputs['wcs'].skyToPixel(patchCorners)) |
Definition at line 582 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchWcs = inputs['skyMap'][dataId['tract']].getWcs() |
Definition at line 579 of file getTemplate.py.