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.healpixSkyMap.HealpixSkyMap Class Reference
Inheritance diagram for lsst.skymap.healpixSkyMap.HealpixSkyMap:
lsst.skymap.cachingSkyMap.CachingSkyMap lsst.skymap.baseSkyMap.BaseSkyMap

Public Member Functions

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

Static Public Attributes

 ConfigClass = HealpixSkyMapConfig
 
int numAngles = 4
 

Protected Attributes

 _nside
 
 _tractBuilder
 

Static Protected Attributes

tuple _version = (1, 0)
 

Detailed Description

HEALPix-based sky map pixelization.

We put a Tract at the position of each HEALPixel.


Parameters
----------
config : `lsst.skymap.BaseSkyMapConfig`
    The configuration for this SkyMap.
version : `int` or `tuple` of `int` (optional)
    Software version of this class, to retain compatibility with old
    instances.

Definition at line 74 of file healpixSkyMap.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.skymap.healpixSkyMap.HealpixSkyMap.__init__ ( self,
config,
version = 0 )

Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.

Definition at line 92 of file healpixSkyMap.py.

92 def __init__(self, config, version=0):
93 self._nside = 1 << config.log2NSide
94 numTracts = hpgeom.nside_to_npixel(self._nside)
95 super(HealpixSkyMap, self).__init__(numTracts, config, version)
96

Member Function Documentation

◆ findTract()

lsst.skymap.healpixSkyMap.HealpixSkyMap.findTract ( self,
coord )
Find the tract whose inner region includes the coord.

Parameters
----------
coord : `lsst.geom.SpherePoint`
    ICRS sky coordinate to search for.

Returns
-------
tractInfo : `TractInfo`
    Info for tract whose inner region includes the coord.

Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.

Definition at line 97 of file healpixSkyMap.py.

97 def findTract(self, coord):
98 """Find the tract whose inner region includes the coord.
99
100 Parameters
101 ----------
102 coord : `lsst.geom.SpherePoint`
103 ICRS sky coordinate to search for.
104
105 Returns
106 -------
107 tractInfo : `TractInfo`
108 Info for tract whose inner region includes the coord.
109 """
110 theta, phi = coordToAng(coord)
111 index = hpgeom.angle_to_pixel(self._nside, theta, phi, nest=self.config.nest, lonlat=False)
112 return self[index]
113

◆ generateTract()

lsst.skymap.healpixSkyMap.HealpixSkyMap.generateTract ( self,
index )
Generate TractInfo for the specified tract index.

Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.

Definition at line 114 of file healpixSkyMap.py.

114 def generateTract(self, index):
115 """Generate TractInfo for the specified tract index."""
116 center = angToCoord(hpgeom.pixel_to_angle(self._nside, index, nest=self.config.nest, lonlat=False))
117 wcs = self._wcsFactory.makeWcs(crPixPos=geom.Point2D(0, 0), crValCoord=center)
118 return HealpixTractInfo(self._nside, index, self.config.nest, self._tractBuilder,
119 center, self.config.tractOverlap*geom.degrees,
120 wcs)
121

◆ updateSha1()

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

Reimplemented from lsst.skymap.baseSkyMap.BaseSkyMap.

Definition at line 122 of file healpixSkyMap.py.

122 def updateSha1(self, sha1):
123 """Add subclass-specific state or configuration options to the SHA1."""
124 sha1.update(struct.pack("<i?", self.config.log2NSide, self.config.nest))

Member Data Documentation

◆ _nside

lsst.skymap.healpixSkyMap.HealpixSkyMap._nside
protected

Definition at line 93 of file healpixSkyMap.py.

◆ _tractBuilder

lsst.skymap.healpixSkyMap.HealpixSkyMap._tractBuilder
protected

Definition at line 118 of file healpixSkyMap.py.

◆ _version

tuple lsst.skymap.healpixSkyMap.HealpixSkyMap._version = (1, 0)
staticprotected

Definition at line 89 of file healpixSkyMap.py.

◆ ConfigClass

lsst.skymap.healpixSkyMap.HealpixSkyMap.ConfigClass = HealpixSkyMapConfig
static

Definition at line 88 of file healpixSkyMap.py.

◆ numAngles

int lsst.skymap.healpixSkyMap.HealpixSkyMap.numAngles = 4
static

Definition at line 90 of file healpixSkyMap.py.


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