After renormalizing the vectors, angulardistance computes the angular distance usingin general, or
when
and
are almost aligned.
If(resp.
) is a single vector, while
(resp.
) is a list of vectors, then the result is a list of distances
(resp.
).
If bothand
are lists of vector of the same length, then the result is a list of distances
.
nside=8 |
pix2vec_ring, nside, lindgen(nside2npix(nside)), vpix |
mollview, angulardistance( vpix, [1,1,1]) |
will plot the angular distance between the Healpix pixels center for Nside=8 , and the vector
Version 3.83, 2024-11-13