PropagateSourceFlagsTask#

class lsst.pipe.tasks.propagateSourceFlags.PropagateSourceFlagsTask(schema, **kwargs)#

Bases: Task

Task to propagate source flags to coadd objects.

Flagged sources may come from a mix of two different types of source catalogs. The source_table catalogs from CalibrateTask contain flags for the first round of astromety/photometry/psf fits. The finalized_source_table catalogs from FinalizeCalibrationTask contain flags from the second round of psf fitting.

Methods Summary

run(coadd_object_cat, ccd_inputs[, ...])

Propagate flags from single-frame sources to coadd objects.

Methods Documentation

run(coadd_object_cat, ccd_inputs, source_table_handle_dict=None, finalized_source_table_handle_dict=None, visit_summary_handle_dict=None)#

Propagate flags from single-frame sources to coadd objects.

Flags are only propagated if a configurable percentage of the sources are matched to the coadd objects. This task will match both “plain” source flags and “finalized” source flags.

Parameters#

coadd_object_catlsst.afw.table.SourceCatalog

Table of coadd objects.

ccd_inputslsst.afw.table.ExposureCatalog

Table of single-frame inputs to coadd.

source_table_handle_dictdict [int: lsst.daf.butler.DeferredDatasetHandle], optional

Dict for sourceTable_visit handles (key is visit). May be None if config.source_flags has no entries.

finalized_source_table_handle_dictdict [int:

Dict for finalized_src_table handles (key is visit). May be None if config.finalized_source_flags has no entries.

visit_summary_handle_dictdict [int: lsst.daf.butler.DeferredDatasetHandle], optional

Dict for visitSummary handles (key is visit). If None, using WCS from the ccd_inputs will be attempted.