Learn R Programming

rcosmo (version 1.1.6)

ibp2p: Computes pixel's index using its subindex within base resolution

Description

Find the pixel index \(p\) of a given pixel with index ibp in base pixel bp.

Usage

ibp2p(ibp, bp, j)

Value

A numeric vector of full-sky nested pixel indices at resolution j, combining the within-base indices and base pixel indices.

Arguments

ibp

The pixel index within base pixel bp, at resolution j, in nested order.

bp

The base pixel index

j

The resolution parameter nside = 2^j

Examples

Run this code

ibp2p(1, 1, 2)
ibp2p(1, 2, 2)

Run the code above in your browser using DataLab