xlens.process_pipe.detect_multiband
Classes
Configuration parameters for the DetectCoaddSourcesTask |
|
Detect sources on a single filter coadd. |
Module Contents
- class DetectCoaddSourcesConfig[source]
Bases:
lsst.pipe.base.PipelineTaskConfigConfiguration parameters for the DetectCoaddSourcesTask
- class DetectCoaddSourcesTask(schema=None, **kwargs)[source]
Bases:
lsst.pipe.base.PipelineTaskDetect sources on a single filter coadd.
Coadding individual visits requires each exposure to be warped. This introduces covariance in the noise properties across pixels. Before detection, we correct the coadd variance by scaling the variance plane in the coadd to match the observed variance. This is an approximate approach – strictly, we should propagate the full covariance matrix – but it is simple and works well in practice.
After scaling the variance plane, we detect sources and generate footprints by delegating to the @ref SourceDetectionTask_ “detection” subtask.
DetectCoaddSourcesTask is meant to be run after assembling a coadded image in a given band. The purpose of the task is to update the background, detect all sources in a single band and generate a set of parent footprints. Subsequent tasks in the multi-band processing procedure will merge sources across bands and, eventually, perform forced photometry.
- Parameters:
schema (lsst.afw.table.Schema, optional) – Initial schema for the output catalog, modified-in place to include all fields set by this task. If None, the source minimal schema will be used.
**kwargs – Additional keyword arguments.
- run(exposure, idFactory, expId)[source]
Run detection on an exposure.
First scale the variance plane to match the observed variance using
ScaleVarianceTask. Then invoke theSourceDetectionTask_“detection” subtask to detect sources.- Parameters:
exposure (lsst.afw.image.Exposure) – Exposure on which to detect (may be backround-subtracted and scaled, depending on configuration).
idFactory (lsst.afw.table.IdFactory) – IdFactory to set source identifiers.
expId (int) – Exposure identifier (integer) for RNG seed.
- Returns:
result – Results as a struct with attributes:
sourcesCatalog of detections (lsst.afw.table.SourceCatalog).
backgroundsList of backgrounds (list).
- Return type:
lsst.pipe.base.Struct