Moving average

Command line

The Moving Average operation can be directly executed by typing one of the following expressions on the command line of the Main window:

  

OUTMAP

=

MapMovingAverage(InputPointMap, Georeference, WeightFunction)

OUTMAP

=

MapMovingAverage(InputPointMap, Georeference, WeightFunction, plane | sphere)

OUTMAP

=

MapMovingAverage(InputPointMap.Column, Georeference, WeightFunction)

OUTMAP

=

MapMovingAverage(InputPointMap.Column, Georeference, WeightFunction, plane | sphere)

where:

OUTMAP

is the name of the output raster map.

MapMovingAverage

is the command to start the Moving Average operation.

InputPointMap

is the name of the input point map with a value domain.

InputPointMap.Column

is the name of an input point map with a class or ID domain which has a linked attribute table, and the name of a value column in this attribute table.

Georeference

is the name of an existing georeference for the output raster map.

WeightFunction

is an expressing which defines the type of weight function to be used, as:

InvDist(Exp,LimDist)

Linear(Exp,LimDist)

InvDist

is the parameter to indicate the use of the inverse distance method.

Linear

is the parameter to indicate the use of the linear decrease method.

Exp

is a value for weight exponent n to be used in the specified weight function (real value, usually a value close to 1.0).

LimDist

is a value for the limiting distance: points that are farther away from an output pixel than the limiting distance obtain weight zero.

plane | sphere

optional parameter to calculate distances in a plane (plane), or on the sphere by using the projection of the coordinate system as used by the georeference of the output raster map (sphere). If not specified, distances will be calculated in a plane.

Example:

A full expression for the Moving Average operation, using weights according to the inverse distance method, a weight exponent 1, and a limiting distance of 500 m. might thus read:

  

OUTMAP

=

MapMovingAverage(MapX, GeorefX, InvDist(1,500))

When the definition symbol = is used, a dependent output map is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map has been calculated.

See also: