RequireFlags#
- class lsst.meas.algorithms.RequireFlags(*args, **kw)#
Bases:
ConfigSelect sources using flags
This object can be used as a
lsst.pex.config.Configfor configuring the limit, and then theapplymethod can be used to identify sources in the catalog that match the configured limit.Attributes Summary
List of source flag fields that must NOT be set for a source to be used.
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#
- catalog
lsst.afw.table.SourceCatalog Catalog of sources to which the requirements will be applied.
Returns#
- selected
numpy.ndarray Boolean array indicating for each source whether it is selected (True means selected).
- catalog