Loading [MathJax]/extensions/tex2jax.js
LSST Applications g00c13176ca+90d3fa7e64,g00d24c3146+07134a258f,g0fba68d861+94de79a45a,g1ec0fe41b4+f536777771,g1fd858c14a+958e7c0317,g35bb328faa+fcb1d3bbc8,g4d2262a081+0377cf7e87,g53246c7159+fcb1d3bbc8,g56a49b3a55+a44ca4bdea,g5a012ec0e7+3632fc3ff3,g60b5630c4e+07134a258f,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8180f54f50+a220987f6f,g8352419a5c+fcb1d3bbc8,g87b7deb4dc+c5d9439d40,g8852436030+bef424d5ca,g89139ef638+ed4b5058f4,g9125e01d80+fcb1d3bbc8,g94187f82dc+07134a258f,g989de1cb63+ed4b5058f4,g9ccd5d7f00+b7cae620c0,g9d31334357+07134a258f,g9f33ca652e+31a8ea3a30,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+c50a309191,gb58c049af0+f03b321e39,gb89ab40317+ed4b5058f4,gc0af124501+69caa252ab,gcf25f946ba+bef424d5ca,gd6cbbdb0b4+bb83cc51f8,gde0f65d7ad+2d7c667467,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,gf5e32f922b+fcb1d3bbc8,gf67bdafdda+ed4b5058f4,w.2025.16
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst.skymap.healpixSkyMap Namespace Reference

Classes

class  HealpixSkyMap
 
class  HealpixSkyMapConfig
 
class  HealpixTractInfo
 

Functions

 angToCoord (thetaphi)
 
 coordToAng (coord)
 

Function Documentation

◆ angToCoord()

lsst.skymap.healpixSkyMap.angToCoord ( thetaphi)
Convert hpgeom ang to an lsst.geom.SpherePoint

The angle is provided as a single object, thetaphi, so the output
of hpgeom functions can be directed to this function without
additional translation.

Definition at line 40 of file healpixSkyMap.py.

40def angToCoord(thetaphi):
41 """Convert hpgeom ang to an lsst.geom.SpherePoint
42
43 The angle is provided as a single object, thetaphi, so the output
44 of hpgeom functions can be directed to this function without
45 additional translation.
46 """
47 return geom.SpherePoint(float(thetaphi[1]), float(thetaphi[0] - 0.5*numpy.pi), geom.radians)
48
49
50# TODO: Remove with DM-44799
51@deprecated("coordToAnge has been deprecated and will be removed after v28.",
52 category=FutureWarning, version=28)
Point in an unspecified spherical coordinate system.
Definition SpherePoint.h:57

◆ coordToAng()

lsst.skymap.healpixSkyMap.coordToAng ( coord)
Convert an lsst.geom.SpherePoint to a hpgeom ang (theta, phi)

The Healpix convention is that 0 <= theta <= pi, 0 <= phi < 2pi.

Definition at line 53 of file healpixSkyMap.py.

53def coordToAng(coord):
54 """Convert an lsst.geom.SpherePoint to a hpgeom ang (theta, phi)
55
56 The Healpix convention is that 0 <= theta <= pi, 0 <= phi < 2pi.
57 """
58 return (coord.getLatitude().asRadians() + 0.5*numpy.pi, coord.getLongitude().asRadians())
59
60
61# TODO: Remove with DM-44799
62@deprecated("HealpixTractInfo has been deprecated and will be removed after v28.",
63 category=FutureWarning, version=28)