LSSTApplications  16.0-10-g9d3e444,16.0-11-g09ed895+3,16.0-11-g12e47bd+4,16.0-11-g9bb73b2+10,16.0-12-g5c924a4+10,16.0-15-g7af1f30,16.0-15-gdd5ca33+2,16.0-16-gf0259e2+1,16.0-17-g31abd91+11,16.0-17-g5cf0468+3,16.0-18-g51a54b3+3,16.0-18-ga4d4bcb+5,16.0-18-gcf94535+2,16.0-19-g9d290d5+2,16.0-2-g0febb12+22,16.0-2-g9d5294e+73,16.0-2-ga8830df+7,16.0-21-g3d035912+2,16.0-26-g8e79609,16.0-28-gfc9ea6c+9,16.0-29-ge8801f9+4,16.0-3-ge00e371+38,16.0-4-g18f3627+17,16.0-4-g5f3a788+21,16.0-4-ga3eb747+11,16.0-4-gabf74b7+33,16.0-4-gb13d127+7,16.0-5-g27fb78a+11,16.0-5-g6a53317+38,16.0-5-gb3f8a4b+91,16.0-51-gbbe9c988+3,16.0-6-g9321be7+5,16.0-6-gcbc7b31+47,16.0-6-gf49912c+33,16.0-75-gbf7a9a820,16.0-8-g21fd5fe+34,16.0-8-g3a9f023+24,16.0-8-gc11f1cf,16.0-9-gf3bc169+2,16.0-9-gf5c1f43+12,master-gc237143d49,w.2019.02
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.meas.astrom.catalogStarSelector.CheckSource Class Reference

Public Member Functions

def __init__ (self, table, fluxLim, fluxMax, badFlags)
 
def __call__ (self, source)
 

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 60 of file catalogStarSelector.py.

60  def __init__(self, table, fluxLim, fluxMax, badFlags):
61  self.keys = [table.getSchema().find(name).key for name in badFlags]
62  self.keys.append(table.getCentroidFlagKey())
63  self.fluxLim = fluxLim
64  self.fluxMax = fluxMax
65 
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
Definition: functional.cc:33
def __init__(self, minimum, dataRange, Q)

Member Function Documentation

◆ __call__()

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

Definition at line 66 of file catalogStarSelector.py.

66  def __call__(self, source):
67  for k in self.keys:
68  if source.get(k):
69  return False
70  if self.fluxLim is not None and source.getPsfInstFlux() < self.fluxLim: # ignore faint objects
71  return False
72  if self.fluxMax != 0.0 and source.getPsfInstFlux() > self.fluxMax: # ignore bright objects
73  return False
74  return True
75 
76 # \addtogroup LSST_task_documentation
77 # \{
78 # \page CatalogStarSelectorTask
79 # \ref CatalogStarSelectorTask_ "CatalogStarSelectorTask"
80 # \copybrief CatalogStarSelectorTask
81 # \}
82 
83 
84 @pexConfig.registerConfigurable("catalog", sourceSelectorRegistry)

Member Data Documentation

◆ fluxLim

lsst.meas.astrom.catalogStarSelector.CheckSource.fluxLim

Definition at line 63 of file catalogStarSelector.py.

◆ fluxMax

lsst.meas.astrom.catalogStarSelector.CheckSource.fluxMax

Definition at line 64 of file catalogStarSelector.py.

◆ keys

lsst.meas.astrom.catalogStarSelector.CheckSource.keys

Definition at line 61 of file catalogStarSelector.py.


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