Learn R Programming

rcosmo (version 1.1.6)

siblings: Return siblings of pixel

Description

The siblings of pixel \(p\) are defined as the children of the parent of \(p\). Note this is resolution independent.

Usage

siblings(p)

Value

An integer vector of four nested pixel indices sharing the same parent as p, including p itself.

Arguments

p

Pixel index in nested order.

Examples

Run this code

siblings(11)
siblings(12)

Run the code above in your browser using DataLab