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