ang2vec : convert angles to 3D position vector
theta : float, scalar or arry-like
colatitude in radians measured southward from north pole (in [0,pi]).
phi : float, scalar or array-like
longitude in radians measured eastward (in [0, 2*pi]).
vec : float, array
if theta and phi are vectors, the result is a 2D array with a vector per row otherwise, it is a 1D array of shape (3,)
See also
vec2ang, rotator.dir2vec, rotator.vec2dir
Full-text doc search.
healpy.pixelfunc.vec2ang
healpy.pixelfunc.get_neighbours
Enter search terms or a module, class or function name.