LSST Applications 29.1.0,g0fba68d861+6b120c4394,g123d84c11c+8c5ae1fdc5,g1ec0fe41b4+191117f6ec,g1fd858c14a+c8450ae71a,g3533f9d6cb+a04f9ee0ab,g35bb328faa+8c5ae1fdc5,g3f0dcc2b1b+7df08700bd,g4178042926+b4254969db,g44ba364a48+04455b336b,g53246c7159+8c5ae1fdc5,g60b5630c4e+a04f9ee0ab,g663da51e9b+b05e6e1875,g67b6fd64d1+250bf6acd3,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g8352419a5c+8c5ae1fdc5,g87e3079a85+d3fa38de54,g8852436030+cd899e2626,g89139ef638+250bf6acd3,g93a033419f+31ead11197,g989de1cb63+250bf6acd3,g9f33ca652e+f6053ecf14,ga1e959baac+5fbc491aed,ga2f891cd6c+a04f9ee0ab,gabe3b4be73+8856018cbb,gabf8522325+1f7e6d67b9,gac2eed3f23+250bf6acd3,gb1101e3267+0c331e9486,gb89ab40317+250bf6acd3,gcf25f946ba+cd899e2626,gd107969129+8964d67276,gd6cbbdb0b4+6bbecc8878,gde0f65d7ad+d65f9e019a,ge278dab8ac+eb3bbeb12f,ge410e46f29+250bf6acd3,gf5e32f922b+8c5ae1fdc5,gff02db199a+747430a128,gffe7e49bb4+a04f9ee0ab
LSST Data Management Base Package
Loading...
Searching...
No Matches
lsst.meas.algorithms.sourceSelector.MagnitudeErrorLimit Class Reference
Inheritance diagram for lsst.meas.algorithms.sourceSelector.MagnitudeErrorLimit:
lsst.meas.algorithms.sourceSelector.BaseLimit

Public Member Functions

 apply (self, catalog)
 

Static Public Attributes

 magErrField
 
 minimum = pexConfig.Field(dtype=float, optional=True, doc="Select objects with value greater than this")
 
 maximum = pexConfig.Field(dtype=float, optional=True, doc="Select objects with value less than this")
 

Detailed Description

Select 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.Config` for configuring
the limit, and then the `apply` method can be used to identify sources
in the catalog that match the configured limit.

Definition at line 353 of file sourceSelector.py.

Member Function Documentation

◆ apply()

lsst.meas.algorithms.sourceSelector.MagnitudeErrorLimit.apply ( self,
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).

Reimplemented from lsst.meas.algorithms.sourceSelector.BaseLimit.

Definition at line 367 of file sourceSelector.py.

367 def apply(self, catalog):
368 """Apply the magnitude error limits to a catalog
369
370 Parameters
371 ----------
372 catalog : `lsst.afw.table.SourceCatalog`
373 Catalog of sources to which the limit will be applied.
374
375 Returns
376 -------
377 selected : `numpy.ndarray`
378 Boolean array indicating for each source whether it is selected
379 (True means selected).
380 """
381 return BaseLimit.apply(self, catalog[self.magErrField])
382
383

Member Data Documentation

◆ magErrField

lsst.meas.algorithms.sourceSelector.MagnitudeErrorLimit.magErrField
static
Initial value:
= pexConfig.Field(dtype=str, default="mag_err",
doc="Name of the source flux error field to use.")

Definition at line 364 of file sourceSelector.py.

◆ maximum

lsst.meas.algorithms.sourceSelector.BaseLimit.maximum = pexConfig.Field(dtype=float, optional=True, doc="Select objects with value less than this")
staticinherited

Definition at line 174 of file sourceSelector.py.

◆ minimum

lsst.meas.algorithms.sourceSelector.BaseLimit.minimum = pexConfig.Field(dtype=float, optional=True, doc="Select objects with value greater than this")
staticinherited

Definition at line 173 of file sourceSelector.py.


The documentation for this class was generated from the following file: