Geostatistics - 2D: GMS 10.0 Tutorial
Geostatistics - 2D: GMS 10.0 Tutorial
Geostatistics - 2D: GMS 10.0 Tutorial
Objectives
Learn to create scatter point sets from scratch and how to import scatter sets from a file. Investigate the
various 2D interpolation methods available in GMS including linear, IDW, and kriging.
1 Contents ............................................................................................................................... 2
2 Introduction ......................................................................................................................... 2
2.1 Outline .......................................................................................................................... 2
3 Getting Started .................................................................................................................... 3
4 Creating a Scatter Point Set ............................................................................................... 3
5 Importing a Scatter Point Set ............................................................................................. 4
5.1 Open the File ................................................................................................................ 4
5.2 Import Wizard - Step 1 ................................................................................................. 4
5.3 Import Wizard - Step 2 ................................................................................................. 5
6 Changing the Display Options ........................................................................................... 6
7 Creating a Bounding Grid .................................................................................................. 7
8 Selecting an Interpolation Scheme ..................................................................................... 7
9 Linear Interpolation............................................................................................................ 7
10 Viewing the Results ............................................................................................................. 8
11 Viewing the Elliptical Control Function ........................................................................... 8
12 Simple IDW Interpolation .................................................................................................. 9
13 IDW Interpolation With Gradient Planes ......................................................................... 9
14 Using the Horizontal Anisotropy Option ........................................................................ 10
15 IDW Interpolation With Quadratic Nodal Functions .................................................... 11
16 Truncation ......................................................................................................................... 11
17 Kriging ............................................................................................................................... 12
17.1 Creating the Experimental Variogram ........................................................................ 12
17.2 Creating the Model Variogram................................................................................... 12
17.3 Interpolating to the Grid ............................................................................................. 13
18 Switching Data Sets ........................................................................................................... 13
19 Using the Data Calculator ................................................................................................ 14
20 Conclusion.......................................................................................................................... 14
2 Introduction
Two-dimensional geostatistics (interpolation) can be performed in GMS using the 2D
Scatter Point module. The module is used to interpolate from sets of 2D scatter points to
any of the other object types (meshes, grids, TINs). Several interpolation schemes are
supported, including kriging. Geostatistics are useful for setting up input data for
analysis codes or for site characterization.
The tools for manipulating scatter point sets and the interpolation schemes supported in
GMS are described in this tutorial. The interpolation schemes presented in this tutorial
will be easier to understand if you have read the Interpolation section of the GMS Online
Help. This tutorial should be completed before attempting the 3D Geostatistics tutorial.
2.1 Outline
This is what you will do:
3 Getting Started
Let’s get started.
1. If necessary, launch GMS. If GMS is already running, select the File | New
command to ensure that the program settings are restored to their default state.
2D scatter point sets can be created inside GMS using the Create Scatter Points tool.
1. In the Project Explorer right-click on the empty space and then, from the pop-up
menu, select the New | 2D Scatter Point Set menu command.
You are creating scatter points. When you create each point, GMS automatically assigns
a data set value at the point. You can change it so that GMS prompts you for the data set
values.
5. Turn on the Confirm data set value option and click OK.
Now you are prompted to enter a data set value every time you create a new point.
You can only enter steady state data this way. To create a scatter point set with transient
data, you would need to import it from a file. That’s what we’ll do next.
3. At the bottom of the Open dialog, change the filter to Text Files (*.txt,*.csv).
The Import Wizard should appear. The first step of the Import Wizard allows you to
specify how the data is delineated and where in the file the data begins. For this file, the
first row contains column headings. The first column contains the point labels, the
second column is the X values of the points, the third column is the Y values, and the
fourth column is the data set values for the points.
The data associated with 2D scatter points is now displayed in the Mapping options
section. Now we tell GMS what each column in the file means. We do this by selecting
the correct data type in the Type row of the spreadsheet for each column in the file. The
Type row is the first row in the spreadsheet. The options in the combo box changes
depending on the GMS data type selected in the top of the dialog. Since we specified we
were using a heading row in the first step, GMS looked at the headings and automatically
found and mapped the X and Y columns by selecting the X and Y selection in the Type
row of the spreadsheet.
2. Locate the Type row, the first row in the spreadsheet. The first column is ID’s
for each point. In the Type row for the first column select the Label option in
the pull-down menu.
3. For the column with heading c, make sure the type is set to Data set.
The data set in this file represents concentrations of a contaminant. The No data option
can be used to specify a key value in the file used to indicate a lack of information. For
example, if no measurement was taken at one of the points, we might enter –999 or some
other key value for the concentration and specify –999 as the No data value in the Import
Wizard. GMS will then know to ignore these points when we do interpolation later. The
key value should be a value that would not normally be encountered in the data set. In
this case, we don’t need to use this option.
4. Make sure the dialog looks like Figure 2 and click the Finish button.
2. Select the 2D Scatter Data item from the list on the left.
3. For the Scatter point symbols, change the Color option to Data.
Each of the points should now be displayed with a colored square. The color of the
symbol represents the relative concentration of the contaminant at the point. When
displaying colored symbols, it is useful to also display a color legend.
1. In the Project Explorer, right-click on the plumedat scatter point set and
select the Bounding 2D Grid menu command.
Notice that the x and y dimensions of the grid are already defined. The default values
shown in the dialog cause the grid to extend beyond the scatter points by 10% on each
side.
A grid should appear on the screen that just encompasses the scatter point set.
9 Linear Interpolation
First we will try simple linear interpolation.
5. Click OK.
Notice that the grid has been deformed to match the contours. Color shading the entire
surface can provide an even more effective display of the grid.
3. Select the 2D Grid Data item from the list on the left.
4. Make sure the Contours option is checked and select the Options button to the
right of the Contours option.
Notice that the outer part of the grid still has a concentration value equal to zero. When
linear interpolation is performed, the scatter points are triangulated to form a temporary
TIN. A plane equation is computed for each triangle in the TIN and the coefficients of
the plane equation are used to interpolate to points inside the triangle. Therefore, linear
interpolation cannot be performed for grid nodes outside the convex hull of the TIN (the
boundary of the TIN). As a result, these nodes are assigned a value of zero. However,
for this application, a value of zero is appropriate since the concentrations of the scatter
points on the perimeter of the scatter point set are zero.
1. Right-click on the grid in the Project Explorer and select the Import Data
Set… option.
4. Select the Options button to the right of the Inverse distance weighted option.
5. In the Nodal function section at the top of the dialog, select the Constant
(Shepard’s method) option.
The IDW scheme is a simple moving weighted averages scheme. To interpolate a value
at a point, a weighted average of the nearby scatter points is used. The weights are an
inverse function of distance. The closer a scatter point is to the interpolation point, the
greater the weight given to the scatter point.
The next scheme we will try is IDW interpolation with planar nodal functions.
2. Select the Options button to the right of the Inverse distance weighted option.
3. In the Nodal function section at the top of the dialog, select the Gradient plane
option.
As can be seen, the data has been stretched in the horizontal direction. You might want
to experiment with different values for the horizontal anisotropy.
3. Select the Options button to the right of the Inverse distance weighted option.
4. In the Nodal function section at the top of the dialog, select the Quadratic
option.
16 Truncation
Notice that the minimum value listed in the color legend is a negative number. Of
course, this is impossible since there is no such thing as a negative concentration. By
inferring trends, the nodal functions can sometimes project the plume values beyond zero
and into the negative range. This type of error can be easily fixed using truncation.
4. Enter 0.0 for the Min value and enter 150.0 for the Max value.
We don't want the concentrations to go below zero but we will allow the interpolation
scheme to infer a maximum concentration greater than the maximum measured value.
Notice that the concentrations are now mostly zero around the perimeter of the map.
17 Kriging
The last interpolation scheme we will test is kriging. Kriging is based on the assumption
that points that are near each other have a certain degree of spatial correlation, but points
that are widely separated are statistically independent. Kriging is a set of linear
regression routines that minimize estimation variance from a predefined covariance
model.
A curve should appear in the upper window of the Variogram Editor. This curve is
called an experimental variogram. The experimental variogram is found by calculating
the variance in data set values of each scatter point in the set with respect to each of the
other points and plotting the variances versus distance between the points. As can be
seen in the plot of the experimental variogram, the shape of the variogram indicates that
at small separation distances, the variance is small. In other words, points that are close
together have similar data values. With many data sets, after a certain level of
separation, the variance in the data values becomes somewhat random and the variogram
oscillates about a value corresponding to the average variance. However, with
concentration data, many of the points have zero values and this tends to pull the
experimental variogram back down.
3. Enter a value of 25.0 for the Nugget, 1965.0 for the Contribution, 63.0 for the
Range.
At this point there should be a reasonable fit between the model and the first part of the
experimental variogram. The second part is difficult to fit in this case because of the
zero values described above.
Notice that this interpolation scheme results in an upward curvature towards the outside
edges of the grid. If you wanted to correct this, you could add more scatter points with a
concentration of 0.0 in these outlying areas.
2. In the Project Explorer, select the c_linear data set under the 2D Grid Data
folder .
3. Use the up and down keys to switch between the datasets and watch the contours
change.
The currently available data sets are listed in the top of the dialog. Each data set is
numbered from “d1” to “dn”. Data sets are referenced in the mathematical expression
using the “d” numbers. The "c_krig" data set should be numbered "d10" and the
"c_idw_quad" data set should be labeled "d7".
Now that we have computed the difference between two data sets it is helpful to view
some basic statistics related to the new data set.
The resulting dialog displays basic statistics related to the active data set such as
minimum, maximum, and mean data values.
The contour plot now displayed represents the data set we just computed. Any new data
set computed using the Data Calculator is automatically designated the active data set.
20 Conclusion
This concludes the tutorial. Here are some of the key concepts in this tutorial:
• You can interpolate from a sparse set of points to a different set of points
(usually more dense and defining a surface) by using 2D scatter points.
• Linear algorithms do not interpolate beyond the convex hull of the scatter points.
• Anisotropy and truncation can be used to help control the interpolation process.