LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.meas.algorithms.secondMomentStarSelector.CheckSource Class Reference
Inheritance diagram for lsst.meas.algorithms.secondMomentStarSelector.CheckSource:

Public Member Functions

def __init__
 
def __call__
 

Public Attributes

 keys
 
 fluxLim
 
 fluxMax
 

Detailed Description

A functor to check whether a source has any flags set that should cause it to be labeled bad.

Definition at line 110 of file secondMomentStarSelector.py.

Constructor & Destructor Documentation

def lsst.meas.algorithms.secondMomentStarSelector.CheckSource.__init__ (   self,
  table,
  badFlags,
  fluxLim,
  fluxMax 
)

Definition at line 113 of file secondMomentStarSelector.py.

114  def __init__(self, table, badFlags, fluxLim, fluxMax):
115  self.keys = [table.getSchema().find(name).key for name in badFlags]
116  self.keys.append(table.getCentroidFlagKey())
117  self.fluxLim = fluxLim
118  self.fluxMax = fluxMax

Member Function Documentation

def lsst.meas.algorithms.secondMomentStarSelector.CheckSource.__call__ (   self,
  source 
)

Definition at line 119 of file secondMomentStarSelector.py.

120  def __call__(self, source):
121  for k in self.keys:
122  if source.get(k):
123  return False
124  if self.fluxLim != None and source.getPsfFlux() < self.fluxLim: # ignore faint objects
125  return False
126  if self.fluxMax != 0.0 and source.getPsfFlux() > self.fluxMax: # ignore bright objects
127  return False
128  return True

Member Data Documentation

lsst.meas.algorithms.secondMomentStarSelector.CheckSource.fluxLim

Definition at line 116 of file secondMomentStarSelector.py.

lsst.meas.algorithms.secondMomentStarSelector.CheckSource.fluxMax

Definition at line 117 of file secondMomentStarSelector.py.

lsst.meas.algorithms.secondMomentStarSelector.CheckSource.keys

Definition at line 114 of file secondMomentStarSelector.py.


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