LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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())