Sage 2001 Software
Sage 2001 Software
Sage 2001 Software
Environment for
Variography
Isaaks & Co.
205 E. 3rd Ave.
Suite 300
San Mateo, CA 94401
SAGE2001
Copyright 1999
Isaaks & Co.
San Mateo, California 94401
Proprietary Notice
Isaaks & Co. owns both this software program and its documentation.
Both the program and the documentation are copyrighted with all the
rights reserved by Isaaks & Co.
See the License Agreement and Limited Warranty for complete
information.
Copyright 1998 Isaaks & Co.
205 East Third Ave.
Suite 300
San Mateo CA 94401
Phone (650) 655-9051
Fax (650) 655-9443
Email ed@isaaks.com
http://www.isaaks.com
Table of Contents
1.0 INTRODUCTION. ....................................................................... 8
2.0 GETTING STARTED ................................................................. 10
2.1 Installing the Demonstration Version of SAGE2001 ................. 10
2.2 Authorizing SAGE2001 for Unlimited Use............................... 11
2.3 Transferring the SAGE2001 Authorization License from One
Computer to Another. ...................................................................... 12
3.0 CALCULATING SAMPLE VARIOGRAMS............................... 14
3.1 SAGE2001 Coordinate System and Definitions. ....................... 14
3.2 Importing Data Files................................................................. 15
3.2.1 The SAGE2001 File Format............................................... 15
3.2.2 Importing the Data File...................................................... 16
3.2.3 Import File Delimiters. ...................................................... 16
3.2.4 The Import File Grid.......................................................... 16
3.2.5 Adding Column Headers.................................................... 17
3.2.6 Setting the Attribute Type.................................................. 17
3.3 Opening Existing SAGE2001 Files............................................ 18
3.4 Selecting Data Attributes and Constraints. ................................ 18
3.4.1 Selecting Attributes for the X,Y, and Z Coordinates. .......... 18
3.4.2 Selecting the Sample Variogram Attribute.......................... 19
3.4.3 Calculating a Down-The-Hole Sample Variogram. ............. 19
3.4.4 Specifying Additional Constraints:..................................... 20
3.5 Azimuths, Dips, Lags, and Tolerances. ..................................... 21
3.5.1 Directional Increments....................................................... 22
3.5.2 Lag Specifications. ............................................................ 22
3.5.3 Bandwidths. ...................................................................... 22
3.5.4 Tolerances......................................................................... 23
3.5.5 Customizing Azimuths, Dip Angles, and/or Lag Distances. .. 23
3.6 Sample Variogram Estimators, Transforms, and Output Files.... 24
3.6.1 Title. ................................................................................. 24
3.6.2 Estimators: ........................................................................ 25
3.6.3 Cutoff................................................................................ 26
3.6.4 Log Transform................................................................... 26
3.6.5 % of Samples..................................................................... 26
3.6.6 Output Files....................................................................... 26
4.0 MODELING SAMPLE VARIOGRAMS ...................................... 27
4.1 An Introduction to Variogram Modeling Using SAGE2001. ..... 27
4.1.1 Variogram Model Parameters by Least Squares.................. 27
4.1.2 Rotation Conventions. ....................................................... 28
4.2 Setup Parameters...................................................................... 30
4.2.1 Input File........................................................................... 30
4.2.2 Output Files....................................................................... 30
4.2.3 Project Title....................................................................... 31
5
7.5.4
7.5.5
7.5.6
7.5.7
7.5.8
1.0
INTRODUCTION.
10
2.
3.
4.
11
5.
Then either email, telephone, or fax the Code Entry Number and
the Computer ID number to:
(email)
ed&isaaks.com
(fax)
(650) 558-9443 fax
(Telephone)
(650) 558-9051
or mail to:
Isaaks & Co.
205 East 3rd Ave.,
Suite 300
San Mateo, CA, 94401-4052
6. Isaaks & Co. will send you an Authorization Code upon receipt of
payment. Re-open the Unlock Form as shown on the previous page
and enter the Authorization Code in the text box. Click OKAY and
the program will be authorized for unlimited use.
For the most recent price list etc., contact Isaaks & Co. as described
above or check the SAGE2001 web page at:
http://www.isaaks.com
Note that the complete version of SAGE2001 and this Users Manual can
also be downloaded from this web page.
12
4.
7.
8.
13
14
17
Finally, click the NEXT button, and SAGE2001 will create a new file.
The new file will be named with the same prefix as the import file, but
will have the SAG suffix appended. For example, the imported file
robson.dat (Figure 2) would be written to disk as robson.sag.
East has been selected from the list. SAGE2001 will respond by
displaying the maximum and minimum values of the attribute in the
text boxes to the right. A new maximum and/or minimum may be
specified by typing over the displayed values.
Y-Coordinate. Similarly, select the appropriate attribute from the
drop down list. Specify a new maximum or minimum if required.
Z-Coordinate. Similarly, select the appropriate attribute from the
drop down list. Specify a new maximum or minimum if required.
20
Figure 6: Specifying Azimuths, Dips, Lags, and other tolerances for the
computation of directional sample variograms.
SAGE2001 is designed to calculate sample variograms in many directions
simultaneously. To facilitate the entry of the many directional parameters,
SAGE2001 requires the user to enter only the angular increments and one
global unit lag distance. For example, a directional increment of 45
degrees specified for the azimuth will cause SAGE2001 to calculate
sample variograms in the directions given by azimuths 0, 45, 90, 135,
180, 225,270, and 315 degrees.
21
3.5.4 Tolerances.
0.0 and 0.50. This lag will be initially applied to all directions.
Angular. Type in the required angular tolerance in degrees. For
example, Figure 6 shows an angular tolerance of 22.5 degrees.
The tolerance angle is applied both horizontally and vertically
forming a three dimensional cone whose axis is coincident with the
separation vector.
3.6
Sample Variogram Estimators, Transforms, and
Output Files.
3.6.1 Title.
Type in the name of the data or project name. This title will appear in the
reports and plots.
24
3.6.2 Estimators:
Click on the drop-down-list-box and select one of the following sample
variogram estimators:
(h) =
1 N (h )
[Z i Z i +h ] / Z2
2N(h) i =1
(1)
1
2 N (h)
N (h)
[Z
Z i + h ]2 /[(Z i + Z i + h ) / 2]2
(2)
i =1
1 N(h)
(h) = 1.0 (Z i Z i+h + m ( h ) m ( +h) ) / ( h ) ( +h )
N (h) i =1
(3)
where the tail mean m( h ) is given by:
N ( h)
m( h ) =
1
N (h)
(4)
i =1
m( + h ) =
1
N (h)
i+h
(5)
i =1
The Indicator Estimator. This estimator has exactly the same form
as the standardized traditional estimator given above except that the
variable Z i has been transformed to an indicator variable as follows:
25
1 if Z i cutoff
Ii =
0 otherwise
i = 1, N
(6)
3.6.3 Cutoff.
Specify the required cutoff to define the indicator transform as defined in
the equation above.
3.6.4 Log Transform..
.Click this check box if you wish to compute a sample variogram of Y
using the transform Yi = ln( Z i ) i = 1, N
3.6.5 % of Samples.
This box can be used to select a random subset of the input data. For
example, to select all of the samples, set the % of samples to 100. A value
of 50 will select approximately 50 percent of the available sample data.
Note that the samples are selected randomly. This option is useful for
very large data sets such as blast holes that may contain as many as
300,000 or more records.
3.6.6 Output Files.
SAGE2001 writes 3 files summarizing the calculated sample variograms.
These are:
Report. The report file written by SAGE2001 is an ASCII file with
the suffix rpt. This file is an excellent documentation file that
summarizes both the input parameters and the output lag statistics.
This file may be easily printed and filed if a permanent record of the
sample variogram calculations is required
Autofit. This file is written by SAGE2001 for the purposes of
modeling the sample variograms. It is an ASCII file ending with the
suffix pli and contains sample variogram data. The file is read by
SAGE2001 at the time of modeling.
Plot. This is also an ASCII file written by SAGE2001. The file is
used to display the sample variograms on the computer screen. The
file suffix is plt.
The user must supply file names for all three files before SAGE2001 will
calculate the sample variograms. Click the Finish button to begin the
sample variogram calculations.
26
C0 -- the nugget
C1 the coefficient of the first nested structure.
3.
4.
5.
6.
7.
8.
9.
'
'
'
'
'
'
27
The right and left hand rules are unambiguous, simple to understand,
and easily applied. For example, to rotate around the Z axis according to
the right hand rule, imagine grabbing the Z axis with the right hand so
that the thumb is pointing in the direction of increasing Z values. Then
the fingers will be pointing in the direction of a positive right hand
rotation. A negative right hand rotation angle indicates a rotation in the
opposite direction. Note that a positive right hand rotation angle is the
same direction as a negative left hand rotation angle around the same
axis.
28
29
and kept as a permanent record of the variogram model and the input
parameters to SAGE2001.
4.2.3 Project Title.
This text box will contain the project or report title specified previously in
the sample variogram screen. The user has the option to change the title
by typing in a new one.
4.2.4 Excluding Sample Variogram points.
Minimum # pairs. Type in the minimum number of pairs each
sample variogram point must have to be considered in the modeling
process. In other words, any sample variogram point with fewer pairs
than the value specified here will not be considered in determining
the variogram model parameters.
Maximum Drift. The drift is defined as the difference between the
head mean and the tail mean (see Equations 4 and 5). Any sample
variogram point with an absolute drift value exceeding the value
specified here will not be considered in determining the variogram
model parameters..
4.2.5 Weighting Scheme.
Select the weighting scheme from the drop-down-list box. The options
are:
No weighting.
Weighting by number of pairs.
Weighting by the inverse number of sample variogram points per
direction. SAGE2001 models all of the directional sample
variograms simultaneously. Thus, this option may be useful if some
of the directional sample variograms contain many more sample
points than others.
4.2.6 Structure Types.
SAGE2001 will model the sample variograms using either one or two
nested structures. Click the appropriate option box to select either one or
two structures. Select each Structure Type from the drop-down-list-box.
If two structures are required, then two structure types must be selected.
The structure types are:
The spherical model.
The exponential model with practical range P :
(h) = 1.0 e -3h/P
(7)
The exponential model with the traditional range T :
31
(8)
Note that 3T = P
Also, note that the first edition of GSLIB (Deutsch and Journel) defined
the exponential model given by (8), but the second edition, defines the
exponential model given by (7).
option button and define his own custom rotation algorithm.. The
standard rotation conventions are as follows:
SAGE2001 (ZYX, RRR). This rotation algorithm provides a
variogram model that is compatible with the SAGE2001 kriging and
simulation software.
MEDSYSTEM. (ZXY, LRL) This rotation algorithm will provide
a variogram model compatible with the Medsystem geostatistical
software. However, the Medsystem also provides several rotation
algorithms from which the user must select one. One of these options
is called the GSLIB option. Unfortunately, this option has been
mislabeled or it has been implemented incorrectly. The Medsystem
implementation is (ZXY, LRL) while GSLIB is actually (ZXY,
LRR). Thus, to correctly use SAGE2001 variogram models in the
MEDSYSTEM geostatistical software, select the GSLIB option in
the Medsystem software and the MEDSYSTEM (ZXY, LRL)
option in the SAGE2001 software.
Vulcan by Maptek. (ZXY, LRL). This rotation algorithm will
provide a variogram model compatible with the Vulcan geostatistical
software. Maptek has implemented GSLIB in their software
package. However, they made a slight change to the GSLIB rotation
algorithm by changing the direction of the rotation around the third
rotation axis.
GSLIB
(ZXY, LRR) This rotation algorithm will provide a
variogram model compatible with the GSLIB geostatistical software.
Many who read this may think that the rotation algorithm for GSLIB
is (ZXY, LRL). We agree that the written GSLIB documentation
certainly appears to suggest the rotation algorithm is (ZXY, LRL).
However, the documentation is not clear and it turns out that all
GSLIB software actually executes the (ZXY, LRR) rotation
algorithm. This appears to be an oversight in GSLIB.
three letters in the brackets, for example ZYX. The first letter
indicates the first rotation axis, the second letter indicates the second
rotation axis and the third letter, the third rotation axis. The second
group of 3 letters, for example LRL indicates the rotation directions.
The first letter indicates either a left L or right R hand rotation
around the first rotation axis. The second letter indicates either a left
L or right R hand rotation around the second rotation axis. The third
letter indicates either a left L or right R hand rotation around the
third rotation axis.
33
35
36
38
5.0
39
The Print Report window enables the user to view the report on screen
or to print the report. Reports may be printed one page at a time or by all
pages at once.
5.2.1 Viewing the Report on Screen.
To review the report on screen, Click the Windows maximize button in
the extreme upper right corner of the window. This will maximize the
window within your computer screen. To increase the size of the report
page shown in the window, select the magnification factor from the
Zoom drop-down-list-box, or type in the required magnification factor
directly.
A new page can be selected by clicking the tiny arrow heads at each end
of the horizontal slider bar. Clicking the left arrow displays the previous
page in the report while a click on the right arrow head displays the next
page.
5.2.2 Printing the Report.
To print the current page, click the Print Current Page button. To print
the complete report, click the Print all Pages button.
40
6.0
6.2.1
Viewing Sample Variograms
One at a Time.
When SAGE2001 opens the plot
window, the program will immediately
begin to display all of the sample
variograms automatically. It does this by
rotating through all of the directional
sample variograms automatically. This
feature may be turned on and off by
clicking the Auto On and Auto Off
buttons.
When the Auto feature is Off, the
previous or next directional sample
variogram may be manually displayed in
the plot window by clicking the Next or
Previous button.
6.2.2 Viewing Multiple Directions in
One Display.
To view multiple directional sample
variograms simultaneously in one plot ,
click the Select multiple sets option
button. The scrollable list box
immediately below the option button
lists the directional sample variograms
that may be viewed. A maximum of 5
directions may be viewed at one time.
Select the directions by clicking on
them. Then display the directional
variograms in the plot window by
clicking the Graph button.
Figure 15: A blow up of
the Plot controls shown
6.2.3 Display Options.
in Figure 14.
Additional information may be plotted
simultaneously with the directional sample
variograms. For example:
Show Pairs. Click this checkbox to show the number of pairs
associated with each sample variogram point.
Connecting lines. Click this checkbox to connect the sample
variogram points with straight lines.
Variogram Model. Click this checkbox to display the variogram
model in the corresponding direction. Note that if a variogram model
42
has not been fit to the directional sample variograms, this option will
not be available.
6.2.4 Re-scaling the Plot Axes.
The axes of the sample variogram plot may be re-scaled by typing in new
maximums and minimums in the X (lag distance) and Y (variogram
value) text boxes. Note that values for the X and Y tic-intervals must
also be typed in the appropriate text boxes. Click the Apply button to re
draw the plot with the new maximums and minimums.
6.2.5 Printing the Plot.
Click the Print button to print the current display in the Plot window. If
the display contains multiple plots, the various directions will be
displayed using different colors. The printer output will also be colored if
the printer is color capable.
6.2.6 Inserting the Plot into a Report.
The graphics display shown in the Plot window can easily be inserted into
a report document using the Windows clipboard.
Click the Copy button located between the Print and Exit buttons.
This will put a copy of the sample variogram display on the
Windows clipboard.
Open your report document and position the cursor at the location in
the document where you wish to insert the variogram figure.
Press the Ctrl and V keys simultaneously. This will copy the
graphics display from the Windows clipboard to your report. Its that
easy!
NOTE, If the image pasted into your document from the clipboard
appears truncated and some of the text such as axes labels, title etc., are
missing, re-install the printer driver for your default Windows printer.
This may seem totally unrelated, but it will probably fix the problem.
Once you have re-installed the default printer driver, the clipboard image
will copy exactly as it appears on the SAGE2001 screen. This is because
the control used by SAGE2001 to copy the image to the clipboard use the
Windows printer driver. The re-installation of the printer driver with
SAGE2001 loaded on your machine generally resolves any problems
between the driver and SAGE2001.
43
DDH-01
DDH-01
DDH-01
DDH-01
DDH-01
6324.4
6324.4
6324.4
6324.4
6324.4
5435.4
5435.4
5435.4
5435.4
5435.4
5995.1
5987.6
5980.1
5972.6
5965.1
317.0
324.5
332.0
339.5
347.0
7.5
7.5
7.5
7.5
7.5
0.744
0.731
0.726
0.830
0.734
20
20
20
20
20
-1.00
-1.00
-1.00
-1.00
-1.00
44
At the top of the grid, SAGE2001 tells you it is displaying the first 5 rows
of 5,072 data. Note that the grid has been scrolled horizontally so that
columns 5 to 10 are displayed in the figure. Type and/or click the
following buttons:
1. Click on the Use row 6 for column headers option button
in the Column Headers frame.
2. Type the column header Sequence in row 6 column 1.
3. Type the column header BHID for Bore Hole ID in row 6,
column 2. Note that SAGE2001 has automatically classified
this variable as categorical because it contains letters.
4. Type the column header Easting in row 6, column 3.
5. Type the column header Northing in row 6, column 4.
6. Type the column header Elevation in row 6, column 5.
7. Type the column header Depth in row 6, column 6.
8. Type the column header Length in row 6, column 7.
9. Type the column header Copper in row 6, column 8.
10. Type the column header Lithology in row 6, column 9.
Note that all of the lithology codes are numeric. Thus,
SAGE2001 was not able to classify this variable as
categorical. Since lithology should be classified as
categorical, click on the drop down list box in row 7,
column 9 and click categorical. This will classify the
variable lithology as a categorical variable.
11. Type the column header Density in row 6, column 10.
45
SAGE2001 will respond with the standard Open File Dialogue box.
Select the required sag file and click on Open. SAGE2001 will respond
by opening the Select Variogram Attributes & Constraints window.
46
48
49
5.
Click on the Autofit button and type in the file name Test.
This will create the file Test.pli which is an ascii file that is
used by SAGE2001 to calculate the variogram model.
SAGE2001 only knows how to model pli files. It cannot
model any other type of file. However, note that the file is
ASCII and the format is quite simple. Thus, it is very easy
to calculate sample variograms using other software and
format the output identical to a pli file. Then SAGE2001
can be used to model the sample variograms.
6. Click on the Plot button and type in a name for the plot
files, e.g., Test.plt. Although these files are similar to the
pli files they are slightly different. SAGE2001 uses these
files to plot the sample variograms to the computer screen.
Finally, click on the Finish button to begin the sample variogram
calculations. SAGE2001 will open a progress bar and let the user know
the percentage of the job completed. For this example, the sample
variogram calculations may take something like 2 or 3 minutes assuming
your CPU is at least 200 Megahertz or more.
When SAGE2001 has completed the sample variogram calculations, a
message box will appear with the message Analysis Complete.
Note a small message that also appears on the bottom of the Calculate
Sample Variograms Finish Window. A return code of 0 indicates that
no errors were detected during the calculations. The return message also
indicates the actual number of samples that were used to calculate the
sample variograms. For example , the file TEST.Sag contains 5,072 data
values, but because of the imposed constraints, only 5,047 of these
samples were actually used to calculate the sample variograms.
Click the message box OKAY button and SAGE2001 will respond by
closing the Calculate Sample Variograms Finish window and
opening the Plot window.
51
52
This is the plot window that SAGE2001 uses to display the sample
variograms and the model if it exists. However, for this exercise we have
not calculated a model yet, so for now, we will use the plot window to
simply view the calculated sample variograms.
Automatic Plot Update. Probably the first thing you will notice is that
SAGE2001 automatically rotates through the sample variograms by
changing the plot every few seconds. To turn off the automatic rotation,
click the Auto Off button. To turn it back on, click the Auto On button.
You can also manually rotate through the sample variogram plots by
clicking on the Previous and Next buttons when Auto rotate is off.
Resizing the Window. The plot window can be resized using the
standard Windows resizing methods.
1. Use the Maximize/Restore button which is the center
button of the three buttons located in the extreme upper
right corner of the window. This is probably the best way to
increase and decrease the plot window size once you have
adjusted the smaller window size to your preference.
53
2.
Show Pairs. Click on the Show Pairs checkbox to show the number of
pairs for each sample variogram point.
Connecting Lines. Click on the Connecting lines checkbox and
SAGE2001 will join all the sample variogram points with straight lines.
Re-scaling the Plot Axes. The axes of the sample variogram plot can be
re-scaled by setting the text boxes in the lower right hand corner of the
plot window:
1. Leave Minimum h = 0 and G(h) = 0.
2. Set Maximum h = 400.
3. Set Maximum G(h) = 1.5
4. Set tic-interval h = 80
5. Set tic interval G(h) = 0.25
This will re-scale the sample variogram plot as shown in the figure above.
Now, as we rotate through the sample variograms, we should be noting
the following:
1. Is the scale of the X-axis (max h=400) of the sample
variogram plot appropriate? SAGE2001 will not use any
sample variogram points at lag distances larger than a
specified maximum lag distance. Thus, it is important to
choose this distance appropriately. For example, if the
specified length is too long, then useless sample variogram
points may be included in the modeling process. This could
have a negative impact on the resultant model parameters.
2. What is an appropriate minimum for the required number of
pairs? View the various directional sample variogram plots
and try to determine a threshold value that will eliminate
spurious sample variogram points near the origin, but will
also retain those points which appear to be critical to the
shape of the variogram model at shorter lag distances near
the origin.
54
Windows will respond by opening the standard Open File Dialogue box.
Select the file test.rpt and click on the Open button. SAGE2001 will
open the Print Report window.
7.4.1 The Print Report Window.
55
56
7.5.2
The Model Sample Variograms Rotation Convention
Window.
This window is used to tell SAGE2001 what rotation conventions it
should use to model the sample variograms.
For this exercise, we will use the custom rotation convention ZYZ-RRR:
1. Click on the Custom option button.
2. Click the Y option button for the second rotation axis.
3. Click the Z option button for the Third rotation axis.
4. Leave all the direction buttons Right.
Click the Next button to open the Model Sample Variogram Parameters window.
58
60
For example, the nugget is 0.1297, and the coefficients C1 and C2 are
0.517, and 0.353 respectively. Note that the sill is 1.00 because we have
used the correlogram which has a theoretical sill of 1.0.
Note that SAGE2001 has calculated the Azimuth and Dip of the
anisotropy axis for each structure. For example, consider the second
structure. The orientation of the anisotropy axes is:
61
1.
2.
3.
62
To view these directional sample variograms and their models click the
following:
1. Click the Select Multiple Sets option button.
2. Click the directional variogram with Az = 240, Dip = -30
from the list box.
3. Click the directional variogram with Az = 300, Dip = 0
from the list box.
4. Click the directional variogram with Az = 60, Dip = -60
from the list box.
5. Click the Graph button.
SAGE2001 will show the three directional sample variograms and the
model using different colors. The black curve is obviously the major axis
in the above figure, while the blue (triangles) curve is the minor axis.
63
64
65
66
67