SourceDeblendTask#
- class lsst.meas.deblender.SourceDeblendTask(schema, peakSchema=None, **kwargs)#
Bases:
TaskSplit 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#
- exposure
lsst.afw.image.Exposure Exposure to be processed
- srcs
lsst.afw.table.SourceCatalog SourceCatalog containing sources detected on this exposure
- psf
lsst.afw.detection.Psf Point source function
Returns#
None
- exposure
- 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#
- exposure
lsst.afw.image.Exposure Exposure to be processed
- sources
lsst.afw.table.SourceCatalog SourceCatalog containing sources detected on this exposure.
- exposure
- skipParent(source, mask)#
Indicate that the parent source is not being deblended
We set the appropriate flags and mask.
Parameters#
- source
lsst.afw.table.SourceRecord The source to flag as skipped
- mask
lsst.afw.image.Mask The mask to update
- source