db.grid.fill {RGeoS}R Documentation

Fill the empty cells of a Grid

Description

Fill the empty cells of a Grid

Usage

db.grid.fill(db, mode = 0, seed = 1321, radius = 1)

Arguments

db

The db-class of grid type where the variable will be filled.

mode

Type of filling function:

  • 0 Moving average

  • 1 Inverse squared distane

  • 2 Interpolation by a linear plane

seed

Random seed

radius

Neighborhood radius

Details

The Z-variable defined on a grid is filled if necessary. When a cell is not defined, its value is derived by interpolation from its nearest neighbors. The procedure is performed by successive rings, starting from the periphery of the cells where the target variable is initially defined. This procedure is iterated until all the cells are filled. This procedure is meant to avoid spurious artefacts linked to strong uncontrolled extrapolation.

Value

The db-class of grid type where the target variable is filled.


[Package RGeoS version 9.1.1 Index]