If prediction locations are defined in the command file, gstat chooses a prediction method depending on the model defined by the complete set of commands in a command file.
When no variograms are specified, inverse distance weighted interpolation is the default action (Fig. 2.1, example 3).
When variograms are specified the default prediction method is ordinary kriging [13,5] (example 4 and example 8).
Simple kriging is the default action when in addition for each variable the simple kriging mean (sk_mean or b) is set (section 4.2; example 5, universal kriging or uncorrelated linear model prediction is used when a model for the trend is defined ,section 2.7). Multiple prediction, multivariable prediction, and stratified prediction are described in section 3.1-3.4. Prediction of block averages is described in section 3.5.
If the prediction locations are specified as a mask map with the command
mask: 'file';
then predictions and prediction variances are written to output maps only when these maps are specified explicitly (section 4.1; example 5).
As an alternative to prediction on grid map locations, prediction on non-gridded locations is the default action when these locations are specified with the
data(): ... ;
command (note the absence of an identifier between the parentheses). In this case, output is written in ascii table or simplified GeoEAS format to the file defined by the command set output=' file'; (example 4, or defined with the command line option -o, section 5.2).
![]() |
By default, gstat uses global prediction, meaning that for each prediction all data values are used. However, it is often desirable to use not all data values, but only a subset in a (spatial) neighbourhood around the prediction (simulation) location, for either computational reasons or the wish to assume first-order stationarity only locally. Gstat allows local neighbourhood selections to be based on distance (radius), number of data points (max, min), variogram distance (vdist), and number of data points per octant (3D) or quadrant (2D) (omax). The options are explained below (see also Fig. 2.3, section 4.2 examples in chapter 6).
The quadtree-based algorithm used to obtain data points in a local search neighbourhood is described in [11], and is found at http://www.cs.umd.edu/ brabec/quadtree/index.html (Bucket PR Quadtree demo).
Some options should be combined, and permitted combinations are explained below. (Combinations not mentioned might result in unexpected or undesired results.)
Indicator kriging
Basically, indicator kriging is equivalent to simple or ordinary kriging of indicator-transformed data. However, resulting estimates of indicator values are not guaranteed to satisfy order relations. During indicator kriging, gstat will do order relation violation correction for independent, cumulative or categorical (disjunct) indicators only if the order is to one of the values in Table 2.1, order and [8,10].