LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
lsst.skymap.discreteSkyMap.DiscreteSkyMap Class Reference
Inheritance diagram for lsst.skymap.discreteSkyMap.DiscreteSkyMap:
lsst.skymap.cachingSkyMap.CachingSkyMap lsst.skymap.baseSkyMap.BaseSkyMap

Public Member Functions

 __init__ (self, config, version=0)
 
 generateTract (self, index)
 
 updateSha1 (self, sha1)
 

Static Public Attributes

 ConfigClass = DiscreteSkyMapConfig
 

Protected Attributes

 _tractBuilder
 

Static Protected Attributes

tuple _version = (1, 0)
 

Detailed Description

Discrete sky map pixelization.

We put a square Tract at each of the nominated coordinates.

Parameters
----------
config : `lsst.skyMap.BaseSkyMapConfig`
    The configuration for this SkyMap; if None use the default config.
version : `int` or `tuple` of `int` (optional)
    Software version of this class, to retain compatibility with old
    instances.

Definition at line 50 of file discreteSkyMap.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.skymap.discreteSkyMap.DiscreteSkyMap.__init__ ( self,
config,
version = 0 )

Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.

Definition at line 66 of file discreteSkyMap.py.

66 def __init__(self, config, version=0):
67 numTracts = len(config.radiusList)
68 super(DiscreteSkyMap, self).__init__(numTracts, config, version)
69

Member Function Documentation

◆ generateTract()

lsst.skymap.discreteSkyMap.DiscreteSkyMap.generateTract ( self,
index )
Generate TractInfo for the specified tract index.

Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.

Definition at line 70 of file discreteSkyMap.py.

70 def generateTract(self, index):
71 """Generate TractInfo for the specified tract index."""
72 center = geom.SpherePoint(self.config.raList[index], self.config.decList[index], geom.degrees)
73 radius = self.config.radiusList[index]
74 wcs = self._wcsFactory.makeWcs(crPixPos=geom.Point2D(0, 0), crValCoord=center)
75 return ExplicitTractInfo(index, self._tractBuilder, center,
76 radius*geom.degrees, self.config.tractOverlap*geom.degrees, wcs)
77
Point in an unspecified spherical coordinate system.
Definition SpherePoint.h:57

◆ updateSha1()

lsst.skymap.discreteSkyMap.DiscreteSkyMap.updateSha1 ( self,
sha1 )
Add subclass-specific state or configuration options to the SHA1.

Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.

Definition at line 78 of file discreteSkyMap.py.

78 def updateSha1(self, sha1):
79 """Add subclass-specific state or configuration options to the SHA1."""
80 fmt = "<{}d".format(len(self.config.radiusList))
81 sha1.update(struct.pack(fmt, *self.config.raList))
82 sha1.update(struct.pack(fmt, *self.config.decList))
83 sha1.update(struct.pack(fmt, *self.config.radiusList))

Member Data Documentation

◆ _tractBuilder

lsst.skymap.discreteSkyMap.DiscreteSkyMap._tractBuilder
protected

Definition at line 75 of file discreteSkyMap.py.

◆ _version

tuple lsst.skymap.discreteSkyMap.DiscreteSkyMap._version = (1, 0)
staticprotected

Definition at line 64 of file discreteSkyMap.py.

◆ ConfigClass

lsst.skymap.discreteSkyMap.DiscreteSkyMap.ConfigClass = DiscreteSkyMapConfig
static

Definition at line 63 of file discreteSkyMap.py.


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