LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+a41d3748ce,g1470d8bcf6+6be6c9203b,g2079a07aa2+14824f138e,g212a7c68fe+a4f2ea4efa,g2305ad1205+72971fe858,g295015adf3+ab2c85acae,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+31b3a28dff,g487adcacf7+082e807817,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+b2918d57ae,g5a732f18d5+66d966b544,g64a986408d+a41d3748ce,g858d7b2824+a41d3748ce,g8a8a8dda67+a6fc98d2e7,g99cad8db69+7fe4acdf18,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+84af8b3ff8,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gba4ed39666+9664299f35,gbb8dafda3b+d8d527deb2,gc07e1c2157+b2dbe6b631,gc120e1dc64+61440b2abb,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+31b3a28dff,gdaeeff99f8+a38ce5ea23,ge6526c86ff+39927bb362,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+a41d3748ce,v24.1.5.rc1
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: