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.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: