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
lsst.pipe.tasks.multiBand Namespace Reference

Classes

class  DetectCoaddSourcesConfig
 
class  DetectCoaddSourcesTask
 
class  MergeSourcesRunner
 
class  MergeSourcesConfig
 
class  MergeSourcesTask
 
class  CullPeaksConfig
 
class  MergeDetectionsConfig
 
class  MergeDetectionsTask
 
class  MeasureMergedCoaddSourcesConfig
 
class  MeasureMergedCoaddSourcesTask
 
class  MergeMeasurementsTask
 

Functions

def _makeGetSchemaCatalogs
 
def _makeMakeIdFactory
 
def getShortFilterName
 

Function Documentation

def lsst.pipe.tasks.multiBand._makeGetSchemaCatalogs (   datasetSuffix)
private
Construct a getSchemaCatalogs instance method

These are identical for most of the classes here, so we'll consolidate
the code.

datasetSuffix:  Suffix of dataset name, e.g., "src" for "deepCoadd_src"

Definition at line 54 of file multiBand.py.

54 
55 def _makeGetSchemaCatalogs(datasetSuffix):
56  """Construct a getSchemaCatalogs instance method
57 
58  These are identical for most of the classes here, so we'll consolidate
59  the code.
60 
61  datasetSuffix: Suffix of dataset name, e.g., "src" for "deepCoadd_src"
62  """
63  def getSchemaCatalogs(self):
64  """Return a dict of empty catalogs for each catalog dataset produced by this task."""
65  src = afwTable.SourceCatalog(self.schema)
66  if hasattr(self, "algMetadata"):
67  src.getTable().setMetadata(self.algMetadata)
68  return {self.config.coaddName + "Coadd_" + datasetSuffix: src}
69  return getSchemaCatalogs
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
Definition: fwd.h:55
def lsst.pipe.tasks.multiBand._makeMakeIdFactory (   datasetName)
private
Construct a makeIdFactory instance method

These are identical for all the classes here, so this consolidates
the code.

datasetName:  Dataset name without the coadd name prefix, e.g., "CoaddId" for "deepCoaddId"

Definition at line 70 of file multiBand.py.

70 
71 def _makeMakeIdFactory(datasetName):
72  """Construct a makeIdFactory instance method
73 
74  These are identical for all the classes here, so this consolidates
75  the code.
76 
77  datasetName: Dataset name without the coadd name prefix, e.g., "CoaddId" for "deepCoaddId"
78  """
79  def makeIdFactory(self, dataRef):
80  """Return an IdFactory for setting the detection identifiers
81 
82  The actual parameters used in the IdFactory are provided by
83  the butler (through the provided data reference.
84  """
85  expBits = dataRef.get(self.config.coaddName + datasetName + "_bits")
86  expId = long(dataRef.get(self.config.coaddName + datasetName))
87  return afwTable.IdFactory.makeSource(expId, 64 - expBits)
88  return makeIdFactory
def lsst.pipe.tasks.multiBand.getShortFilterName (   name)
Given a longer, camera-specific filter name (e.g. "HSC-I") return its shorthand name ("i").

Definition at line 89 of file multiBand.py.

89 
90 def getShortFilterName(name):
91  """Given a longer, camera-specific filter name (e.g. "HSC-I") return its shorthand name ("i").
92  """
93  # I'm not sure if this is the way this is supposed to be implemented, but it seems to work,
94  # and its the only way I could get it to work.
95  return afwImage.Filter(name).getFilterProperty().getName()
96 
Holds an integer identifier for an LSST filter.
Definition: Filter.h:107