rcosmo (version 1.1.2)

parent: Return index of parent pixel

Description

Gives the pixel at resolution \(j - 1\) that contains \(p\), where \(p\) is specified at resolution \(j\) (notice it does not depend on \(j\)).

Usage

parent(p)

Arguments

p

A pixel index specified in nested order.

Examples

Run this code
# NOT RUN {
 parent(4)
 parent(5)

# }

Run the code above in your browser using DataLab