lsst.meas.algorithms gf82c78fb6f+5b4928dc2e
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask Class Reference
Inheritance diagram for lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask:
lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def selectSources (self, sourceCat, matches=None, exposure=None)
 

Public Attributes

 parentKey
 
 centroidXKey
 
 centroidYKey
 
 centroidFlagKey
 
 fluxField
 
 fluxKey
 
 fluxFlagKey
 
 fluxErrKey
 
 edgeKey
 
 interpolatedCenterKey
 
 saturatedKey
 

Static Public Attributes

MatcherSourceSelectorConfig ConfigClass = MatcherSourceSelectorConfig
 

Protected Member Functions

def _getSchemaKeys (self, schema)
 
def _isParent (self, sourceCat)
 
def _hasCentroid (self, sourceCat)
 
def _goodSN (self, sourceCat)
 
def _isUsable (self, sourceCat)
 
def _isGood (self, sourceCat)
 

Detailed Description

Select sources that are useful for matching.

Good matching sources have high signal/noise, are non-blended. They need not
be PSF sources, just have reliable centroids.

Distinguished from astrometrySourceSelector because it is more lenient
(i.e. not checking footprints or bad flags).

Definition at line 55 of file matcherSourceSelector.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.__init__ (   self,
args,
**  kwargs 
)

Member Function Documentation

◆ _getSchemaKeys()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask._getSchemaKeys (   self,
  schema 
)
protected
Extract and save the necessary keys from schema with asKey.

Definition at line 98 of file matcherSourceSelector.py.

◆ _goodSN()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask._goodSN (   self,
  sourceCat 
)
protected
Return True for each source that has Signal/Noise > config.minSnr.

Definition at line 129 of file matcherSourceSelector.py.

◆ _hasCentroid()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask._hasCentroid (   self,
  sourceCat 
)
protected
Return True for each source that has a valid centroid

Definition at line 122 of file matcherSourceSelector.py.

◆ _isGood()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask._isGood (   self,
  sourceCat 
)
protected
Return True for each source that is usable for matching, even if it may
have a poor centroid.

For a source to be usable it must:

- Not be on a CCD edge.
- Not have an interpolated pixel within 3x3 around their centroid.
- Not have a saturated pixel in their footprint.

Definition at line 155 of file matcherSourceSelector.py.

◆ _isParent()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask._isParent (   self,
  sourceCat 
)
protected
Return True for each source that is the parent source.

Definition at line 116 of file matcherSourceSelector.py.

◆ _isUsable()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask._isUsable (   self,
  sourceCat 
)
protected
Return True for each source that is usable for matching, even if it may
have a poor centroid.

For a source to be usable it must:

- have a valid centroid
- not be deblended
- have a valid instFlux (of the type specified in this object's constructor)
- have adequate signal-to-noise

Definition at line 138 of file matcherSourceSelector.py.

◆ selectSources()

def lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.selectSources (   self,
  sourceCat,
  matches = None,
  exposure = None 
)
Return a selection of sources that are useful for matching.

Parameters
----------
sourceCat : `lsst.afw.table.SourceCatalog`
    Catalog of sources to select from.
    This catalog must be contiguous in memory.
matches : `list` of `lsst.afw.table.ReferenceMatch` or None
    Ignored in this SourceSelector.
exposure : `lsst.afw.image.Exposure` or None
    The exposure the catalog was built from; used for debug display.

Returns
-------
struct : `lsst.pipe.base.Struct`
    The struct contains the following data:

    ``selected``
        Boolean array of sources that were selected, same length as
        sourceCat. (`numpy.ndarray` of `bool`)

Reimplemented from lsst.meas.algorithms.sourceSelector.BaseSourceSelectorTask.

Definition at line 69 of file matcherSourceSelector.py.

Member Data Documentation

◆ centroidFlagKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.centroidFlagKey

Definition at line 104 of file matcherSourceSelector.py.

◆ centroidXKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.centroidXKey

Definition at line 102 of file matcherSourceSelector.py.

◆ centroidYKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.centroidYKey

Definition at line 103 of file matcherSourceSelector.py.

◆ ConfigClass

MatcherSourceSelectorConfig lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.ConfigClass = MatcherSourceSelectorConfig
static

Definition at line 64 of file matcherSourceSelector.py.

◆ edgeKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.edgeKey

Definition at line 112 of file matcherSourceSelector.py.

◆ fluxErrKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.fluxErrKey

Definition at line 110 of file matcherSourceSelector.py.

◆ fluxField

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.fluxField

Definition at line 107 of file matcherSourceSelector.py.

◆ fluxFlagKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.fluxFlagKey

Definition at line 109 of file matcherSourceSelector.py.

◆ fluxKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.fluxKey

Definition at line 108 of file matcherSourceSelector.py.

◆ interpolatedCenterKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.interpolatedCenterKey

Definition at line 113 of file matcherSourceSelector.py.

◆ parentKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.parentKey

Definition at line 101 of file matcherSourceSelector.py.

◆ saturatedKey

lsst.meas.algorithms.matcherSourceSelector.MatcherSourceSelectorTask.saturatedKey

Definition at line 114 of file matcherSourceSelector.py.


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