LSST Applications g034a557a3c+0df69e75ff,g0afe43252f+b86e4b8053,g11f7dcd041+017865fdd3,g1cd03abf6b+1c8dc8730a,g1ce3e0751c+f991eae79d,g28da252d5a+a136f03385,g2bbee38e9b+b6588ad223,g2bc492864f+b6588ad223,g2cdde0e794+8523d0dbb4,g347aa1857d+b6588ad223,g35bb328faa+b86e4b8053,g3a166c0a6a+b6588ad223,g461a3dce89+b86e4b8053,g52b1c1532d+b86e4b8053,g6233c72cae+da9c58a417,g7f3b0d46df+ad13c1b82d,g80478fca09+f29c5d6c70,g858d7b2824+4fc997592f,g8cd86fa7b1+5f14beadf5,g965a9036f2+4fc997592f,g979bb04a14+87f76c17e6,g9ddcbc5298+f24b38b85a,gae0086650b+b86e4b8053,gbb886bcc26+77117948e7,gc28159a63d+b6588ad223,gc30aee3386+a2f0f6cab9,gcaf7e4fdec+4fc997592f,gcd45df26be+4fc997592f,gcdd4ae20e8+0acf6430b1,gcf0d15dbbd+0acf6430b1,gdaeeff99f8+006e14e809,gdbce86181e+467b805b48,ge3d4d395c2+224150c836,ge5f7162a3a+1d9667e7ad,ge6cb8fbbf7+0992c83eee,ge79ae78c31+b6588ad223,gf048a9a2f4+41d6ddaca1,gf0baf85859+b4cca3d10f,w.2024.30
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: