FilterDiaSourceCatalogTask#
- class lsst.ap.association.FilterDiaSourceCatalogTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskFilter sources from a DiaSource catalog based on their trail length, sky sources, and bad flags.
Methods Summary
run(diaSourceCat, diffImVisitInfo)Filter sources from the supplied DiaSource catalog.
Methods Documentation
- run(diaSourceCat, diffImVisitInfo)#
Filter sources from the supplied DiaSource catalog.
DiaSources are filtered based on criteria including trail length, whether they are a sky source, and whether they have one or more bad flags. Any source which meets a filtering criteria is removed from the main output catalog and optionally saved in one or more separate output catalogs.
Parameters#
- diaSourceCat
lsst.afw.table.SourceCatalog Catalog of sources measured on the difference image.
- diffImVisitInfo:
lsst.afw.image.VisitInfo VisitInfo for the difference image corresponding to diaSourceCat.
Returns#
filterResults :
lsst.pipe.base.StructfilteredDiaSourceCatlsst.afw.table.SourceCatalogThe catalog of filtered sources.
rejectedDiaSourceslsst.afw.table.SourceCatalogThe catalog of rejected sources.
longTrailedDiaSourcesastropy.table.TableDiaSources which have trail lengths greater than max_trail_length*exposure_time.
- diaSourceCat