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 | Static Private Attributes | List of all members
lsst.skymap.equatSkyMap.EquatSkyMap Class Reference
Inheritance diagram for lsst.skymap.equatSkyMap.EquatSkyMap:

Public Member Functions

def __init__
 
def __getstate__
 
def __setstate__
 
def getVersion
 

Static Public Attributes

 ConfigClass = EquatSkyMapConfig
 

Static Private Attributes

tuple _version = (1, 0)
 

Detailed Description

Equatorial sky map pixelization, e.g. for SDSS stripe 82 image data.
    
EquatSkyMap represents an equatorial band of sky divided along declination into overlapping tracts.

Definition at line 45 of file equatSkyMap.py.

Constructor & Destructor Documentation

def lsst.skymap.equatSkyMap.EquatSkyMap.__init__ (   self,
  config = None 
)
Construct a EquatSkyMap

@param[in] config: an instance of self.ConfigClass; if None the default config is used

Definition at line 53 of file equatSkyMap.py.

53 
54  def __init__(self, config=None):
55  """Construct a EquatSkyMap
56 
57  @param[in] config: an instance of self.ConfigClass; if None the default config is used
58  """
59  BaseSkyMap.__init__(self, config)
60 
61  decRange = tuple(afwGeom.Angle(dr, afwGeom.degrees) for dr in self.config.decRange)
62  midDec = (decRange[0] +decRange[1]) / 2.0
63  tractWidthRA = afwGeom.Angle(360.0 / self.config.numTracts, afwGeom.degrees)
64  tractOverlap = afwGeom.Angle(self.config.tractOverlap, afwGeom.degrees)
65 
66  for id in range(self.config.numTracts):
67  begRA = tractWidthRA * id
68  endRA = begRA + tractWidthRA
69  vertexCoordList = (
70  afwCoord.IcrsCoord(begRA, decRange[0]),
71  afwCoord.IcrsCoord(endRA, decRange[0]),
72  afwCoord.IcrsCoord(endRA, decRange[1]),
73  afwCoord.IcrsCoord(begRA, decRange[1]),
74  )
75 
76  midRA = begRA + tractWidthRA / 2.0
77  ctrCoord = afwCoord.IcrsCoord(midRA, midDec)
78 
79  # CRVal must have Dec=0 for symmetry about the equator
80  crValCoord = afwCoord.IcrsCoord(midRA, afwGeom.Angle(0.0))
81 
82  # make initial WCS; don't worry about crPixPos because TractInfo will shift it as required
83  wcs = self._wcsFactory.makeWcs(crPixPos=afwGeom.Point2D(0,0), crValCoord=crValCoord)
84 
85  self._tractInfoList.append(TractInfo(
86  id = id,
87  patchInnerDimensions = self.config.patchInnerDimensions,
88  patchBorder = self.config.patchBorder,
89  ctrCoord = ctrCoord,
90  vertexCoordList = vertexCoordList,
91  tractOverlap = tractOverlap,
92  wcs = wcs,
93  ))
94 
95 
A class to handle Icrs coordinates (inherits from Coord)
Definition: Coord.h:157

Member Function Documentation

def lsst.skymap.equatSkyMap.EquatSkyMap.__getstate__ (   self)
Support pickle

@return a dict containing:
- version: a pair of ints
- config: the config

Definition at line 96 of file equatSkyMap.py.

96 
97  def __getstate__(self):
98  """Support pickle
99 
100  @return a dict containing:
101  - version: a pair of ints
102  - config: the config
103  """
104  return dict(
105  version = self._version,
106  config = self.config,
107  )
def lsst.skymap.equatSkyMap.EquatSkyMap.__setstate__ (   self,
  stateDict 
)
Support unpickle

@param[in] stateDict: a dict containing:
- version: a pair of ints
- config: the config

Definition at line 108 of file equatSkyMap.py.

109  def __setstate__(self, stateDict):
110  """Support unpickle
111 
112  @param[in] stateDict: a dict containing:
113  - version: a pair of ints
114  - config: the config
115  """
116  version = stateDict["version"]
117  if version >= (2, 0):
118  raise runtimeError("Version = %s >= (2,0); cannot unpickle" % (version,))
119  self.__init__(stateDict["config"])
def lsst.skymap.equatSkyMap.EquatSkyMap.getVersion (   self)
Return version (e.g. for pickle)

@return version as a pair of integers

Definition at line 120 of file equatSkyMap.py.

121  def getVersion(self):
122  """Return version (e.g. for pickle)
123 
124  @return version as a pair of integers
125  """
126  return self._version

Member Data Documentation

tuple lsst.skymap.equatSkyMap.EquatSkyMap._version = (1, 0)
staticprivate

Definition at line 51 of file equatSkyMap.py.

lsst.skymap.equatSkyMap.EquatSkyMap.ConfigClass = EquatSkyMapConfig
static

Definition at line 50 of file equatSkyMap.py.


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