Handling of HEALPix grids. More...
Classes | |
class | HEALPixGrid |
This class represents a HEALPix grid. More... | |
Functions | |
def | getDistanceOnSky (thetaA, phiA, thetaB, phiB) |
Get the shortest distance (in radians) between two points (A, B) on the celestial sphere with the given zenith and azimuth. More... | |
def | getEmptyHEALPixGrid (order, numValuesPerPixel=1) |
Construct a new, empty HEALPixGrid of the given order and with the given number of values per pixel. More... | |
Handling of HEALPix grids.
This module offers functionality to work with HEALPix grids output by the HEALPixSkyInstrument.
def pts.simulation.healpix.getDistanceOnSky | ( | thetaA, | |
phiA, | |||
thetaB, | |||
phiB | |||
) |
Get the shortest distance (in radians) between two points (A, B) on the celestial sphere with the given zenith and azimuth.
The distance can easily be derived by realizing that the angle between the unit vectors pointing to A and B is given by
In spherical coordinates, the dot product of the two unit vectors with sky coordinates
def pts.simulation.healpix.getEmptyHEALPixGrid | ( | order, | |
numValuesPerPixel = 1 |
|||
) |
Construct a new, empty HEALPixGrid of the given order and with the given number of values per pixel.
The order
For example, most Planck maps are published with an order