|
lsst.ip.diffim ga500d100eb+833bc1611b
|
Classes | |
| class | GetDcrTemplateConnections |
| class | GetTemplateConnections |
Functions | |
| run (self, coaddExposures, bbox, wcs, dataIds, physical_filter=None, **kwargs) | |
| checkPatchList (self, patchList) | |
| getDcrModel (self, patchList, coaddRefs, visitInfo) | |
| _selectDataRef (coaddRef, tract, patch) | |
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()) | |
| inputsWcs = inputs['wcs'] | |
| patchPolygon = afwGeom.Polygon(inputsWcs.skyToPixel(patchCorners)) | |
| coaddExposures = self.getDcrModel(patchList, inputs['dcrCoadds'], inputs['visitInfo']) | |
| list | coaddExposureRefList = [] |
| patchList = dict() | |
|
protected |
Definition at line 492 of file getTemplate.py.
| 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 439 of file getTemplate.py.
| 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` [`lsst.daf.butler.DeferredDatasetHandle`]
Data references to `~lsst.afw.image.Exposure` representing
DcrModels that overlap the detector.
visitInfo : `lsst.afw.image.VisitInfo`
Metadata for the science image.
Returns
-------
coaddExposureList : `list` [`lsst.afw.image.Exposure`]
Coadd exposures that overlap the detector.
Definition at line 460 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.run | ( | self, | |
| coaddExposures, | |||
| bbox, | |||
| wcs, | |||
| dataIds, | |||
physical_filter = None, |
|||
| ** | 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` [`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` [`lsst.daf.butler.DataCoordinate`]
Record of the tract and patch of each coaddExposure.
physical_filter : `str`, optional
The physical filter of the science image.
**kwargs
Any additional keyword parameters.
Returns
-------
result : `lsst.pipe.base.Struct`
A struct with attributes:
``template``
A template coadd exposure assembled out of patches
(`lsst.afw.image.ExposureF`).
Raises
------
NoWorkFound
If no coadds are found with sufficient un-masked pixels.
RuntimeError
If the PSF of the template can't be calculated.
Definition at line 188 of file getTemplate.py.
| list lsst.ip.diffim.getTemplate.coaddExposureList = [] |
Definition at line 163 of file getTemplate.py.
| list lsst.ip.diffim.getTemplate.coaddExposureRefList = [] |
Definition at line 410 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.coaddExposures = self.getDcrModel(patchList, inputs['dcrCoadds'], inputs['visitInfo']) |
Definition at line 185 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.dataId = coaddRef.dataId |
Definition at line 166 of file getTemplate.py.
| list lsst.ip.diffim.getTemplate.dataIds = [] |
Definition at line 164 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.detectorPolygon = geom.Box2D(inputs['bbox']) |
Definition at line 161 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.inputsWcs = inputs['wcs'] |
Definition at line 170 of file getTemplate.py.
| int lsst.ip.diffim.getTemplate.overlappingArea = 0 |
Definition at line 162 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchBBox = inputs['skyMap'][dataId['tract']][dataId['patch']].getOuterBBox() |
Definition at line 168 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchCorners = patchWcs.pixelToSky(geom.Box2D(patchBBox).getCorners()) |
Definition at line 169 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchList = dict() |
Definition at line 412 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchPolygon = afwGeom.Polygon(inputsWcs.skyToPixel(patchCorners)) |
Definition at line 172 of file getTemplate.py.
| lsst.ip.diffim.getTemplate.patchWcs = inputs['skyMap'][dataId['tract']].getWcs() |
Definition at line 167 of file getTemplate.py.