ancestor: Return index of kth ancestor pixel

Description Usage Arguments Examples

View source: R/NestSearch.R

Description

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

Usage

1
ancestor(p, k)

Arguments

p

A pixel index specified in nested order.

k

A generation of an ancestor pixel.

Examples

1
2
 ancestor(4,2)
 ancestor(17,2)

rcosmo documentation built on Feb. 14, 2020, 5:06 p.m.