Vous êtes sur la page 1sur 5

Software Spotlight/ Chunmiao Zheng, Software Editor

SGeMS: A Free and Versatile Tool for Three-


Dimensional Geostatistical Applications
reviewed by Marco Bianchi1 and Chunmiao Zheng2

Introduction Stanford University, and it is considered an evolution of


Most of the data used in ground water studies vary GSLIB. The geostatistical algorithms implemented in
spatially, such as hydraulic conductivity, contaminant SGeMS are taken from the Geostatistics Template Library
concentration, and aquifer thickness. The analysis of spa- (GSTL) (Remy 2001), which is a C11 library containing
tial data and more specifically the estimation of values at an extensive set of geostatistical tools. This library is de-
unsampled locations from a discrete number of measure- signed to be easily extended and readily integrated into
ments at specific locations are an essential part of most software packages. SGeMS is an example of integrating
hydrogeologic investigations. Geostatistical techniques GSTL into a user-friendly software tool with a GUI.
such as kriging and stochastic simulation are widely used
to accomplish these tasks.
The marketplace offers a wide selection of software How We Tested
packages for geostatistical applications. Some of these pack-
Version 2.0 of the SGeMS software was tested on a
ages are limited to two-dimensional data sets, some are quite
laptop computer with a 2.6 GHz Intel Pentium 4 CPU
expensive, while others lack the necessary theoretical rigor.
and 512 MB RAM under Microsoft Windows XP and an-
A very popular collection of geostatistical programs is
other laptop computer with 2.0 GHz Pentium M CPU and
GSLIB developed by two well-known experts in the field of
2 GB RAM running Microsoft Windows Vista. The main
geostatistics (Deutsch and Journel 1998). GSLIB is an open
installation program (8.5 MB) was downloaded from the
source and can be incorporated into other programs or
software authors Web site, and the installation went
expanded to new geostatistical applications. These advan-
smoothly and quickly without any problems. Different
tages made GSLIB a must-have for both professionals and
types of installation (compact, standard, complete, and
researchers involved in geostatistical data analysis. Un-
custom) can be performed. The compact installation with-
fortunately, GSLIB does not have an easy-to-use graphical
out source codes requires 18.7 MB of hard disk space,
user interface (GUI) for input and output operations. The
while the complete installation with source codes, doc-
preparation of input files and compilation of the source
umentation, and the GSTL library uses about 35.8 MB.
codes can in fact be difficult and tedious, especially if
During the evaluation period, no conflicts between
the user is not familiar with the FORTRAN programming
SGeMS and other software applications were experi-
language. This disadvantage can now be overcome by the
enced. The reviewers tested the software by working with
Stanford Geostatistical Modeling Software (SGeMS), which
real-world three-dimensional (3D) data sets.
is freely available on the Internet.
SGeMS was developed by Nicholas Remy with con-
tributions from Alexandre Boucher, Jianbing Wu, and Ting
Li in the Department of Energy Resources Engineering at What We Found
Documentation and Technical Support
1Department of Geological Sciences, University of Alabama, An SGeMS users manual in PDF format can be
Tuscaloosa, AL 35487; (205) 348-3015; fax: (205) 348-0818; downloaded from the authors Web site where an online
mbianchi@bama.ua.edu tutorial for writing commands and scripts, an online devel-
2Corresponding author: Department of Geological Sciences,
opers reference, and an online tutorial for creating a new
University of Alabama, Tuscaloosa, AL 35487; (205) 348-0579; geostatistics plug-ins are also available. The users manual
fax: (205) 348-0818; czheng@ua.edu
Copyright 2008 The Author(s) provides a general overview of the software capabilities; a
Journal compilation 2008 National Ground Water Association. description of the GUI; a simple tutorial to guide through
doi: 10.1111/j.1745-6584.2008.00522.x the steps of importing data, performing ordinary kriging,
8 Vol. 47, No. 1GROUND WATERJanuaryFebruary 2009 NGWA.org
and displaying the results; and a description of some of for technical help are also accessible from a forum-type
the geostatistical estimation and simulation algorithms Web site at the following address: http://sourceforge.net/
available in SGeMS. Since the users manual was written mailarchive/forum.php?forum_name=sgems-users. The re-
in 2004 and refers to a previous version of the software, viewers did not submit any technical questions, but from a
some of the tools that are present in the tested version of surfing of this Web site, it appears that the user can get a
SGeMS are not described in the manual. However, by the prompt reply from the authors or other users within days.
end of 2008, a new users guide will be available (Remy
et al. 2008). At the time this review was written, the re- GUI and Data Import and Management
viewers had no access to the new users guide, but the The GUI of SGeMS is well designed (Figure 1).
books preorder information indicates that it will provide a The program window is divided into three main panels:
step-by-step guide to using SGeMS geostatistical tools, a the algorithms panel, the display panel, and the com-
complete explanation of the underlying theory, and a dis- mand panel, each of which can be activated or deacti-
cussion of how to complete automatic tasks using the em- vated at the discretion of the user. Once a geostatistical
bedded scripting language and how to develop new tool is selected from the algorithm panel, the user has to
algorithms and integrate them into SGeMS. input all the necessary parameters in order to run the
To receive technical support, the user can subscribe to corresponding algorithm. Both reviewers found this task
a mailing list through the authors Web site. The mailing straightforward, thanks to the intuitive design of the
list is intended for seeking help on using SGeMS, getting GUI. The display panel is a true interactive 3D environ-
information about new releases, or exchanging problems or ment where it is possible to have full control of the
issues with the authors and other users. Another mailing visualization through simple movements of the mouse.
list is specifically dedicated to developers of new algo- The graphics can be adjusted by changing color maps
rithms or scripts. Once an e-mail message is submitted, it or by visualizing cross sections or portions of the 3D
is forwarded to all members of the mailing list. Requests volumes resulting from geostatistical estimation or

Figure 1. A screen capture of the SGeMS GUI showing the algorithm panel (on the left), display panel (right) and, command
panel (bottom).

NGWA.org Vol. 47, No. 1GROUND WATERJanuaryFebruary 2009 9


simulation. From the command panel, the user can also histograms and cumulative histograms. Bivariate data can
control the software by typing text commands rather be analyzed using scatter plots, q-q plots and p-p plots.
than using the GUI. It also displays a history of all com- The parameters needed for variogram, cross-variogram,
mands executed. and indicator-variogram calculation and modeling are very
Data can be imported by using the menu option Ob- similar to those used in the code GAMV of GSLIB. Assign-
jects / Load Object or by simply hitting CTRL-L on the ing the required parameters for the experimental variogram
keyboard. Two data formats are supported by default: the computation is intuitive. These parameters include the num-
GSLIB format, which is an ASCII format, and the SGeMS ber of lags, lag separation and tolerance, azimuth, dip angu-
binary format. Details on the GSLIB format can be found lar tolerance, and bandwidth. Several directions can be
in Deutsch and Journel (1998). When importing data with explored at the same time, making it easy to search for ani-
the GSLIB format, the user must specify if the data repre- sotropy. Variogram, covariance function, and correlograms
sent a point set, a normal grid, or a masked grid. A masked can be calculated and plotted (Figure 2). The current ver-
grid is the kind of grid where only some of the cells are ac- sion of SGeMS allows the user to choose among four basic
tive. The steps necessary for importing data sets are easy to variogram models and any positive linear combination.
follow, but some knowledge of the GSLIB format is helpful. These are the nugget effect, the exponential, the spherical,
and the Gaussian models. Once the appropriate model is se-
Geostatistical Tools lected and adjusted to fit the experimental variogram, the
With SgeMS, it is possible to perform a complete ge- user can save a parameter file that summarizes all the char-
ostatistical analysis, including descriptive statistical anal- acteristics (i.e., type, sill, ranges) of the fitted variogram
ysis of univariate and bivariate data, variogram model. This parameter file can be used during the estima-
estimation and modeling, variable estimation, and differ- tion or modeling phase.
ent types of geostatistical modeling and postprocessing. Estimation tools include several types of kriging (sim-
Descriptive statistical analysis of univariate data can be ple kriging, ordinary kriging, universal kriging, and simple
performed by calculating summary statistics and plotting kriging with locally varying mean), indicator kriging, and

Figure 2. A screen capture of the SGeMS GUI showing the controls for variogram modeling.

10 Vol. 47, No. 1GROUND WATERJanuaryFebruary 2009 NGWA.org


simple and ordinary cokriging. A 3D grid must be first de- and variograms. Output data from estimation and simula-
fined in order to perform the kriging interpolation. This tion algorithms can be saved in the same two formats as
task can be done by selecting Objects / New grid from used for importing data: the GSLIB ASCII format and
the menu option or by simply hitting CTRL-N on the key- the SGeMS binary format.
board. In the grid creation dialog, the user must specify
the dimensions of the grid, the coordinates of the origin
(the lower left corner), and the dimensions of each grid What We Liked
cell. For testing purposes, the reviewers estimated the dis- SGeMS provides a comprehensive set of geostatisti-
tribution of a spatial variable in a 31 3 31 3 63 grid using cal tools wrapped in an easy-to-use GUI. The number of
different types of kriging algorithms. All the algorithms geostatistical algorithms that are available is impressive.
tested were stable and computationally efficient. These include both classical kriging algorithms, instru-
SGeMS provides a comprehensive selection of algo- ments for multivariate kriging (co-kriging), indicator
rithms for stochastic simulation. In particular, SGeMS kriging, and several types of stochastic simulation algo-
provides algorithms for both variogram-based stochastic rithms. SGeMS is the only software available that pro-
simulation (e.g., sequential Gaussian simulation) and vides algorithms for multiple-point statistics simulation.
multiple-point simulation (e.g., single normal equation The GUI is sufficiently intuitive to use and parame-
simulation and filter-based simulation). The following ters input operations are easy to follow. Moreover, the
geostatistical simulations can be performed: sequential software alerts the user with error messages whenever an
Gaussian simulation, sequential indicator simulation, se- input parameter is not correctly entered. After running an
quential Gaussian cosimulation, sequential indicator estimation or simulation algorithm, results are directly vi-
cosimulation, direct sequential simulation, single normal sualized in the display panel.
equation simulation, and filter-based simulation. All the Another attractive feature is the possibility of writing
necessary parameters to run these algorithms can be scripts and geostatistical plug-ins. Running the program
specified in the algorithm panel. The reviewers tested in batch mode can save a considerable amount of time es-
only the algorithms for sequential Gaussian simulation pecially if the user needs to repeat the same operation
and sequential indicator simulation and, as for the kriging many times as, for instance, during sensitivity analyses.
algorithms, no problems were encountered. The fact that the software can be augmented by writing
geostatistical plug-ins makes it possible to customize and
Running the Software in Batch Mode and Expandability update SGeMS easily. The mailing lists for technical sup-
Each of the operations performed in SGeMS by port can also help both advanced and novice users to ex-
mouse clicks can also be performed by typing lines of change experience and problems.
commands in the command panel. The advantage is that The reviewers also liked the fact that, even though
it is possible to include a list of commands in a script and the GUI makes parameter input operations easy to follow,
let the program execute them sequentially in batch mode. the user still must know the theoretical basis of geostatis-
This is particularly important if the user needs to repeat tics in order to use SGeMS effectively. For example,
the same task (e.g., ordinary kriging) multiple times with some software packages allow the user to perform kriging
different input parameters (e.g., search radius and/or without calculating the variogram by using default pa-
number of conditioning data). Scripts can be created us- rameters of doubtful practical and theoretical validity.
ing an editor that can be activated from the menu options. This is not the case with SGeMS. The user must have at
To perform repetitive actions, SGeMS uses the Python least a basic knowledge of geostatistical concepts to run
scripting language. More details and examples about the geostatistical tools that are available.
how to create scripts in SGeMS can be found at the follow-
ing Web address: http://sgems.sourceforge.net/doc/sgems_
scripts.html. What We Did Not Like
New geostatistical algorithms can be added to A noticeable limitation of the visualization panel is
SGeMS. These must be written in the form of generic that it is not possible to visualize Cartesian axes and label
plug-ins in the C11 programming language. Plug-ins data points or import any kind of base map in either raster
can be compiled separately and then called from the main or vector formats. These features would have certainly
program when needed. Two examples of incorporating helped the user in localizing data and interpolating results
new geostatistical tools to SGeMS are presented in Li more easily on the display. It is also not possible to con-
and Caers (2008) and Wu et al. (2008). A tutorial for cre- trol some graphical aspects of output displays such as his-
ating a SGeMS geostatistics plug-in can be found at the tograms and variograms (e.g., colors, lines widths, fonts).
following Web address: http://sgems.sourceforge.net/doc/ Because of these limitations, the graphical outputs pro-
geostatistics_plugin_howto.html. duced by SGeMS may need to be processed with other
graphical softwares for publications and reports.
Output The downloadable users manual needs to be updated.
The content in the display panel can be exported in Many of the geostatistical tools currently available in ver-
PNG, PS, BMP, and PPM files. The same formats are sion 2.0 of SGeMS are not described and therefore they
available for exporting specific graphs such as histograms cannot be used unless the user has an advanced knowledge
NGWA.org Vol. 47, No. 1GROUND WATERJanuaryFebruary 2009 11
of these geostatistical algorithms. It is a welcome develop- How to Obtain the Software
ment that a new users manual in the form of a reference SGeMSs installation file, source code, and users
book will become available by the end of 2008 that will manual can be downloaded freely from the authors Web
probably provide a more complete and up-to-date descrip- site at http://sgems.sourceforge.net/. The software is dis-
tion of the features included in SGeMS. Nevertheless, the tributed under the GNU General Public License.
reviewers hope a new downloadable manual will be made
available soon to keep the open source software up to date.
Our Mission
Overall The goal of Software Spotlight is to help readers
Once in while, one might discover a rare gem on the identify well-written, intuitive, and useful software. Inde-
Internet that is an absolute delight to have. SGeMS is pendent reviewers from government, industry, and aca-
such a discovery for the reviewers. It is free and yet few, demia try out full working versions of software packages
if any, commercial or open source software can match its and provide readers with a concise summary of their ex-
capabilities. The number of geostatistical tools included periences and opinions regarding the capability, stability,
in SGeMS is very impressive. SGeMS combines an easy- and ease of use of these packages.
to-use GUI with a theoretical rigor and expandability that Software Editor Chunmiao Zheng can be reached
will please both practitioners and researchers involved in at the Department of Geological Sciences, University
geostatistical data analysis from routine to very sophisti- of Alabama, Box 870338, Tuscaloosa, AL 35487;
cated. According to the users manual, SGeMS was czheng@ua.edu.
designed with the twofold goal of providing a user-
friendly software tool with a wide range of geostatistical
algorithms and an evolving software package whose capa-
bilities can be conveniently augmented. The reviewers be-
References
Deutsch, C.V., and A.G. Journel. 1998. GSLIB, Geostatistical
lieve these goals have been fully accomplished. Software Library and Users Guide, 2nd ed. New York:
Oxford University Press.
Li, T., and J. Caers. 2008. Solving spatial inverse problems
Ranking using the probability perturbation method: An S-GEMS
implementation. Computers & Geosciences 34, 1127
The reviewer ranked the softwares capability, reli- 1141.
ability, ease of use, and technical support on a scale of 1 Remy, N.N. 2001. GSTL: the geostatistical template library in
(worst) to 5 (best). The following rankings are the aver- C++. M.S. thesis, Stanford University, Stanford, California.
Remy, N.N., J. Wu, and A. Boucher. 2008. Applied Geostatistics
age of the scores from both reviewers: with SGeMS: A Users Guide. Cambridge, UK: Cambridge
Capability: 4.7 University Press.
Reliability: 4.5 Wu, J., A. Boucher, and T. Zhang. 2008. A SGeMS code for
pattern simulation of continuous and categorical variables:
Ease of use: 4.0 FILTERSIM. Computers & Geosciences 34, no. 12: 1863
Technical support: 4.5 1876.

12 Vol. 47, No. 1GROUND WATERJanuaryFebruary 2009 NGWA.org

Vous aimerez peut-être aussi