OUTLINE
1. Data visualisation
3. Data declustering
8. Back transformation
1. Data visualization
EXERCISE 1
Remind to constantly safe your work when you progress through this course by
selecting File Save Project.
2 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
To see the drillholes, select Objects tab, expand the Objects tree, set visible the
Nickel database and choose the element that you would like to see.
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 3
Workshop 2
4 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 2
Calculate statistical measures for nickel, cobalt, and iron. Prepare histograms
for the original and for log transformed data.
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 5
Workshop 2
(v) Plot the histogram using a log scale. Click on Display tab and select
log scale.
6 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Histogram of Nickel
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 7
Workshop 2
Histogram of Iron
8 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Histogram of Cobalt
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 9
Workshop 2
3. Data declustering
A declustering program (DECLUS) has been supplied for this exercise. This
program calculates declustered global means and variances by one of three
methods (random pick, weighted, or nearest neighbour) from any spatially
located dataset. Two output files are created:
33
36 37
33 16
36
34 11
28
23
14 13
29
6 37
9
10 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Weighted Declustering
33 34 36
s=2 18 s=2 22
34 29
4
37 33
36
s=5 s=1 s=1
3 16
3
34 11
28
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 11
Workshop 2
33
36 37
33 16
36
34 11
28
23
14 13
29
6 37
9
C = 14 S = 14
Sample weights (w) = 1/C = 1/14
S
Declustered mean (m*) = wivi = 25.64
i 1
S
Declustered variance (2) = wi ( vi m* )2 =77.2
i =1
12 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
The DECLUS program requires the data file in GEOEAS format. A parameter file
is required (default is declus.par).
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 13
Workshop 2
Nickel Deposit
6
X
Y
Z
Nickel
Cobalt
Iron
106750.25 40062.35 401.5088 0.93 0.082 44.5
106795.73 40036.09 402.8 1.03 0.093 47.8
106795.73 40036.09 401.8 0.82 0.07 47.9
106795.73 40036.09 400.8 0.79 0.106 48.0
106835.56 40013.1 404.5024 0.76 0.054 48.7
106835.56 40013.1 403.5024 0.82 0.048 44.9
106835.56 40013.1 402.5024 0.71 0.077 50.2
106835.55 40013.1 401.5 0.72 0.223 48.7
106835.55 40013.1 400.5 0.78 0.327 48.4
106753.1 40111.42 403.5 1.31 0.1 48.12
106753.1 40111.42 402.5 1.31 0.1 48.12
START OF PARAMETERS:
../01-data/nickel.dat \ data file
1 2 3 4 \ ix,iy,iz,ivr columns
1 10 \ cct ncat
0.0 999 \ tmin,tmax
2 10000 1.15 \ dtype, number, confidence
0 11 \ indicator switch & #cut-offs
.1 .3 .5 .7 1.0 1.3 2.0 3.0 4.5 8.0 12 \ indicator cut-offs
report.out \ declustered stats output file
declus.out \ declustered data output file
125.0 175.0 1.0 \ xcell, ycell, zcell
1967 \ random number seed
14 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 15
Workshop 2
(iii) A Command Prompt window appears asking for a parameter file; just
accept the standard parameter file.
16 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 3
Determine the declustered mean and variance for nickel using the nickel.dat file.
Declustered Mean
X 50m 75m 100m 125m 150m 175m 200m 225m 250m
Y
50m
75m
100m
125m
150m
175m
200m
225m
250m
Declustered Variance
X 50m 75m 100m 125m 150m 175m 200m 225m 250m
Y
50m
75m
100m
125m
150m
175m
200m
225m
250m
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 17
Workshop 2
EXERCISE 4
(a) Determine the normal scores using NormalScore.par.
(i) Select the option trans in the Utilities algorithm tab to do the normal score
transformation.
(ii) Load the parameters for this algorithm. Click Load in the parameter tab and
then browse for NormalScore.par in C:\Short_Course\Par_Files\Exercise4\.
The parameters for the normal score algorithm are divided into three tabs.
Data tab:
Object name: name of the object (Nickel).
18 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Source tab:
Target tab:
Target distribution: Gaussian, Log Normal,
Uniform, Non Parametric (Gaussian).
(b) Calculate and plot the histogram of the normal scores. (Recall Exercise 2:
now choosing the just created Normal score property)
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 19
Workshop 2
20 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 5
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 21
Workshop 2
(ii) Select Compute variograms from scratch in the Task selection; choose the
Nickel object and NScore (Nickel_NScore) as the head and tail property.
22 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
(iii) Define the Variogram parameters as following and the click on the Next
button.
Number of Lags 20
Lag separation 25
Lag tolerance 12.5
Number of 2
directions
Dip 0
Tolerance 20
Bandwidth 50
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 23
Workshop 2
(v) Save the Variogram model selecting Save Variogram Model option in the
File menu.
24 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 25
Workshop 2
Number of Cells
X Direction 200
Y Direction 200
Z Direction 2
Cell Size
in X 5
in Y 5
in Z 1
Origin Coordinates*
Ox 106750
Oy 40000
Oz 403
* Lower left corner
General:
26 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Data:
Variogram:
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 27
Workshop 2
EXERCISE 6
(a) Create a single unconditional simulation using parameter file
Unconditional_SGS.par located in C:\Short_course\Par_Files\Exercise6
Visualize the simulation output (refer to exercise 1).
(b) Create a single simulation conditioned to the normalized data using
parameter file Conditional_SGS.par located in C:\Short_course\
Par_Files\ Exercise6. Visualize the simulation output (refer to exercise 1).
(c) Create a single simulation conditioned to the normal scores using one
spherical structure with c0 = 0.0, cc = 1.0, amax = 50m, amed = 50m, amin
= 3.6m.
(d) Create a single simulation conditioned to the normal scores using one
spherical structure with c0 = 0.9, cc = 0.1, and the same geometric
anisotropy as used in (c).
Example of simulations for Exercise 6 of the mineral deposit
(a) (b)
28 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 6 Extended
(b) Create a single simulation conditioned to the normal scores using the
following variogram parameters.
Example of results:
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 29
Workshop 2
In this step, the grid object generated in the previous step will be used
(Simulation Grid).
General:
30 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Data:
Variogram:
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 31
Workshop 2
EXERCISE 7
32 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
GSGS (10x10x1)
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 33
Workshop 2
8. Back transformation
The SGS realizations created in Exercise 6 were of the normal scores and need to
be back transformed. Back transformation of the simulated normal score values
will be done using the inversed procedure that was used to Normal transform
the data.
(i) Select the option trans in the Utilities algorithm tab to do the normal score
transformation.
(ii) Load the parameters for this algorithm. Click Load in the parameter tab and
then browse for backSGS1.par in C:\Short_course\Par_Files\Exercise8.
The parameters for the normal score algorithm are divided into three tabs.
Data tab:
Object name: name of the object
(Simulation Grid).
34 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Source tab:
Target tab:
Source distribution: Gaussian, Log Normal,
Uniform, Non Parametric (Non Parametric).
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 35
Workshop 2
EXERCISE 8
(a) Back transform the single SGS realisation generated in Exercise 6(b) using
parameter file backSGS1.par.
(b) Back transform the 10 SGS realisations generated in Exercise 7(c) using
parameter file backSGS10.par.
36 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 37
Workshop 2
START OF PARAMETERS:
../08-backtr/sgsims.btr \ file with data
4 \ variable column
-999.0 999.0 \ trimming limits
gamsim.out \ file for variogram output
10 \ number of realisations
200 106750 5.0 \ nx, xmn, xsiz
200 40000 5.0 \ ny, ymn, ysiz
2 403 1.0 \ nz, zmn, zsiz
100 \ number of lags
1 0 0 \ ixinc, iyinc, izinc
1 \ covariance measure
1 \ input file format
38 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
To run GAMSIM, select Run Scripts from the Scripts menu and browse the
GAMSIM.py located in the folder C:\Short_Course\Scripts. Use the same
Command Prompt window to run VMODEL.
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 39
Workshop 2
EXERCISE 9
Calculate E-W variograms of the SGS normal scores from exercise 7(c) using
GAMSIM (gamsim.par). Produce the variogram of the data using VMODEL
(vmodel.par). Compare the variograms from the 10 SGS realisations with the
data variogram model by opening spreadsheet gamsim.xls.
40 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 41
Workshop 2
START OF PARAMETERS:
declus.out \ declustered sample file
4 \ variable column
5 \ weight column
0 98 \ trimming limits
../08-backtr/sgsims.btr \ simulation file
5 5 \ number of columns and var column
200 200 2 \ number of nodes nx,ny,nz
10 \ number of realisations
simtest2.out \ output file
17 \ number of cut-offs
0.35 .45 .55 .65 .75 0.85 0.95 1.05 1.15 1.25 1.35 1.45 1.55 1.65
1.75 1.85 1.95 2.05 \ cut-off grades
Mean grade
0.844 0.829 0.817 0.835 0.827 0.822 0.841
To run SIMTEST, select Run Scripts from the Scripts menu and browse the
SIMTEST.py located in the folder C:\Short_Course\Scripts.
42 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 10
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 43
Workshop 2
Input
Properties: Realizations to be
considered by the postsim algorithm.
44 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Output
The selected check boxes are going to be done all at once. There will be created
new properties in the grid object corresponding to the selected options.
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 45
Workshop 2
EXERCISE 11
(a) Determine the E-type (average), M-type (median) and probabilities using
the 10 SGS realisations. Use the parameter file postsim.par located in the
folder C:\Short_course\Par_Files\Exercise11.
(b) Visualise E-type, M-type and probabilities.
(c) Look at the statistics and histogram of the E-type distribution and
compare to the sample data (Refer Exercise 2).
E- Type
M- Type
46 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 47
Workshop 2
START OF PARAMETERS:
../08-backtr/sgsim.btr \ simulation file
1 \ file format
5 \ column with simulation
0 99 \ trimming limits
200 200 2 \ number of nodes x,y,z
106750 40000 403 \ x,y,z origin
5.0 5.0 1.0 \ node spacing x, y, z
1 \ number of realisations
106752.5 40002.5 403 \ upscaled model origin x,y,z
10.0 10.0 1.0 \ x,y,z cell dimensions
100 100 2 \ x,y,z number cells
1.0 \ cut-off of interest
reblock1.blk \ output file
1 \ file format
48 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 12
To run REBLOCK, select Run Scripts from the Script menu and browse
Reblock.py located in C:\Short_Course\Script\.
Reblock the single SGS realisation generated in Exercise 6(b) for the following
cell sizes:
10m x 10m x 1m (x, y, z) (reblock1.par)
25m x 25m x 1m (reblock2.par)
25m x 25m x 2m (reblock3.par)
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 49
Workshop 2
2 Step: Define the model name and dimensions. Note that for each reblocked
model the number of cell and cell size are going to change.
50 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 51
Workshop 2
5x5x1 10 x 10 x 1
25 x 25 x 1 25 x 25 x 2
52 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 53
Workshop 2
54 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
noct: number of original data to use per octant. If noct 0 then an octant search
is not used. If noct 1 then the ndmax parameter is overridden.
zcode: zone code to simulate.
tcut: assigning high grade values a maximum value. Values greater than tcut is
assigned the value of tcut.
radius: search radius.
sang1, sang2, sang3, sanis1, and sanis2: define the 3-D search anisotropy of the
search ellipsoid (see notes on GSLIB).
nst: number of variogram structures. If nst > 1 then the following parameters
need to be defined for each structure: c0, it, aa, cc, ang1, ang2, ang3, anis1, and
anis2.
c0: isotropic nugget variance.
it: variogram type; 1= Spherical; 2 = Exponential; 3= Gaussian.
aa: variogram range.
cc: variogram spatial variance.
ang1, ang2, ang3, anis1, and anis2: define the 3-D anisotropy of the
variography ellipsoid (see notes on GSLIB).
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 55
Workshop 2
START OF PARAMETERS:
nickel.dat \ data file
1 2 3 6 0 7 \ x,y,z,vr,wt,zone
-1.0e21 1.0e21 \ trimming limits
1 \ 0=transform the data, 1=don't
NORM_SC.trn \ output transformation table
0.00 5.95 \ min and max data values
2 2.5 \ lower tail option, parameter
4 5.0 \ upper tail option, parameter
dbsim1.blk \ output file for realisations
567989 \ random number seed
10 \ number of realisations
106760 107735 \ xmin,xmax: model limits in X
40010 40985 \ ymin,ymax: model limits in Y
403 404 \ zmin,zmax: model limits in Z
1 \ # of block support sizes (only 1)
25 25 1 \ block dimensions
5 5 1 \ block discretisation
model25a.out \ model file for simulation
1 2 3 4 \ x,y,z,zone
10 30 \ min,max data for simulation
6 \ max simulated blocks to use
0 \ max per octant (0-> not used)
1 \ zone code
100.00 \ top cut
600.0 \ maximum search radius
0.0 0.0 0.0 1.0 0.02 \ sang1,2,3,anis1,2
2 0.18 \ nst, nugget effect
1 40.0 0.32 \ it, aa, cc
0.0 0.0 0.0 1.0 0.09 \ ang1,ang2,ang3,anis1,anis2
1 400.0 0.50 \ it, aa, cc
0.0 0.0 0.0 1.0 0.02 \ ang1,ang2,ang3,anis1,anis2
56 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 13
To run DBSIM, select Run Scripts from the Script menu and browse Dbsim.py
located in C:\Short_Course\Script\.
Create a single block simulation (25 x 25 x 1) conditioned to the nickel data using
parameter file dbsim1.par.
To import the block model run the script Load_dbsim.py located at C:\Short_Course\
Script. Use the same model dimensions as used in Exercise 12 but remind to change the
name of the grid.
Number of Cells
X Direction 40
Y Direction 40
Z Direction 2
Cell Size
in X 25
in Y 25
in Z 1
Origin Coordinates*
Ox 106750
Oy 40000
Oz 403
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 57
Workshop 2
25 x 25 x 1
58 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
Global resources will be calculated with the GLORES program. A parameter file
is required (default is glores.par). All required files are located in
C:\Short_Course\Exe\Glores
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 59
Workshop 2
START OF PARAMETERS:
../08-backtr/sgsim.btr \ model file
1 \ file format(0=GEOEAS;1=IJK)
5 \ block grade column
0 \ block volume column
0 \ block SG column
glores1.txt \ output file
11 \ number of cut-offs
.5 .6 .7 .8 .9 1.0 1.1 1.2 1.3 1.4 1.5 \ cut-offs grades
1.16 \ default specific gravity
25 \ default block volume
Cutoff Vol Above Ton Above Gr Above Vol Below Ton Below Gr Below
0.500 1825900.0 2118043.9 0.853 174100.0 201956.0 0.442
0.600 1608100.0 1865395.9 0.894 391900.0 454604.0 0.501
0.700 1331925.0 1545033.0 0.947 668075.0 774967.0 0.559
0.800 1011125.0 1172905.0 1.011 988875.0 1147095.0 0.620
0.900 701800.0 814088.0 1.083 1298200.0 1505912.0 0.673
1.000 448875.0 520695.0 1.161 1551125.0 1799304.9 0.718
1.100 258275.0 299599.0 1.249 1741725.0 2020400.9 0.753
1.200 123625.0 143405.0 1.368 1876375.0 2176594.9 0.781
1.300 68625.0 79605.0 1.472 1931375.0 2240394.9 0.794
1.400 38100.0 44196.0 1.577 1961900.0 2275803.9 0.802
1.500 17600.0 20416.0 1.715 1982400.0 2299583.9 0.809
60 Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications
Workshop 2
EXERCISE 14
Risk Analysis for Ore Reserves and Strategic Mine Planning: Stochastic models and applications 61