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.ip.diffim.diaCatalogSourceSelector.CheckSource Class Reference
Inheritance diagram for lsst.ip.diffim.diaCatalogSourceSelector.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 75 of file diaCatalogSourceSelector.py.

Constructor & Destructor Documentation

def lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.__init__ (   self,
  table,
  fluxLim,
  fluxMax,
  badPixelFlags 
)

Member Function Documentation

def lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.__call__ (   self,
  source 
)

Definition at line 83 of file diaCatalogSourceSelector.py.

83 
84  def __call__(self, source):
85  for k in self.keys:
86  if source.get(k):
87  return False
88  if self.fluxLim != None and source.getPsfFlux() < self.fluxLim: # ignore faint objects
89  return False
90  if self.fluxMax != 0.0 and source.getPsfFlux() > self.fluxMax: # ignore bright objects
91  return False
92  return True

Member Data Documentation

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.fluxLim

Definition at line 80 of file diaCatalogSourceSelector.py.

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.fluxMax

Definition at line 81 of file diaCatalogSourceSelector.py.

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.keys

Definition at line 79 of file diaCatalogSourceSelector.py.


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