SField-class: The SField class and constructor function

Description Usage Arguments Details Value Slots Note Author(s) See Also Examples

Description

SField: a Class for Spatial Fields (Objects)

Usage

1
SField(observations, domain, cellsArePoints = NA)

Arguments

observations

object of one of the sublasses of Spatial

domain

object of class SExtent, or of a subclass of Spatial; if missing, it is assumed to be identical to observations

cellsArePoints

logical; do grid cell values reflect point values at the grid cell centre (TRUE) or constant point values throughout the whole grid cell (FALSE)?

Details

A class to store spatial fields, such as temperatures, elevation, land use, and so on, which have point support (footprint), along with the domain for which the set observation are valid e.g. to make interpolations.

Fields are representations of continuous phenomena: at every point in continuous space, a value exists. Observations on fields are, by necessity, discrete and countable when they refer to points, but may also consist of areas in which case an infinite number of points with constant value in the area is represented.

SField objects can be generated from points, lines, polygons or grids. For all classes except points, the attribute values are assumed to be constant and identical for all points along the line (lines), or over the area (polygons, grids).

The domain of a SField object is the area for which the observations are considered relevant, e.g. by affording interpolation or aggregation.

Value

object of class SField-class

Slots

observations:

object of a subclass of Spatial

domain:

object of class SExtentOrNULL-class

cellsArePoints

logical; do grid cell values reflect point values at the grid cell centre (TRUE) or constant point values throughout the whole grid cell (FALSE)?

Note

If no domain is supplied, the domain is set to the collection of features. A warning is issued if one or more of the features are (completely) outside the domain.

Author(s)

Edzer Pebesma

See Also

SObjects

Examples

1
2
3
library(sp)
demo(meuse, ask = FALSE, echo = FALSE)
m = SField(meuse, meuse.area)

edzer/mss documentation built on May 15, 2019, 11:08 p.m.