rcosmo (version 1.1.2)

p2bp: Return base pixel to which pixel belongs

Description

The base pixel to which pixel \(p\) belongs at resolution \(j\)

Usage

p2bp(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 {
p2bp(5, 0)
p2bp(5, 1)

# }

Run the code above in your browser using DataLab