powered by
Convert HEALPix pixel indices to cartesian or spherical coordinates
pix2coords(nside, coords = "cartesian", ordering = "nested", spix)
the nside parameter (integer number \(2^k\))
'cartesian' or 'spherical' coordinates
'ring' or 'nested' ordering
optional integer or vector of sample pixel indices
a data.frame with columns 'x', 'y', 'z' (cartesian) or 'theta', 'phi' (spherical)
# NOT RUN { pix2coords(nside=1, spix=c(2,5)) pix2coords(nside=1, coords = "spherical", spix=c(2,5)) # }
Run the code above in your browser using DataLab