db.grid.fill {RGeostats}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, radix="Grid.Fill",
		 modify.target=db.locmod())

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 distance

  • 2 Interpolation by a linear plane

seed

Random seed

radius

Neighborhood radius

radix

Radix of the name given to the variables storing the results in the target Db.

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

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 RGeostats version 11.0.6 Index]