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
Public Member Functions | List of all members
lsst.meas.base.forcedPhotCcd.ForcedPhotCcdDataIdContainer Class Reference
Inheritance diagram for lsst.meas.base.forcedPhotCcd.ForcedPhotCcdDataIdContainer:

Public Member Functions

def makeDataRefList
 

Detailed Description

A version of DataIdContainer specialized for forced photometry on CCDs.

Required because we need to add "tract" to the raw data ID keys, and that's tricky.
This IdContainer assumes that a calexp is being measured using the detection information
from the set of coadds which intersect with the calexp.  a set of reference catalog
from a coadd which overlaps it.  It needs the calexp id (e.g. visit, raft, sensor), but it
also uses the tract to decide what set of coadds to use.  The references from the tract
whose patches intersect with the calexp are used.

Definition at line 40 of file forcedPhotCcd.py.

Member Function Documentation

def lsst.meas.base.forcedPhotCcd.ForcedPhotCcdDataIdContainer.makeDataRefList (   self,
  namespace 
)
Make self.refList from self.idList

Definition at line 50 of file forcedPhotCcd.py.

50 
51  def makeDataRefList(self, namespace):
52  """Make self.refList from self.idList
53  """
54  for dataId in self.idList:
55  if "tract" not in dataId:
56  raise argparse.ArgumentError(None, "--id must include tract")
57  tract = dataId.pop("tract")
58  # making a DataRef for src fills out any missing keys and allows us to iterate
59  for srcDataRef in namespace.butler.subset("src", dataId=dataId):
60  forcedDataId = srcDataRef.dataId.copy()
61  forcedDataId['tract'] = tract
62  dataRef = namespace.butler.dataRef(
63  datasetType = "forced_src",
64  dataId = forcedDataId,
65  )
66  self.refList.append(dataRef)

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