lsst.meas.algorithms gf28172b03b+14260db065
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.algorithms.sourceSelector.ColorLimit Class Reference
Inheritance diagram for lsst.meas.algorithms.sourceSelector.ColorLimit:
lsst.meas.algorithms.sourceSelector.BaseLimit

Public Member Functions

def apply (self, catalog)
 

Static Public Attributes

 primary = pexConfig.Field(dtype=str, doc="Name of column with primary flux measurement")
 
 secondary = pexConfig.Field(dtype=str, doc="Name of column with secondary flux measurement")
 

Detailed Description

Select sources using a color limit

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.

We refer to 'primary' and 'secondary' flux measurements; these are the
two components of the color, which is:

    instFluxToMag(cat[primary]) - instFluxToMag(cat[secondary])

Definition at line 208 of file sourceSelector.py.

Member Function Documentation

◆ apply()

def lsst.meas.algorithms.sourceSelector.ColorLimit.apply (   self,
  catalog 
)
Apply the color limit to a catalog

Parameters
----------
catalog : Various table formats
    Catalog of sources to which the limit will be applied.
    Supports `lsst.afw.table.SourceCatalog` or `pandas.DataFrame`
    or `astropy.table.Table`

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 223 of file sourceSelector.py.

Member Data Documentation

◆ primary

lsst.meas.algorithms.sourceSelector.ColorLimit.primary = pexConfig.Field(dtype=str, doc="Name of column with primary flux measurement")
static

Definition at line 220 of file sourceSelector.py.

◆ secondary

lsst.meas.algorithms.sourceSelector.ColorLimit.secondary = pexConfig.Field(dtype=str, doc="Name of column with secondary flux measurement")
static

Definition at line 221 of file sourceSelector.py.


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