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
Classes | Functions | Variables
lsst.pipe.tasks.photoCal Namespace Reference

Classes

class  PhotoCalConfig
 
class  PhotoCalTask
 Calculate the zero point of an exposure given a lsst.afw.table.ReferenceMatchVector. More...
 

Functions

def checkSourceFlags
 Return True if the given source has all good flags set and none of the bad flags set. More...
 

Variables

list __all__ = ["PhotoCalTask", "PhotoCalConfig"]
 

Function Documentation

def lsst.pipe.tasks.photoCal.checkSourceFlags (   source,
  sourceKeys 
)

Return True if the given source has all good flags set and none of the bad flags set.

Parameters
[in]sourceSourceRecord object to process.
[in]sourceKeysStruct of source catalog keys, as returned by PhotCalTask.getSourceKeys()

Definition at line 40 of file photoCal.py.

40 
41 def checkSourceFlags(source, sourceKeys):
42  """!Return True if the given source has all good flags set and none of the bad flags set.
43 
44  \param[in] source SourceRecord object to process.
45  \param[in] sourceKeys Struct of source catalog keys, as returned by PhotCalTask.getSourceKeys()
46  """
47  for k in sourceKeys.goodFlags:
48  if not source.get(k): return False
49  if source.getPsfFluxFlag(): return False
50  for k in sourceKeys.badFlags:
51  if source.get(k): return False
52  return True
def checkSourceFlags
Return True if the given source has all good flags set and none of the bad flags set.
Definition: photoCal.py:40

Variable Documentation

list lsst.pipe.tasks.photoCal.__all__ = ["PhotoCalTask", "PhotoCalConfig"]

Definition at line 38 of file photoCal.py.