newDeblend#
- lsst.meas.deblender.baseline.newDeblend(debPlugins, footprint, mMaskedImage, psfs, psfFwhms, log=None, verbose=False, avgNoise=None, maxNumberOfPeaks=0)#
Deblend a parent
Footprintin aMaskedImageF.Deblending assumes that
footprinthas multiple peaks, as it will still create aPerFootprintobject with a list of peaks even if there is only one peak in the list. It is recommended to first check thatfootprinthas 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.Footprintor list of Footprints Parent footprint to deblend.
- mMaskedImage:
MultibandMaskedImageorMaskedImage Masked image in each band.
- psfs:
afw.detection.Psfor list of Psfs Psf of the
maskedImage.- psfFwhms:
floator list of floats FWHM of the
maskedImage'spsf.- log:
lsst.log.Loggerorlsst.utils.logging.LsstLogAdapter, optional Logger for logging purposes. Must support a
tracemethod. IfNone, a default logger will be created named after this module.- verbose:
bool, optional Whether or not to show a more verbose output. This option only affects the logger creeated internally and will not change the reporting level of an externally-supplied logger. The default is
False.- avgNoise:
float`or list of `floats, optional Average noise level in each
maskedImage. The default isNone, which estimates the noise from the median value of the variance plane ofmaskedImagefor 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 firstmaxNumberOfPeakssources are deblended.
Returns#
- debResult:
DeblendedParent Deblender result that contains a list of
MultiColorPeaks for each peak and information that describes the footprint in all filters.
- debPlugins: list of