Learn R Programming

rcosmo (version 1.1.6)

p2bp: Return base pixel to which pixel belongs

Description

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

Usage

p2bp(p, j)

Value

A numeric vector of base pixel indices from 1 to 12, identifying the base pixel containing each input pixel.

Arguments

p

The pixel index at resolution j, in nested order.

j

The resolution parameter nside = 2^j

Examples

Run this code

p2bp(5, 0)
p2bp(5, 1)

Run the code above in your browser using DataLab