powered by
Gives the pixel at resolution \(j - k\) that contains \(p\), where \(p\) is specified at resolution \(j\) (notice it does not depend on \(j\)).
ancestor(p, k)
A numeric vector of nested pixel indices at resolution \(j-k\), identifying the ancestors containing the input pixels.
A pixel index specified in nested order.
A generation of an ancestor pixel.
ancestor(4,2) ancestor(17,2)
Run the code above in your browser using DataLab