Learn R Programming

rcosmo (version 1.1.6)

pixelWindow: 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)

Value

All pixels in resolution j2 that fall within the pixel pix.j1 specified at resolution 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.

Examples

Run this code

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

Run the code above in your browser using DataLab