s2im: Make an Image/Raster Object on the Sphere

View source: R/s2im.R

s2imR Documentation

Make an Image/Raster Object on the Sphere

Description

Make an Image/Raster Object on the Sphere

Usage

s2im(grid, values)

Arguments

grid

An s2grid defining the cells/pixels of the image.

values

A numeric of same length as grid containing the image value at each cell.

Value

Object of class s2im.

Examples

poly <- s2polygon(cbind(lon = c(-20,-10,10,20,10,-10), lat = c(0, -10, -10, 0, 10, 10)))
grid <- s2grid.s2polygon(poly, 5)
im <- s2im(grid, 1:length(grid))
plot(im)

spatstat/spatstat.sphere documentation built on Jan. 27, 2023, 2:59 a.m.