rcosmo (version 1.1.2)

p2ibp: Return pixel index within its base pixel

Description

Convert a pixel index \(p\) to its index within the base pixel to which \(p\) belongs

Usage

p2ibp(p, j)

Arguments

p

The pixel index at resolution j, in nested order.

j

The resolution parameter nside = 2^j

Examples

Run this code
# NOT RUN {
p2ibp(6, 0)
p2ibp(6, 1)

# }

Run the code above in your browser using DataLab