deblend

lsst.meas.extensions.scarlet.deblend(mExposure, footprint, config, spectrumInit)

Deblend a parent footprint

Parameters:
mExposure : lsst.image.MultibandExposure

The multiband exposure containing the image, mask, and variance data.

footprint : lsst.detection.Footprint

The footprint of the parent to deblend.

config : ScarletDeblendConfig

Configuration of the deblending task.

spectrumInit : bool

Whether or not to initialize the spectrum.

Returns:
blendData : lsst.meas.extensions.scarlet.ScarletBlendData

The persistable representation of a scarlet.Blend.

skipped : list of int

The indices of any children that failed to initialize and were skipped.

spectrumInit : bool

Whether or not all of the sources were initialized by jointly fitting their SED’s. This provides a better initialization but created memory issues when a blend is too large or contains too many sources.