LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Classes | Functions
lsst.skymap.healpixSkyMap Namespace Reference

Classes

class  DummyHealpy
 
class  HealpixTractInfo
 
class  HealpixSkyMapConfig
 
class  HealpixSkyMap
 

Functions

def angToCoord
 
def coordToAng
 

Function Documentation

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

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

45 
46 def angToCoord(thetaphi):
47  """Convert healpy's ang to an afw Coord
48 
49  The ang is provided as a single object, thetaphi, so the output
50  of healpy functions can be directed to this function without
51  additional translation.
52  """
53  return IcrsCoord(float(thetaphi[1])*afwGeom.radians, float(thetaphi[0] - 0.5*numpy.pi)*afwGeom.radians)
A class to handle Icrs coordinates (inherits from Coord)
Definition: Coord.h:157
def lsst.skymap.healpixSkyMap.coordToAng (   coord)
Convert an afw Coord to a healpy ang (theta, phi)

Definition at line 54 of file healpixSkyMap.py.

54 
55 def coordToAng(coord):
56  """Convert an afw Coord to a healpy ang (theta, phi)"""
57  return (coord.getLatitude().asRadians() - 0.5*numpy.pi, coord.getLongitude().asRadians())