FlaggedSourceSelectorTask#
- class lsst.meas.algorithms.FlaggedSourceSelectorTask(**kwargs)#
Bases:
BaseSourceSelectorTaskA 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#
- usesMatches
bool 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#
- sourceCat
lsst.afw.table.SourceCatalog Catalog of sources to select from.
- matches
listoflsst.afw.table.ReferenceMatchor None Ignored in this SourceSelector.
- exposure
lsst.afw.image.Exposureor None The exposure the catalog was built from; used for debug display.
Returns#
- struct
lsst.pipe.base.Struct The struct contains the following data:
selectedBoolean array of sources that were selected, same length as
sourceCat. (numpy.ndarrayofbool)
- sourceCat
- usesMatches