as.s2pp.s2grid: Convert a Grid on the Sphere to a Point Pattern on the Sphere

View source: R/s2im.R

as.s2pp.s2gridR Documentation

Convert a Grid on the Sphere to a Point Pattern on the Sphere

Description

Convert a Grid on the Sphere to a Point Pattern on the Sphere

Usage

## S3 method for class 's2grid'
as.s2pp(X, ...)

Arguments

X

Object of class s2grid.

...

Ignored.

Value

Point pattern of class s2pp. The points are the grid cell centers.

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)
pp <- as.s2pp(grid)

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