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 | Public Attributes | List of all members
lsst.pipe.tasks.coaddBase.SelectDataIdContainer Class Reference
Inheritance diagram for lsst.pipe.tasks.coaddBase.SelectDataIdContainer:

Public Member Functions

def makeDataRefList
 

Public Attributes

 dataList
 

Detailed Description

A dataId container for inputs to be selected.

Read the header (including the size and Wcs) for all specified
inputs and pass those along, ultimately for the SelectImagesTask.
This is most useful when used with multiprocessing, as input headers are
only read once.

Definition at line 190 of file coaddBase.py.

Member Function Documentation

def lsst.pipe.tasks.coaddBase.SelectDataIdContainer.makeDataRefList (   self,
  namespace 
)
Add a dataList containing useful information for selecting images

Definition at line 198 of file coaddBase.py.

199  def makeDataRefList(self, namespace):
200  """Add a dataList containing useful information for selecting images"""
201  super(SelectDataIdContainer, self).makeDataRefList(namespace)
202  self.dataList = []
203  for ref in self.refList:
204  try:
205  md = ref.get("calexp_md", immediate=True)
206  wcs = afwImage.makeWcs(md)
207  data = SelectStruct(dataRef=ref, wcs=wcs, dims=(md.get("NAXIS1"), md.get("NAXIS2")))
208  except FitsError as e:
209  namespace.log.warn("Unable to construct Wcs from %s" % (ref.dataId))
210  continue
211  self.dataList.append(data)
Wcs::Ptr makeWcs(coord::Coord const &crval, geom::Point2D const &crpix, double CD11, double CD12, double CD21, double CD22)
Create a Wcs object from crval, crpix, CD, using CD elements (useful from python) ...
Definition: makeWcs.cc:141

Member Data Documentation

lsst.pipe.tasks.coaddBase.SelectDataIdContainer.dataList

Definition at line 201 of file coaddBase.py.


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