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 | Static Public Attributes | Private Member Functions | Static Private Attributes | List of all members
lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask Class Reference

Make a sky map in a repository. More...

Inheritance diagram for lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask:

Public Member Functions

def __init__
 
def run
 Make a skymap, persist it (optionally) and log some information about it. More...
 
def logSkyMapInfo
 Log information about a sky map. More...
 

Static Public Attributes

 ConfigClass = MakeSkyMapConfig
 
 RunnerClass = MakeSkyMapRunner
 

Private Member Functions

def _makeArgumentParser
 
def _getConfigName
 
def _getMetadataName
 

Static Private Attributes

string _DefaultName = "makeSkyMap"
 

Detailed Description

Make a sky map in a repository.

Making a sky map in a repository is a prerequisite for making a coadd, since the sky map is used as the pixelization for the coadd.

Definition at line 79 of file makeSkyMap.py.

Constructor & Destructor Documentation

def lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask.__init__ (   self,
  kwargs 
)

Definition at line 89 of file makeSkyMap.py.

89 
90  def __init__(self, **kwargs):
91  pipeBase.CmdLineTask.__init__(self, **kwargs)

Member Function Documentation

def lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask._getConfigName (   self)
private
Return the name of the config dataset

Definition at line 137 of file makeSkyMap.py.

138  def _getConfigName(self):
139  """Return the name of the config dataset
140  """
141  return "%s_makeSkyMap_config" % (self.config.coaddName,)
def lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask._getMetadataName (   self)
private
Return the name of the metadata dataset

Definition at line 142 of file makeSkyMap.py.

143  def _getMetadataName(self):
144  """Return the name of the metadata dataset
145  """
146  return "%s_makeSkyMap_metadata" % (self.config.coaddName,)
147 
def lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask._makeArgumentParser (   cls)
private
Create an argument parser

No identifiers are added because none are used.

Definition at line 130 of file makeSkyMap.py.

131  def _makeArgumentParser(cls):
132  """Create an argument parser
133 
134  No identifiers are added because none are used.
135  """
136  return pipeBase.ArgumentParser(name=cls._DefaultName)
def lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask.logSkyMapInfo (   self,
  skyMap 
)

Log information about a sky map.

Parameters
[in]skyMapsky map (an lsst.skyMap.SkyMap)

Definition at line 108 of file makeSkyMap.py.

109  def logSkyMapInfo(self, skyMap):
110  """!Log information about a sky map
111 
112  @param[in] skyMap sky map (an lsst.skyMap.SkyMap)
113  """
114  self.log.info("sky map has %s tracts" % (len(skyMap),))
115  for tractInfo in skyMap:
116  wcs = tractInfo.getWcs()
117  posBox = afwGeom.Box2D(tractInfo.getBBox())
118  pixelPosList = (
119  posBox.getMin(),
120  afwGeom.Point2D(posBox.getMaxX(), posBox.getMinY()),
121  posBox.getMax(),
122  afwGeom.Point2D(posBox.getMinX(), posBox.getMaxY()),
123  )
124  skyPosList = [wcs.pixelToSky(pos).getPosition(afwGeom.degrees) for pos in pixelPosList]
125  posStrList = ["(%0.3f, %0.3f)" % tuple(skyPos) for skyPos in skyPosList]
126  self.log.info("tract %s has corners %s (RA, Dec deg) and %s x %s patches" % \
127  (tractInfo.getId(), ", ".join(posStrList), \
128  tractInfo.getNumPatches()[0], tractInfo.getNumPatches()[1]))
def logSkyMapInfo
Log information about a sky map.
Definition: makeSkyMap.py:108
A floating-point coordinate rectangle geometry.
Definition: Box.h:271
def lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask.run (   self,
  butler 
)

Make a skymap, persist it (optionally) and log some information about it.

Parameters
[in]butlerdata butler
Returns
a pipeBase Struct containing:
  • skyMap: the constructed SkyMap

Definition at line 93 of file makeSkyMap.py.

93 
94  def run(self, butler):
95  """!Make a skymap, persist it (optionally) and log some information about it
96 
97  @param[in] butler data butler
98  @return a pipeBase Struct containing:
99  - skyMap: the constructed SkyMap
100  """
101  skyMap = self.config.skyMap.apply()
102  self.logSkyMapInfo(skyMap)
103  if self.config.doWrite:
104  butler.put(skyMap, self.config.coaddName + "Coadd_skyMap")
105  return pipeBase.Struct(
106  skyMap = skyMap
107  )
def run
Make a skymap, persist it (optionally) and log some information about it.
Definition: makeSkyMap.py:93
def logSkyMapInfo
Log information about a sky map.
Definition: makeSkyMap.py:108

Member Data Documentation

string lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask._DefaultName = "makeSkyMap"
staticprivate

Definition at line 86 of file makeSkyMap.py.

lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask.ConfigClass = MakeSkyMapConfig
static

Definition at line 85 of file makeSkyMap.py.

lsst.pipe.tasks.makeSkyMap.MakeSkyMapTask.RunnerClass = MakeSkyMapRunner
static

Definition at line 87 of file makeSkyMap.py.


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