parent: Return index of parent pixel

Description Usage Arguments Examples

View source: R/NestSearch.R

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

1
parent(p)

Arguments

p

A pixel index specified in nested order.

Examples

1
2
 parent(4)
 parent(5)

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.