Learn R Programming

rcosmo (version 1.1.6)

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)

Value

A numeric vector giving the nested index of each input pixel within its base pixel at resolution j.

Arguments

p

The pixel index at resolution j, in nested order.

j

The resolution parameter nside = 2^j

Examples

Run this code

p2ibp(6, 0)
p2ibp(6, 1)

Run the code above in your browser using DataLab