sourceToFootprintList¶
-
lsst.ip.diffim.
sourceToFootprintList
(candidateInList, templateExposure, scienceExposure, kernelSize, config, log)¶ Convert a list of sources for the PSF-matching Kernel to Footprints.
Parameters: - candidateInList : TODO: DM-17458
Input list of Sources
- templateExposure : TODO: DM-17458
Template image, to be checked for Mask bits in Source Footprint
- scienceExposure : TODO: DM-17458
Science image, to be checked for Mask bits in Source Footprint
- kernelSize : TODO: DM-17458
TODO: DM-17458
- config : TODO: DM-17458
Config that defines the Mask planes that indicate an invalid Source and Bbox grow radius
- log : TODO: DM-17458
Log for output
Returns: - candidateOutList :
list
a list of dicts having a “source” and “footprint” field, to be used for Psf-matching
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.