LSST Applications g02d81e74bb+86cf3d8bc9,g180d380827+7a4e862ed4,g2079a07aa2+86d27d4dc4,g2305ad1205+e1ca1c66fa,g29320951ab+012e1474a1,g295015adf3+341ea1ce94,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+c429d67c83,g48712c4677+f88676dd22,g487adcacf7+27e1e21933,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+b41db86c35,g5a732f18d5+53520f316c,g64a986408d+86cf3d8bc9,g858d7b2824+86cf3d8bc9,g8a8a8dda67+585e252eca,g99cad8db69+84912a7fdc,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+a2b54eae19,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+6681f309db,gc120e1dc64+f0fcc2f6d8,gc28159a63d+0e5473021a,gcf0d15dbbd+c429d67c83,gdaeeff99f8+f9a426f77a,ge6526c86ff+0433e6603d,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+86cf3d8bc9,w.2024.17
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: