MagnitudeErrorLimit#
- class lsst.meas.algorithms.MagnitudeErrorLimit(*args, **kw)#
Bases:
BaseLimitSelect sources using a magnitude error limit
Because the magnitude error is the inverse of the signal-to-noise ratio, this also works to select sources by signal-to-noise when you only have a magnitude.
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
Name of the source flux error field to use.
Select objects with value less than this (
float, defaultNone)Select objects with value greater than this (
float, defaultNone)Methods Summary
apply(catalog)Apply the magnitude error limits to a catalog
Attributes Documentation
- magErrField#
Name of the source flux error field to use. (
str, default'mag_err')
- maximum#
Select objects with value less than this (
float, defaultNone)
- minimum#
Select objects with value greater than this (
float, defaultNone)
Methods Documentation
- apply(catalog)#
Apply the magnitude error limits to a catalog
Parameters#
- catalog
lsst.afw.table.SourceCatalog Catalog of sources to which the limit will be applied.
Returns#
- selected
numpy.ndarray Boolean array indicating for each source whether it is selected (True means selected).
- catalog