Description Usage Arguments Value Examples
Convert HEALPix pixel indices to cartesian or spherical coordinates
1 | pix2coords(nside, coords = "cartesian", ordering = "nested", spix)
|
nside |
the nside parameter (integer number 2^k) |
coords |
'cartesian' or 'spherical' coordinates |
ordering |
'ring' or 'nested' ordering |
spix |
optional integer or vector of sample pixel indices |
a data.frame with columns 'x', 'y', 'z' (cartesian) or 'theta', 'phi' (spherical)
1 2 | pix2coords(nside=1, spix=c(2,5))
pix2coords(nside=1, coords = "spherical", spix=c(2,5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.