sourceToFootprintList¶
- lsst.ip.diffim.sourceToFootprintList(candidateInList, templateExposure, scienceExposure, kernelSize, config, log)¶
Convert a list of sources for the PSF-matching Kernel to Footprints.
- Parameters:
- candidateInListTODO: DM-17458
Input list of Sources
- templateExposureTODO: DM-17458
Template image, to be checked for Mask bits in Source Footprint
- scienceExposureTODO: DM-17458
Science image, to be checked for Mask bits in Source Footprint
- kernelSizeTODO: DM-17458
TODO: DM-17458
- configTODO: DM-17458
Config that defines the Mask planes that indicate an invalid Source and Bbox grow radius
- logTODO: DM-17458
Log for output
- Returns:
- candidateOutList
list
a list of dicts having a “source” and “footprint” field, to be used for Psf-matching
- candidateOutList
- Raises:
- RuntimeError
TODO: DM-17458
Notes
Takes an input list of Sources that were selected to constrain the Psf-matching Kernel and turns them into a List of Footprints, which are used to seed a set of KernelCandidates. The function checks both the template and science image for masked pixels, rejecting the Source if certain Mask bits (defined in config) are set within the Footprint.