PropagateSourceFlagsTask#
- class lsst.pipe.tasks.propagateSourceFlags.PropagateSourceFlagsTask(schema, **kwargs)#
Bases:
TaskTask 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
CalibrateTaskcontain flags for the first round of astromety/photometry/psf fits. The finalized_source_table catalogs fromFinalizeCalibrationTaskcontain 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_cat
lsst.afw.table.SourceCatalog Table of coadd objects.
- ccd_inputs
lsst.afw.table.ExposureCatalog Table of single-frame inputs to coadd.
- source_table_handle_dict
dict[int:lsst.daf.butler.DeferredDatasetHandle], optional Dict for sourceTable_visit handles (key is visit). May be None if
config.source_flagshas no entries.- finalized_source_table_handle_dict
dict[int: lsst.daf.butler.DeferredDatasetHandle], optionalDict for finalized_src_table handles (key is visit). May be None if
config.finalized_source_flagshas no entries.- visit_summary_handle_dict
dict[int:lsst.daf.butler.DeferredDatasetHandle], optional Dict for visitSummary handles (key is visit). If None, using WCS from the ccd_inputs will be attempted.
- coadd_object_cat