LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.skymap.healpixSkyMap Namespace Reference

Classes

class  DummyHealpy
 
class  HealpixSkyMap
 
class  HealpixSkyMapConfig
 
class  HealpixTractInfo
 

Functions

def angToCoord (thetaphi)
 
def coordToAng (coord)
 

Variables

 healpy
 

Function Documentation

◆ angToCoord()

def lsst.skymap.healpixSkyMap.angToCoord (   thetaphi)
Convert healpy's ang to an lsst.geom.SpherePoint

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

Definition at line 48 of file healpixSkyMap.py.

48 def angToCoord(thetaphi):
49  """Convert healpy's ang to an lsst.geom.SpherePoint
50 
51  The ang is provided as a single object, thetaphi, so the output
52  of healpy functions can be directed to this function without
53  additional translation.
54  """
55  return geom.SpherePoint(float(thetaphi[1]), float(thetaphi[0] - 0.5*numpy.pi), geom.radians)
56 
57 

◆ coordToAng()

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

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

Definition at line 58 of file healpixSkyMap.py.

58 def coordToAng(coord):
59  """Convert an lsst.geom.SpherePoint to a healpy ang (theta, phi)
60 
61  The Healpix convention is that 0 <= theta <= pi, 0 <= phi < 2pi.
62  """
63  return (coord.getLatitude().asRadians() + 0.5*numpy.pi, coord.getLongitude().asRadians())
64 
65 

Variable Documentation

◆ healpy

lsst.skymap.healpixSkyMap.healpy

Definition at line 40 of file healpixSkyMap.py.

lsst.skymap.healpixSkyMap.coordToAng
def coordToAng(coord)
Definition: healpixSkyMap.py:58
lsst.skymap.healpixSkyMap.angToCoord
def angToCoord(thetaphi)
Definition: healpixSkyMap.py:48
lsst::geom::SpherePoint
Point in an unspecified spherical coordinate system.
Definition: SpherePoint.h:57