RequireFlags#

class lsst.meas.algorithms.RequireFlags(*args, **kw)#

Bases: Config

Select sources using flags

This object can be used as a lsst.pex.config.Config for configuring the limit, and then the apply method can be used to identify sources in the catalog that match the configured limit.

Attributes Summary

bad

List of source flag fields that must NOT be set for a source to be used.

good

List of source flag fields that must be set for a source to be used.

Methods Summary

apply(catalog)

Apply the flag requirements to a catalog

Attributes Documentation

bad#

List of source flag fields that must NOT be set for a source to be used. (List, default [])

good#

List of source flag fields that must be set for a source to be used. (List, default [])

Methods Documentation

apply(catalog)#

Apply the flag requirements to a catalog

Returns whether the source is selected.

Parameters#

cataloglsst.afw.table.SourceCatalog

Catalog of sources to which the requirements will be applied.

Returns#

selectednumpy.ndarray

Boolean array indicating for each source whether it is selected (True means selected).