nest2ring: Convert nest to ring ordering

View source: R/RcppExports.R

nest2ringR Documentation

Convert nest to ring ordering

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

nest2ring(nside, pix)

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

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


frycast/rcosmo documentation built on Oct. 11, 2022, 5:21 p.m.