MagnitudeLimit#
- class lsst.meas.algorithms.MagnitudeLimit(*args, **kw)#
Bases:
BaseLimitSelect sources using a magnitude limit
Note that this assumes that a zero-point has already been applied and the fluxes are in AB fluxes in Jansky. It is therefore principally intended for reference catalogs rather than catalogs extracted from science images.
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 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 limits to a catalog
Attributes Documentation
- fluxField#
Name of the source flux field to use. (
str, default'flux')
- 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 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