SourceDeblendTask#

class lsst.meas.deblender.SourceDeblendTask(schema, peakSchema=None, **kwargs)#

Bases: Task

Split blended sources into individual sources.

This task has no return value; it only modifies the SourceCatalog in-place.

Methods Summary

addSchemaKeys(schema)

deblend(exposure, srcs, psf)

Deblend.

isLargeFootprint(footprint)

Returns whether a Footprint is large

isMasked(footprint, mask)

Returns whether the footprint violates the mask limits

postSingleDeblendHook(exposure, srcs, i, ...)

preSingleDeblendHook(exposure, srcs, i, fp, ...)

run(exposure, sources)

Get the PSF from the provided exposure and then run deblend.

skipParent(source, mask)

Indicate that the parent source is not being deblended

Methods Documentation

addSchemaKeys(schema)#
deblend(exposure, srcs, psf)#

Deblend.

Parameters#

exposurelsst.afw.image.Exposure

Exposure to be processed

srcslsst.afw.table.SourceCatalog

SourceCatalog containing sources detected on this exposure

psflsst.afw.detection.Psf

Point source function

Returns#

None

isLargeFootprint(footprint)#

Returns whether a Footprint is large

‘Large’ is defined by thresholds on the area, size and axis ratio. These may be disabled independently by configuring them to be non-positive.

This is principally intended to get rid of satellite streaks, which the deblender or other downstream processing can have trouble dealing with (e.g., multiple large HeavyFootprints can chew up memory).

isMasked(footprint, mask)#

Returns whether the footprint violates the mask limits

postSingleDeblendHook(exposure, srcs, i, npre, kids, fp, psf, psf_fwhm, sigma1, res)#
preSingleDeblendHook(exposure, srcs, i, fp, psf, psf_fwhm, sigma1)#
run(exposure, sources)#

Get the PSF from the provided exposure and then run deblend.

Parameters#

exposurelsst.afw.image.Exposure

Exposure to be processed

sourceslsst.afw.table.SourceCatalog

SourceCatalog containing sources detected on this exposure.

skipParent(source, mask)#

Indicate that the parent source is not being deblended

We set the appropriate flags and mask.

Parameters#

sourcelsst.afw.table.SourceRecord

The source to flag as skipped

masklsst.afw.image.Mask

The mask to update