LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | runDataRef (self, exposure, sensorRef, templateIdList=None) |
def | runQuantum (self, exposure, butlerQC, skyMapRef, coaddExposureRefs) |
def | getOverlapPatchList (self, exposure, skyMap) |
def | run (self, tractInfo, patchList, skyCorners, availableCoaddRefs, sensorRef=None, visitInfo=None) |
def | getCoaddDatasetName (self) |
Static Public Attributes | |
ConfigClass = GetCoaddAsTemplateConfig | |
Subtask to retrieve coadd for use as an image difference template. This is the default getTemplate Task to be run as a subtask by ``pipe.tasks.ImageDifferenceTask``. The main methods are ``run()`` and ``runGen3()``. Notes ----- From the given skymap, the closest tract is selected; multiple tracts are not supported. The assembled template inherits the WCS of the selected skymap tract and the resolution of the template exposures. Overlapping box regions of the input template patches are pixel by pixel copied into the assembled template image. There is no warping or pixel resampling. Pixels with no overlap of any available input patches are set to ``nan`` value and ``NO_DATA`` flagged.
Definition at line 82 of file getTemplate.py.
def lsst.ip.diffim.getTemplate.GetCoaddAsTemplateTask.getCoaddDatasetName | ( | self | ) |
Return coadd name for given task config Returns ------- CoaddDatasetName : `string` TODO: This nearly duplicates a method in CoaddBaseTask (DM-11985)
Definition at line 393 of file getTemplate.py.
def lsst.ip.diffim.getTemplate.GetCoaddAsTemplateTask.getOverlapPatchList | ( | self, | |
exposure, | |||
skyMap | |||
) |
Select the relevant tract and its patches that overlap with the science exposure. Parameters ---------- exposure : `lsst.afw.image.Exposure` The science exposure to define the sky region of the template coadd. skyMap : `lsst.skymap.BaseSkyMap` SkyMap object that corresponds to the template coadd. Returns ------- result : `tuple` of - ``tractInfo`` : `lsst.skymap.TractInfo` The selected tract. - ``patchList`` : `list` of `lsst.skymap.PatchInfo` List of all overlap patches of the selected tract. - ``skyCorners`` : `list` of `lsst.geom.SpherePoint` Corners of the exposure in the sky in the order given by `lsst.geom.Box2D.getCorners`.
Definition at line 225 of file getTemplate.py.
def lsst.ip.diffim.getTemplate.GetCoaddAsTemplateTask.run | ( | self, | |
tractInfo, | |||
patchList, | |||
skyCorners, | |||
availableCoaddRefs, | |||
sensorRef = None , |
|||
visitInfo = None |
|||
) |
Gen2 and gen3 shared code: determination of exposure dimensions and copying of pixels from overlapping patch regions. Parameters ---------- skyMap : `lsst.skymap.BaseSkyMap` SkyMap object that corresponds to the template coadd. tractInfo : `lsst.skymap.TractInfo` The selected tract. patchList : iterable of `lsst.skymap.patchInfo.PatchInfo` Patches to consider for making the template exposure. skyCorners : list of `lsst.geom.SpherePoint` Sky corner coordinates to be covered by the template exposure. availableCoaddRefs : `dict` [`int`] Dictionary of spatially relevant retrieved coadd patches, indexed by their sequential patch number. In Gen3 mode, values are `lsst.daf.butler.DeferredDatasetHandle` and ``.get()`` is called, in Gen2 mode, ``sensorRef.get(**coaddef)`` is called to retrieve the coadd. sensorRef : `lsst.daf.persistence.ButlerDataRef`, Gen2 only Butler data reference to get coadd data. Must be `None` for Gen3. visitInfo : `lsst.afw.image.VisitInfo`, Gen2 only VisitInfo to make dcr model. Returns ------- templateExposure: `lsst.afw.image.ExposureF` The created template exposure.
Definition at line 263 of file getTemplate.py.
def lsst.ip.diffim.getTemplate.GetCoaddAsTemplateTask.runDataRef | ( | self, | |
exposure, | |||
sensorRef, | |||
templateIdList = None |
|||
) |
Gen2 task entry point. Retrieve and mosaic a template coadd exposure that overlaps the science exposure. Parameters ---------- exposure: `lsst.afw.image.Exposure` an exposure for which to generate an overlapping template sensorRef : TYPE a Butler data reference that can be used to obtain coadd data templateIdList : TYPE, optional list of data ids, unused here, in the case of coadd template Returns ------- result : `lsst.pipe.base.Struct` - ``exposure`` : `lsst.afw.image.ExposureF` a template coadd exposure assembled out of patches - ``sources`` : None for this subtask
Definition at line 104 of file getTemplate.py.
def lsst.ip.diffim.getTemplate.GetCoaddAsTemplateTask.runQuantum | ( | self, | |
exposure, | |||
butlerQC, | |||
skyMapRef, | |||
coaddExposureRefs | |||
) |
Gen3 task entry point. Retrieve and mosaic a template coadd exposure that overlaps the science exposure. Parameters ---------- exposure : `lsst.afw.image.Exposure` The science exposure to define the sky region of the template coadd. butlerQC : `lsst.pipe.base.ButlerQuantumContext` Butler like object that supports getting data by DatasetRef. skyMapRef : `lsst.daf.butler.DatasetRef` Reference to SkyMap object that corresponds to the template coadd. coaddExposureRefs : iterable of `lsst.daf.butler.DeferredDatasetRef` Iterable of references to the available template coadd patches. Returns ------- result : `lsst.pipe.base.Struct` - ``exposure`` : `lsst.afw.image.ExposureF` a template coadd exposure assembled out of patches - ``sources`` : `None` for this subtask
Definition at line 149 of file getTemplate.py.
|
static |
Definition at line 101 of file getTemplate.py.