FlaggedSourceSelectorTask#

class lsst.meas.algorithms.FlaggedSourceSelectorTask(**kwargs)#

Bases: BaseSourceSelectorTask

A trivial SourceSelector that simply uses an existing flag field to filter a SourceCatalog.

This is most frequently used in steps that occur after the a PSF model has been built, to allow other procedures that need Sources to use the set of Sources used to determine the PSF.

Attributes#

usesMatchesbool

A boolean variable specify if the inherited source selector uses matches.

Methods Summary

selectSources(sourceCat[, matches, exposure])

Return a bool array representing which sources to select from sourceCat.

Methods Documentation

selectSources(sourceCat, matches=None, exposure=None)#

Return a bool array representing which sources to select from sourceCat.

The input catalog must be contiguous in memory.

Parameters#

sourceCatlsst.afw.table.SourceCatalog

Catalog of sources to select from.

matcheslist of lsst.afw.table.ReferenceMatch or None

Ignored in this SourceSelector.

exposurelsst.afw.image.Exposure or None

The exposure the catalog was built from; used for debug display.

Returns#

structlsst.pipe.base.Struct

The struct contains the following data:

selected

Boolean array of sources that were selected, same length as sourceCat. (numpy.ndarray of bool)