ScienceSourceSelectorTask#

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

Bases: BaseSourceSelectorTask

Science source selector

By “science” sources, we mean sources that are on images that we are processing, as opposed to sources from reference catalogs.

This selects (science) sources by (optionally) applying each of a magnitude limit, flag requirements and star/galaxy separation.

Methods Summary

selectSources(sourceCat[, matches, exposure])

Return a selection of sources selected by specified criteria.

Methods Documentation

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

Return a selection of sources selected by specified criteria.

Parameters#

sourceCatlsst.afw.table.SourceCatalog

Catalog of sources to select from. This catalog must be contiguous in memory.

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)