Global settings

A number of environment variables can be set to control the behaviour of mGstat. The environment variable can be set in the operating system, or directly through Matlab using:

setenv('ENV_VAR_NAME','ENV_VAR_VALUE');

MGSTAT_VERBOSE_LEVEL

The amount of information printed to the screen when using mGstat can be controlled by the setting the MGSTAT_VERBOSE_LEVEL. By default it is set to

setenv('MGSTAT_VERBOSE_LEVEL','1')

A higher number increase, while a smaller number reduce the information printed to screen.

SEMIVAR_DEF

There are different definitions of semivariogram models. To make use of the definions used by GSTAT and S-GeMS (and GSLIB) set the following:

setenv('SEMIVAR_DEF','GSTAT')
setenv('SEMIVAR_DEF','SGeMS')

The default is to use SGeMS definitions. See also “Modeling spatial correlation”.

GSTLAPPLIHOME

The installation directory of S-GeMS can be given by the variable: GSTLAPPLIHOME This is used to find the executable file for launching S-GeMS.

SGEMS_DEV

If you are using the development version of S-GeMS you should set this variable to 1:

setenv('SGEMS_DEV','1')

The default option is to you the stable version of S-GeMS, and then this variable does not have to be set.

Note that mGstat may not yet support the latest development version of S-GeMS, so it is not recommended to use the development version for normal users.