healpy.pixelfunc.vec2ang

healpy.pixelfunc.vec2ang(vectors)

vec2ang: vectors [x, y, z] -> theta[rad], phi[rad]

Parameters :

vectors : float, array-like

the vector(s) to convert, shape is (3,) or (N, 3)

Returns :

theta, phi : float, tuple of two arrays

the colatitude and longitude in radians

See also

ang2vec, rotator.vec2dir, rotator.dir2vec

Project Versions

Previous topic

healpy.pixelfunc.vec2pix

Next topic

healpy.pixelfunc.ang2vec

This Page