ancestor: Return index of kth ancestor pixel

View source: R/NestSearch.R

ancestorR Documentation

Return index of kth ancestor pixel

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

ancestor(p, k)

Arguments

p

A pixel index specified in nested order.

k

A generation of an ancestor pixel.

Examples


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


frycast/rcosmo documentation built on Oct. 11, 2022, 5:21 p.m.