LSST Applications g1cfbe01172+01aa18f939,g20cdd03214+31e6b93548,g28da252d5a+ea8665a95b,g2bbee38e9b+9ec6cc348d,g2bc492864f+9ec6cc348d,g347aa1857d+9ec6cc348d,g3a166c0a6a+9ec6cc348d,g4322eb9e3a+65eff1e020,g461a3dce89+b86e4b8053,g50ff169b8f+f991eae79d,g52b1c1532d+b86e4b8053,g607f77f49a+31e6b93548,g78056777b3+8ae2798781,g858d7b2824+31e6b93548,g8cd86fa7b1+4851e61ca4,g9ddcbc5298+f24b38b85a,ga1e77700b3+3309dba821,gae0086650b+b86e4b8053,gb0e22166c9+6076c0b52b,gbb886bcc26+dccb771098,gbd462c55f0+dc07f8e65d,gc0c51c7ec2+31e6b93548,gc120e1dc64+a417ce3171,gc28159a63d+9ec6cc348d,gc2a6998b7e+f95f64aeae,gcdd4ae20e8+507450c4cd,gcf0d15dbbd+507450c4cd,gd1535ee943+bcf88ba65f,gd598c5cd71+66126f91fb,gdaeeff99f8+006e14e809,gdbce86181e+39d5515b1a,ge3d4d395c2+b12d4d6a95,ge79ae78c31+9ec6cc348d,gf048a9a2f4+d9c36e6b63,gfbcc870c63+ea41c4420b,w.2024.27
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 90 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 108 of file healpixSkyMap.py.

108 def __init__(self, config, version=0):
109 self._nside = 1 << config.log2NSide
110 numTracts = hpgeom.nside_to_npixel(self._nside)
111 super(HealpixSkyMap, self).__init__(numTracts, config, version)
112

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 113 of file healpixSkyMap.py.

113 def findTract(self, coord):
114 """Find the tract whose inner region includes the coord.
115
116 Parameters
117 ----------
118 coord : `lsst.geom.SpherePoint`
119 ICRS sky coordinate to search for.
120
121 Returns
122 -------
123 tractInfo : `TractInfo`
124 Info for tract whose inner region includes the coord.
125 """
126 theta, phi = coordToAng(coord)
127 index = hpgeom.angle_to_pixel(self._nside, theta, phi, nest=self.config.nest, lonlat=False)
128 return self[index]
129

◆ generateTract()

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

Reimplemented from lsst.skymap.cachingSkyMap.CachingSkyMap.

Definition at line 130 of file healpixSkyMap.py.

130 def generateTract(self, index):
131 """Generate TractInfo for the specified tract index."""
132 center = angToCoord(hpgeom.pixel_to_angle(self._nside, index, nest=self.config.nest, lonlat=False))
133 wcs = self._wcsFactory.makeWcs(crPixPos=geom.Point2D(0, 0), crValCoord=center)
134 return HealpixTractInfo(self._nside, index, self.config.nest, self._tractBuilder,
135 center, self.config.tractOverlap*geom.degrees,
136 wcs)
137

◆ 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 138 of file healpixSkyMap.py.

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

Member Data Documentation

◆ _nside

lsst.skymap.healpixSkyMap.HealpixSkyMap._nside
protected

Definition at line 109 of file healpixSkyMap.py.

◆ _tractBuilder

lsst.skymap.healpixSkyMap.HealpixSkyMap._tractBuilder
protected

Definition at line 134 of file healpixSkyMap.py.

◆ _version

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

Definition at line 105 of file healpixSkyMap.py.

◆ ConfigClass

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

Definition at line 104 of file healpixSkyMap.py.

◆ numAngles

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

Definition at line 106 of file healpixSkyMap.py.


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