ring2nest: Convert ring to nest ordering.

View source: R/Conversion.R

ring2nestR Documentation

Convert ring to nest ordering.

Description

ring2nest converts HEALPix pixel indices in the 'ring' ordering scheme to HEALPix pixel indices in the 'nested' ordering scheme.

Usage

ring2nest(nside, pix)

Arguments

nside

is the HEALPix nside parameter (integer number 2^k)

pix

is a vector of HEALPix pixel indices, in the 'ring' ordering scheme.

Value

the output is a vector of HEALPix pixel indices in the 'nested' ordering scheme.

Examples

## Convert (1,2,23) from ring to nest at nside = 8
nside <- 8
pix <-c(1,2,23)
ring2nest(nside,pix)


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