nest2ring: Convert nest to ring ordering

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Convert from "nested" to "ring" ordering

nest2ring computes the HEALPix pixel index in the "ring" ordering scheme from the pixel index in the "nested" ordering scheme.

Usage

1

Arguments

nside

is the HEALPix nside parameter.

pix

is the set or subset of pixel indices at nside. If pix is left blank then all pixels are converted.

Value

the output is the corresponding set of pixel in the ring ordering scheme.

Examples

1
2
3
4
# compute HEALPix indices in the ring ordering scheme
nside <- 8
pix <-c(1,2,23)
nest2ring(nside,pix)

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.