rcosmo (version 1.1.3)

nest2ring: 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

Run this code
# NOT RUN {
# compute HEALPix indices in the ring ordering scheme
nside <- 8
pix <-c(1,2,23)
nest2ring(nside,pix)

# }

Run the code above in your browser using DataLab