LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.meas.astrom.catalogStarSelector.CheckSource Class Reference
Inheritance diagram for lsst.meas.astrom.catalogStarSelector.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 67 of file catalogStarSelector.py.

Constructor & Destructor Documentation

def lsst.meas.astrom.catalogStarSelector.CheckSource.__init__ (   self,
  table,
  fluxLim,
  fluxMax,
  badStarPixelFlags 
)

Definition at line 70 of file catalogStarSelector.py.

70 
71  def __init__(self, table, fluxLim, fluxMax, badStarPixelFlags):
72  self.keys = [table.getSchema().find(name).key for name in badStarPixelFlags]
73  self.keys.append(table.getCentroidFlagKey())
74  self.fluxLim = fluxLim
75  self.fluxMax = fluxMax

Member Function Documentation

def lsst.meas.astrom.catalogStarSelector.CheckSource.__call__ (   self,
  source 
)

Definition at line 76 of file catalogStarSelector.py.

76 
77  def __call__(self, source):
78  for k in self.keys:
79  if source.get(k):
80  return False
81  if self.fluxLim != None and source.getPsfFlux() < self.fluxLim: # ignore faint objects
82  return False
83  if self.fluxMax != 0.0 and source.getPsfFlux() > self.fluxMax: # ignore bright objects
84  return False
85  return True

Member Data Documentation

lsst.meas.astrom.catalogStarSelector.CheckSource.fluxLim

Definition at line 73 of file catalogStarSelector.py.

lsst.meas.astrom.catalogStarSelector.CheckSource.fluxMax

Definition at line 74 of file catalogStarSelector.py.

lsst.meas.astrom.catalogStarSelector.CheckSource.keys

Definition at line 71 of file catalogStarSelector.py.


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