Surfer 8 Geology Tutorial
Surfer 8 Geology Tutorial
Surfer 8.04
The most common application of Surfer is to create a grid-based map from an XYZ data file. The
Grid | Data command uses an XYZ data file to produce a grid file. The grid file is then used by most
of the Map menu commands to produce maps. Post maps and base maps do not use grid files.
The flow chart to the right illustrates the relationship between XYZ data files, grid files, contour
maps, and wireframes.
2. Double-click on the SAMPLES folder. In the list of files, click TUTORWS2.DAT and then click the
Open button to display the file in the worksheet window.
3. Notice that the X coordinate (Easting) is in Column A, the Y coordinate (Northing) is in Column
B, and the Z value (Elevation) is in Column C. Although it is not required, the header text (the text
in row 1) is helpful in identifying the type of data in the column, and this information is used in
dialog boxes when selecting worksheet columns.
button.
2. Click the Worksheet option in the New dialog and then click OK to display a new empty
worksheet window.
3. The active cell is selected by clicking on the cell or by using the arrow keys to move between
cells. The active cell is indicated by a heavy border and the contents of the active cell are
displayed in the active cell edit box.
4. When a cell is active, enter a value or text, and the information is displayed in both the active cell
and the active cell edit box.
5. The BACKSPACE and DELETE keys can be used to edit data as you type.
6. Press the ENTER key and the data are entered into the cell.
7. To preserve the typed data in the active cell, move to a new cell. Move to a new cell by clicking a
new cell with the pointer, pressing one of the arrow keys, or pressing ENTER.
2. In the Save as type list, choose the Golden Software Data (*.DAT) option.
3. Type the name of the file into the File name box.
4. Click Save and a GSI Data Export Options dialog opens.
5. Accept the defaults in the GSI Data Export Options dialog by clicking the OK button.
The file is saved in the Golden Software Data [.DAT] format with the file name you specified. The
name of the data file appears at the top of the worksheet window.
4
2. Choose the Grid | Data command.
3. In the Open dialog, click the file TUTORWS.DAT (located in Surfer's SAMPLES folder). The
name appears in the File name box below the list of data files.
4. Click Open and the Grid Data dialog is displayed. Alternatively, you can double-click the data file
name to display the Grid Data dialog.
5. The Grid Data dialog allows you to control the gridding parameters. Take a moment to look over
the various options in the dialog. Do not make changes at this time, as the default parameters
create an acceptable grid file.
o
o
o
o
o
The Data Columns group is used to specify the columns containing the X and Y
coordinates, and the Z values in the data file.
The Grid Line Geometry group is used to specify the XY grid limits, grid spacing, and
number of grid lines (also referred to as rows and columns) in the grid file.
The Gridding Method group is used to specify the interpolation method and
interpolation options.
The Output Grid File group is used to specify the path and file name for the grid file.
The Grid Report option is used to specify whether to create a statistical report for the
data.
6. Click OK. In the status bar at the bottom of the window, a display indicates the progress of the
gridding procedure. By accepting the defaults, the grid file uses the same path and file name as
the data file, but the grid file has a [.GRD] extension.
7. By default, a message appears after gridding the data. Click OK in the grid file has been created
message box.
8. If Grid Report is checked, a report is displayed. You can minimize or close this report.
button.
2. The Open Grid dialog is displayed. The grid file you just created (TUTORWS.GRD) is
automatically entered in the File name box. If the file does not appear in the File name box,
select it from the file list.
3. Click the Open button to create a contour map.
4. The map is created using the default contour map properties.
5
5. If you want the contour map to fill the window, choose the View | Fit to Window command.
Modifying an Axis
Every contour map is created with four axes: the bottom, right, top, and left axes. You can control
the display of each axis independently of the other axes on the map. In this example, we'll change
the contour spacing and add an axis label.
To modify an axis:
9
1. Move the pointer over one of the axis tick labels on the bottom X axis and left-click the mouse.
In the status bar at the bottom of the plot window, the words "Map: Bottom Axis" are displayed.
This indicates that you have selected the bottom axis of the contour map. Additionally, hollow
handles appear at each end of the axis, and solid green handles appear surrounding the entire
map. This indicates that the axis is a "sub-object" of the entire map.
2. Double-click on the bottom axis to display the bottom axis properties dialog.
3. In the Title box on the General page, type "Bottom Axis" and then click the Apply button. This
places a title on the selected axis.
4. If you cannot see the axis title, select View | Zoom | Selected. Notice that you do not have to
close the properties dialog to select menu commands, toolbar buttons, or objects in the plot
window.
5. Click on the Scaling page to display the axis scaling options. In the Major Interval box, type the
value 1.5 and then click the Apply button. This changes the spacing between major ticks along
the selected axis.
6. Click on the General page and then click the Label Format button. The Label Format dialog is
displayed.
7. In the Label Format dialog, select the Fixed option in the Type group. Click on the down arrow
on the Decimal Digits box and change the value to 1. This indicates that only one digit follows the
decimal point for the axis tick labels.
8. Click OK to return to the axis properties dialog.
9. Click OK in the axis properties dialog and the map is redrawn. The axis tick spacing and labels
are changed, and the axis title is placed below the map.
10
Saving a Map
When you have completed the map or drawing in the plot window, you can save the map to a
Surfer file [.SRF] containing all the information necessary to reproduce the map. When you save a
map, all the scaling, formatting, and map properties are preserved in the file.
To save a map:
1. Choose the File | Save command, or click the
button. The Save As dialog is displayed
because the map has not been previously saved.
2. In the File name box, type TUTORWS.
3. Click Save and the file is saved to the current directory with an [.SRF] extension. The saved map
remains open and the title bar changes to reflect the name change.
If you are using the demo version of Surfer you will not be able to save the map. Please proceed
to Lesson 4.
Exporting 3D Contours
When you have completed a contour map in the plot window, you can export the contour lines with
associated Z values to an AutoCAD DXF file.
To export contour lines:
1. Select the map by clicking on the map in the plot window or by clicking on the word "Contours" in
the Object Manager.
11
4. Click Save and the file is exported to the current directory. This creates a file titled
TUTORWS.DXF which can be opened in any program with an AutoCAD DXF import option.
If you are using the demo version of Surfer you will not be able to export contours. Please proceed
to Lesson 4.
button.
2. Select Plot Document in the New dialog and click OK. A new empty plot window is displayed.
3. Select the Map | Wireframe command or click the
button.
4. Choose the grid file TUTORWS.GRD from the list of files in the Open Grid dialog, click Open,
and the map is created. (TUTORWS.GRD, created in Lesson 2 - Creating a Grid File, is located
in Surfer's SAMPLES folder.)
12
button.
3. Click the left mouse button and hold it while moving the mouse to the left and right. This changes
the rotation of the wireframe. The rotation is listed in the status bar.
4. Click the left mouse button and hold it while moving the mouse up and down. This changes the
tilt of the map. The tilt is listed in the status bar.
5. Once you have rotated and tilted the map, click the ESC key on your keyboard to end trackball
mode.
Changing the rotation, tilt, field of view, and projection can also be accomplished by double clicking
the wireframe and using the options on the View page.
13
14
4. Click on the Minimum Line Properties button to open the Line Properties dialog. From here,
you can select the line color, style, or thickness.
5. Click on the Color button and select blue.
6. Click OK to return to the Line Spectrum dialog.
7. Click on the Maximum Line Properties button and change the line color to red using the steps
above.
8. Click OK in the Line Spectrum dialog to return to the Color Zones page.
9. In the wireframe properties dialog, check the Apply Zones to Lines of Constant X and Y boxes
by clicking in them.
10. Click Apply and the wireframe is displayed with gradational colors varying by the Z variable.
(Leave the dialog open.)
15
button.
3. Choose TUTORWS.DAT from the list of files in the Open dialog. (TUTORWS.DAT is located in
Surfer's SAMPLES folder.)
4. Click Open and the post map is created using the default properties.
The contour map and post map are two separate maps on the page. If you look closely at the X
axis, you will notice the two sets of axis tick labels for the two maps. Also, there are two map
frames and axes sets listed in the Object Manager. We will line up the maps with the Overlay
command after changing the post map properties.
16
7. In the Fixed Size box (Symbol Size group), specify a size of 0.09 in.
8. Click OK and the post map is drawn with the new symbol size.
17
18
If you double-click on Tutorial Post Map in the Object Manager, notice that the properties dialog
title changes to Map: Tutorial Post Map Properties. When you rename an object in Surfer 8, the
object's properties dialog reflects the name change making it easier for you to keep track of the
object you are editing. For example, if you have eight post maps in the plot window, it is beneficial
to change the post map names to something meaningful to save time when trying to edit them.
This is especially important because the properties dialog can stay open when changing selections.
To add labels:
1. Right-click on "Tutorial Post Map" in the Object Manager and choose Properties.
2. Click on the Labels page. In the Worksheet Column for Labels group, click the drop-down arrow
and a list of columns in TUTORWS.DAT is displayed.
3. Select Column C: Elevation from the list.
4. Click the Format button to open the Label Format dialog.
5. Change the Type to Fixed and the Decimal Digits value to zero.
6. Click OK to return to the post map properties dialog.
7. Click OK and the overlay is redrawn with labels on each of the data points.
19
Creating a Surface
To create a surface:
1. Select the File | New command, or click the
button.
2. Select Plot Document, in the New dialog and click OK. A new empty plot window is displayed.
3. Select the Map | Surface command or click the
button.
4. Choose the grid file TUTORWS.GRD from the list of files in the Open Grid dialog, click Open,
and the surface is created using the default settings. (TUTORWS.GRD, created in Lesson 2 Creating a Grid File, is located in Surfer's SAMPLES folder.)
Adding an Overlay
You can overlay base, contour, post, image, shaded relief, 1-grid vector maps, and 2-grid vector
maps on surfaces. All overlays, except other surfaces, are converted into a type of bitmap known
as a texture map. This texture map is then applied to the surface by stretching it and shrinking it as
necessary. When these maps are overlaid, you have a choice on how to treat the texture map. You
can use the colors from overlays only, from the surface only, or blend colors from the overlays and
surface. For example, you could create a color filled contour map, overlay the contour map and
surface, and then use the colors from the contour map only.
When multiple surfaces of differing elevations are overlaid, the surfaces can intersect and overlap
each other. If the surfaces are adjacent to each other in the X or Y direction, the surfaces are
drawn side-by-side after using Map | Overlay Maps. In this example, we will overlay a plane with
the surface you just created.
20
First, create the surface plane:
1. Select the Map | Surface command or click the
button.
2. In the Open Grid dialog, open Surfer's SAMPLES folder and select TUTORPL.GRD.
3. Click Open, and the surface is created using the default settings.
4. Right click on the upper 3D Surface in the Object Manager, choose Object ID and add the text
TUTORPL.GRD to the end of the 3D Surface label to make it easier to distinguish the two
surfaces in the Object Manager list.
Adding a Mesh
Mesh lines can be applied to surfaces.
To add a mesh:
1. Double-click on the surface to open the surface properties.
2. Click the Mesh page.
21
3. Check the X and Y boxes.
4. Change the Frequency to 5 for the X and Y lines.
5. Click the OK or Apply button to add a mesh to the selected surface.
Notice that the mesh is applied to the selected surface within the composite map, not to both
surfaces. With all map types, you can only change the map-specific properties of one map at a
time. Properties that apply to all overlays in the composite map include View, Scale, Limits, and
Background.
Changing Colors
Changing color schemes on surfaces is similar to changing colors on other map types such as
image maps or contour maps. The Color Spectrum dialog is used to load previously defined color
schemes, and it is also used to create your own color schemes.
Before experimenting with color, let's create a new surface map in a new plot window:
1. Click File | New or click the
button.
2. In the New dialog, select Plot Document and then click OK.
3. Select the Map | Surface command or click the
button.
4. In the Open Grid dialog, open Surfer's SAMPLES folder and select any grid file [.GRD].
HELENS2.GRD is a good choice for experimenting with color.
5. Click Open, and the surface is created using the default settings.
To change the surface material color:
1. Double-click on the surface to open the surface properties.
2. There is a Material Color group on the General page. Click the Upper button.
3. Click the Load button in the Color Spectrum dialog.
22
4. The color schemes are stored in color spectrum files containing a [.CLR] extension. By
default, Surfer opens in the SAMPLES folder, which contains many predefined color spectrums.
(Browse to the SAMPLES folder if it is not open.) Click on one of the [.CLR] files to select it and
then click the Open button.
5. Notice that the colors and anchor node
positions have changed in the Color Spectrum
dialog. Click OK in the Color Spectrum dialog to return to the surface map properties dialog.
6. Click the Apply button in the surface map properties dialog to see your color changes. Drag the
surface map properties off to the side if you cannot see the map.
You can continue to experiment with the colors by clicking the Upper button and loading other color
spectrum files. This is the end of the tutorial. If you still have questions, try looking for answers in
the online help and user's guide. If you find you still have questions, do not hesitate to contact
Golden Softwares technical support.