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.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 59 of file catalogStarSelector.py.

Constructor & Destructor Documentation

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

Definition at line 62 of file catalogStarSelector.py.

62 
63  def __init__(self, table, fluxLim, fluxMax, badStarPixelFlags):
64  self.keys = [table.getSchema().find(name).key for name in badStarPixelFlags]
65  self.keys.append(table.getCentroidFlagKey())
66  self.fluxLim = fluxLim
67  self.fluxMax = fluxMax

Member Function Documentation

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

Definition at line 68 of file catalogStarSelector.py.

68 
69  def __call__(self, source):
70  for k in self.keys:
71  if source.get(k):
72  return False
73  if self.fluxLim != None and source.getPsfFlux() < self.fluxLim: # ignore faint objects
74  return False
75  if self.fluxMax != 0.0 and source.getPsfFlux() > self.fluxMax: # ignore bright objects
76  return False
77  return True

Member Data Documentation

lsst.meas.astrom.catalogStarSelector.CheckSource.fluxLim

Definition at line 65 of file catalogStarSelector.py.

lsst.meas.astrom.catalogStarSelector.CheckSource.fluxMax

Definition at line 66 of file catalogStarSelector.py.

lsst.meas.astrom.catalogStarSelector.CheckSource.keys

Definition at line 63 of file catalogStarSelector.py.


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