newDeblend¶
-
lsst.meas.deblender.
newDeblend
(debPlugins, footprint, mMaskedImage, psfs, psfFwhms, log=None, verbose=False, avgNoise=None, maxNumberOfPeaks=0)¶ Deblend a parent
Footprint
in aMaskedImageF
.Deblending assumes that
footprint
has multiple peaks, as it will still create aPerFootprint
object with a list of peaks even if there is only one peak in the list. It is recommended to first check thatfootprint
has more than one peak, similar to the execution oflsst.meas.deblender.deblend.SourceDeblendTask
.This version of the deblender accepts a list of plugins to execute, with the option to re-run parts of the deblender if templates are changed during any of the steps.
Parameters: - debPlugins: list of `meas.deblender.plugins.DeblenderPlugins`
Plugins to execute (in order of execution) for the deblender.
- footprint: `afw.detection.Footprint` or list of Footprints
Parent footprint to deblend.
- mMaskedImage: `MultibandMaskedImage` or `MaskedImage`
Masked image in each band.
- psfs: `afw.detection.Psf` or list of Psfs
Psf of the
maskedImage
.- psfFwhms: `float` or list of floats
FWHM of the
maskedImage
’spsf
.- log: `log.Log`, optional
LSST logger for logging purposes. The default is
None
(no logging).- verbose: `bool`, optional
Whether or not to show a more verbose output. The default is
False
.- avgNoise: `float`or list of `float`s, optional
Average noise level in each
maskedImage
. The default isNone
, which estimates the noise from the median value of the variance plane ofmaskedImage
for each filter.- maxNumberOfPeaks: `int`, optional
If nonzero, the maximum number of peaks to deblend. If the total number of peaks is greater than
maxNumberOfPeaks
, then only the firstmaxNumberOfPeaks
sources are deblended.
Returns: - debResult:
DeblendedParent
Deblender result that contains a list of
MultiColorPeak
s for each peak and information that describes the footprint in all filters.