pixelWindow: Find high resolution pixels falling in a lower resolution...

View source: R/NestSearch.R

pixelWindowR Documentation

Find high resolution pixels falling in a lower resolution window

Description

Find all pixels in a higher resolution that fall within the specified pixel area at a lower resolution. All pixels are assumed to be in nested ordering.

Usage

pixelWindow(j1, j2, pix.j1)

Arguments

j1

An integer. The lower resolution, with j1 =< j2. Note that resolution = log2(nside).

j2

An integer. The upper resolution.

pix.j1

An integer. The pixel index at resolution j1 within which all pixels from resolution j2 will be returned. pix.j1 can also be a vector of non-zero pixel indices.

Value

All pixels in resolution j2 that fall within the pixel pix.j1 specified at resolution j1

Examples


pixelWindow(3, 3, 2)
pixelWindow(3, 4, 2)
pixelWindow(3, 5, 2)


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