ancestor: Return index of kth ancestor pixel

Description Usage Arguments Examples

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)

frycast/rcosmo documentation built on June 4, 2019, 5:13 p.m.