Surfer 8 FAQ's
A Powerful Contouring, Gridding, and
Surface Mapping Package for Scientists and Engineers
Q1. How can I get the latest version of Surfer?
Q2. Does Surfer 8 work with Windows NT?
Q3. How do I create a a shaded surface without colors?
Q4. When I overlay a surface map and another map and select the
"Use overlay color only" option in the Overlays tab of the Properties dialog
box, I lose the surface shading. How can I get a shaded overlay?
Q5. When I combine a surface map with two bitmap base map
overlays, only one of the overlays is visible.
Q6. When I click the Apply button in the Properties dialog box
to apply changes to my map, I want to click the Cancel button to undo the
changes, but the Cancel button has no effect.
Q7. When I use the Data Metrics Terrain Slope gridding option, the
resulting grid is a horizontal plane. What happened?
Q8. When I overlay a post map with 3D label lines on a surface map,
the 3D label lines disappear.
Q9. Can I add a North Arrow to a surface map and have it rotate
with the surface?
Q10. Data Metrics | Other Z Statistics | RMS with the no search
option checked consistently gave the following error:
Internal Error
Module GridLib.dll
DataMetrics.cpp Line 507
Q11. I am using a 16-bit version of Windows (95, 98) and I want to
plot my map on large paper, but Surfer 7 only accepts paper sizes less than
32.76 inches (83.21 cm). How can I bypass this limitation?
Q12. How do I change the start directory for the Surfer Scripter
program? It always starts in the "My Documents" folder under Windows 98.
Q13. I want to use a BLN blanking file to blank the area outside
a polygon, but when I load the BLN file as a base map, I can only fill
inside the polygon.
Q14. I want to blank the grid nodes outside several polygons on a
map, but the entire map gets blanked, resulting in a horizontal planar
grid.
Q15. How can I reshape individual contour lines, without
affecting the surrounding data?
Q16. I have created a map with a custom scale and map limits.
When I overlay a new map with the existing map, Surfer changes the scale
and map limits back to the defaults. Is there a way to overlay a new map
onto an existing map without changing the scale and limits that I have
already set?
Q17. I have a DXF file containing 3D polylines. When I import
this file into Surfer, it only displays the two dimensional information.
How can I get the 3D data into Surfer?
Q18. How can I create a file containing the X, Y and Z
coordinates of my contour lines?
Q19. Can I control Surfer from another programming environment?
Q20. How do I handle latitude/longitude data in Surfer?
Q21. I have gridded my data set and created a contour map;
however, no contour lines are displayed. What is wrong?
Q22. How can I change the Surfer grid file blanking value to 0 or
another value?
Q23. How can I print a subset area of a map?
Q24. How do I specify a scale of 1:24,000 in Surfer?
Q25. When I overlay two maps of the same type and select one, how
do I tell which map is selected?
Q26. When overlaying base maps in a script how do you assign a
label to each map?
Q27. I've created a map with grid lines parallel to the axes, but
the grid lines stop before reaching the opposite axis.
Q28. I used the drawing tools to add lines, rectangles and text
to my map, but these objects don't move when I rescale the map with the
Map | Scale menu.
Q29. I downloaded DEM files from the USGS
web site, but Surfer fails to recognize the DEM file as valid. How
can I load these files into Surfer?
Q30. How are the default scale and other parameters
calculated for the variogram model listed in the Grid | Data Scattered
Data Interpolation | Options dialog?
Q31. I have created a post map, but the points are close together
and some of the labels overlap. Is there a way to manually move them
around?
Q32. How do I change the map coordinates in a DXF file within
Surfer?
Q33. Is there a way to calculate the Z value in the grid [.GRD]
file at particular XY locations?
Q34. How are the residuals calculated when the desired location
does not fall on a grid node?
Q35. How can I make the Surfer window visible when running
a script?
Q36. How can I load Surfer in a script using a different SET
file?
Q37. How can I load a new SET file in a script once Surfer is
running?
Q38. What gridding method should I use to grid my data file?
Q39. What's the best method for gridding a data set consisting of
digitized contours?
Q40. What are the meanings of the parameters in a LVL file?
Q41. Using the Surfer Scripter, how do I set the width and height
of an exported bitmap (TIF, BMP, PCX, JPG) with FileExport( )?
Q42. How can I create custom symbols for use in Surfer, Grapher,
and MapViewer?
Q43. I have invested in Adobe typefaces. How do I use these type
faces with Golden Software products?
Q44. How can I calculate the area between contours?
Q45. When I grid my data file using kriging, it produces a grid
file with negative Z values, or with values that go beyond the Z limits in
my data file. How do I change this?
Q46. How do I create a vector plot using Surfer?
Q47. How is the default R-squared parameter calculated for the
Radial Basis gridding method?
Q48. Does Surfer support OLE linking and embedding?
Q49. How can I make the symbols in the classed post legend the
same size as on the map?
Q50. I would like to make separate layers for the lakes,
rivers, and rapids in the hydrography DLG for a particular
quadrangle. How do I import SDTS
DLG files by attribute?
Q51. How do I import an SDTS DLG file in lat/long
coordinates? Surfer imports it in UTM meters.
Q52. When I try to open Surfer under Windows 98, I get the
following error messages:
- The OPENGL32.dll file is linked to missing export
GDI32.dll:GdiSwapBuffers.
- C:\Program Files\Golden Software\Surfer\Surfer.exe a device
attached to the system is not functioning.
Q53. The Color drop-down menu in the Line Properties dialog
box does not display when I click on the Color button.
Q54. The color drop-down menu in the Line Properties dialog
box closes as soon as I move the mouse.
Q55. When trying to produce a post map with Proportional
Scaling for symbols, I get an error message "Minimum data value
cannot equal maximum". The scaling data are in the range of 0 to
10e-18.
Q56. Gridding a data set with duplicate points using the Modified
Shepard's method causes the grid to extrapolate unrealistic Z values
(-268,420 to 227,897) compared to the Z range in the data file (3400 to
6600).
Q57. How do I grid directional data, such as
wind speed and direction?
Q58. When I attempt to grid a file, Surfer displays "Surfer
Error - Failed to Create Empty Document".
Q59. Surfer messages are displaying in German, but I
prefer them in English.
Q60. When I try to type in a file name with leading or trailing spaces, Surfer can not
find the file.
Q61. How can I enter a "null value" (a value that is ignored when gridding or
performing mathematical calculations) into the Surfer worksheet?
Q62. How do I display the scale bar in miles or kilometers when the XY coordinates are
in degrees of latitude and longitude?
Q63. When I change the map limits on a
post map, data point labels disappear for points that are on the edges of
the map but inside the limits. How can I display these labels?
Q64. After installation, I get an error when I try to
run Surfer:
"The ordinal 6880 could not be located in the dynamic link library
MFC42.DLL"
Q65. How do I merge two or more GRD or DEM files to
create a contour map?
Q66. I am having a problem printing ("Out
of global memory" error, only a portion of the map prints, etc.).
Q67. My data is in curvilinear (cylindrical or
spherical) coordinates. How can I get it into a format that Surfer can
use?
Q68. Are there any additional scripts available for download?
Q69. Can I run Surfer 7 scripts in Surfer 8?
Q70. How do I create a block diagram in Surfer 8 like the
one shown on your web site?
Q71. Do you have more information about using variograms in Surfer?
Q72. How can I round data values in the worksheet?
Q73. Can I save a SRF file in
Surfer 8 that can be read by older versions of Surfer?
Q74. Where do I find my serial number?
Q75. Is technical support free?
Q76. How do I import a TIF with a TFW world file into Surfer?
Q77. How to I export a TIF with a TFW world file from Surfer?
Q78. How can I export the information from a 1-grid vector map to an ASCII file?
Q79. How do I specify the XLS sheet name in the GridData
automation command?
Q1. How can I get the latest version of Surfer?
A. Minor updates (e.g. version 8.00 to 8.01) may be
downloaded for free if your serial number is registered. Connect your computer
to the Internet, then click the Help | Check for Update command in Surfer.
This will download the latest patch and install it on your machine.
If you experience any problems with this command or would like to
download the full version of the updated software, please email your registered Surfer 8
serial number to surfersupport@goldensoftware.com.
Once your serial number is verified, Golden Software will send you download instructions.
Major upgrades (e.g. version 7 to version 8) cost US$139 plus shipping.
Q2. Does Surfer 8 work with Windows NT?
A. Surfer 8 is not supported under Windows NT, but it does run with NT4
SP6 and Internet Explorer 4 or higher. There are no known problems running
Surfer 8 under NT. If you experience problems and Golden Software can duplicate them
under a supported version of Windows, they will do all they can to resolve them.
If Golden Software can not duplicate the problem, they will not pursue it.
Q3. How do I create a shaded surface without colors?
A. Change the Material Color of the 3D Surface Properties | General tab to all
white (load white.clr). In the Overlays tab, set the Color Modulation to
"Blend overlay and surface colors".
Q4. When I overlay a surface map and another map and select
the "Use overlay color only" option in the Overlays tab of the Properties
dialog box, I lose the surface shading. How can I get a shaded overlay?
A. Change the Material Color of the 3D Surface Properties | General tab to all
white (load white.clr). In the Overlays tab, set the Color Modulation to
"Blend overlay and surface colors".
Q5. When I combine a surface map with two bitmap base map
overlays, only one of the overlays is visible.
A. Surfer combines all the overlays into a single texture map
(a bitmap), and combines the texture map with the surface. Contact
surfersupport@goldensoftware.com
if you would find it useful to overlay more than one bitmap, and I will add your
request to the suggestion file.
Q6. When I click the Apply button in the Properties dialog
box to apply changes to my map, I want to click the Cancel button to undo
the changes, but the Cancel button has no effect.
A. Use the Edit | Undo menu to undo changes.
Q7. When I use the Data Metrics Terrain Slope gridding
option, the resulting grid is a horizontal plane. What happened?
A. The Data Metrics Terrain Slope gridding option calculates the
local slope using the specified search parameters. The default search
for small data files uses the entire data set. Reduce the search radii
for more meaningful results.
Q8. When I overlay a post map with 3D label lines on a
surface map, the 3D label lines disappear.
A. Overlays on a surface map are combined into a single bitmap that
is applied to the surface, so 3D label lines are not supported with
surface map overlays. You may be able to overlay the post map on a
wireframe map, turn off the wireframe visibility, and align it with
the surface map to achieve a similar effect.
Q9. Can I add a North Arrow to a surface map and have
it rotate with the surface?
A. Create a post map with one of the GSI North Arrow symbols and
overlay it on the surface map.
Q10. Data Metrics | Other Z Statistics | RMS with the
no search option checked consistently gave the following error:
Internal Error
Module GridLib.dll
DataMetrics.cpp Line 507
A. Change the search radii to avoid this error.
Q11. I am using a 16-bit version of Windows (95, 98)
and I want to plot my map on large paper, but Surfer 7 only accepts
paper sizes less than 32.76 inches (83.21 cm). How can I bypass
this limitation?
A. Surfer 8 eliminates this restriction.
Q12. How do I change the start directory for the Surfer
Scripter program? It always starts in the "My Documents"
folder under Windows 98.
A. Create a Shortcut in Windows for the Scripter.exe
program, installed by default to:
"c:\program files\golden software\surfer\scripter\"
After creating the shortcut, right-click on the shortcut icon, choose Properties,
and specify the Start In directory under the Shortcut tab. On
some systems, the Start In path must be on the C: drive.
Q13. I want to use a BLN blanking file to blank the area outside
a polygon, but when I load the BLN file as a base map, I can only fill
inside the polygon.
A. The Map | Base Map menu does not have the ability
to fill outside a polygon, but there are other methods to consider:
- If you are making a map with a
GRD or DEM file, use the Grid | Blank menu to blank the grid
nodes that are outside the polygon. Set the header flag to 0
to blank outside. Create a new map with the new GRD file. -or-
- Modify the BLN file to add a
frame around the internal polygon. For example, if you want to
fill the area outside a square that extends from (1,1) to
(2,2), and the map ranges from (0,0) to (9,7), then the BLN
format is as follows:
|

Example of
modified file with frame around the internal polygon. |
Modified file in BLN format
| 11 |
|
|
| 0.0 0.0 |
|
"(x1,y1)" |
| 9.0 0.0 |
|
|
| 9.0 7.0 |
|
|
| 0.0 7.0 |
|
|
| 0.0 0.0 |
|
"Repeat (x1,y1) to close
outer polygon." |
| 1.0 1.0 |
|
"Start internal polygon. |
| 2.0 1.0 |
|
|
| 2.0 2.0 |
|
|
| 1.0 2.0 |
|
|
| 1.0 1.0 |
|
"Close internal polygon. |
| 0.0 0.0 |
|
"Repeat (x1,y1) to close
outer polygon." |
The BLN format draws the connecting line from the internal polygon to
the repeated (x1,y1) point at (0,0). Set the line style to Invisible for
this base map, or use the BNA format, which does not draw the connecting
line:
Modified file in BNA format
"","",11
0.0 0.0
9.0 0.0
9.0 7.0
0.0 7.0
0.0 0.0
1.0 1.0
2.0 1.0
2.0 2.0
1.0 2.0
1.0 1.0
0.0 0.0
Q14. I want to blank the grid nodes outside several polygons on a
map, but the entire map gets blanked, resulting in a horizontal planar
grid.
| A. It
may be that the area outside polygon A is inside polygon B, and
vice versa, causing the entire map to be blanked. Combine the two
polygons into a single polygon, and repeat the first vertex of the
first polygon at the end of the second polygon to create a single
combined polygon. Change the header of the combined polygon to
reflect the total number of vertices in both simple polygons, plus
the repeated first vertex. If you load the combined polygon as a
base map, a line is drawn back to the first vertex, so you may
need to keep both versions of the BLN available, the separate
polygons to use as a base map, and the combined polygon to use for
blanking purposes. |
|
Blanking the area
outside
multiple polygons blanks
the entire grid. |
| . |
|
|
| two separate polygons
5 0 'Polygon A
1.0 1.0
1.0 2.0
2.0 2.0
2.0 1.0
1.0 1.0
5 0 'Polygon B
3.0 3.0
3.0 4.0
4.0 4.0
4.0 3.0
3.0 3.0 |
one combined polygon
11 0 'Polygon A
1.0 1.0 'x1 y1
1.0 2.0
2.0 2.0
2.0 1.0
1.0 1.0
3.0 3.0 'Polygon B
3.0 4.0
4.0 4.0
4.0 3.0
3.0 3.0
1.0 1.0 'repeat x1 y1 |
|

Editing the blanking file
to combine the polygons
resolves the problem. |
Q15. How can I reshape individual contour lines, without
affecting the surrounding data?
A. Use one of the following methods:
- Choose the Grid | Grid Node Editor menu, and specify the grid file
name to display a contour map of the grid file. By default, a small
cross is displayed at the grid nodes. Click on a grid node you wish to
modify, and Surfer displays the X, Y, and Z coordinates of the
selected grid node at the top of the grid editor window. Alter the Z
value of a grid node by typing in a new value into the Z box at the
top of the window. This will not affect the Z values of the
surrounding grid nodes. Save the modified grid file when you are
finished, and create a new map with the new grid file, or substitute
the new grid file in an existing map.
- If you don't need the map coordinates in the resulting file, copy
the contour map to the clipboard, choose the Edit | Paste Special menu
to paste as a Picture, enable the Break Apart Metafiles option,
click on Paste, and click the mouse at the desired paste
location. Choose the Arrange | Break Apart menu to break apart the
Composite, click on the line to be reshaped, and choose the Edit |
Reshape menu to display the vertices in the contour line. Click on a
vertex and drag it to a new location to reshape the polyline.
Q16. I have created a map with a custom scale and map limits.
When I overlay a new map with the existing map, Surfer changes the scale
and map limits back to the defaults. Is there a way to overlay a new map
onto an existing map without changing the scale and limits that I have
already set?
A. Changing the Surfer SET file can modify the
default behavior of the program. Open the SET file in a text editor to
view the structure of the file and make changes, or change the defaults in
the File | Preferences | Default Settings menu. Before creating or opening
the map containing the desired scale and limits, choose the File |
Preferences | Default Settings menu and scroll to the Map Scale and Map
Limits section near the bottom of the SET file:
Click on the plus sign + to the left of Map Scale, select xDatPerPU
and
change the Setting Persistence to Current Session Only. Repeat
for each parameter under Map Scale and Map Limits. Save the
changes to the Surfer.set file.
Create or open an existing map. Make changes to the limits and scale to
write the settings to the SET file. Overlay a new map and the scale and
limits from the first map is maintained. To reset the settings for a map
covering a new area, close and restart Surfer.
Q17. I have a DXF file containing 3D polylines. When I import
this file into Surfer, it only displays the two dimensional information.
How can I get the 3D data into Surfer?
A. Surfer does not read Z information in 3D DXF files directly. Use the
free DXF2XYZ utility to create an XYZ data file.
DXF2XYZ
http://www.guthcad.com.au/freestuff.htm
Q18. How can I create a file containing the X, Y and Z
coordinates of my contour lines?
A. To export contours to a 3D DXF file, create a
contour map, select it, then choose the Map | Contour Map | Export
Contours menu.
Q19. Can I control Surfer from another programming environment?
A. Yes. Surfer can be completely controlled by any
Automation-capable programming language, including Visual Basic, Visual
Basic for Applications (that ships with the Microsoft Office suite), or
the Scripter programming language included with Surfer. Scripter is
very similar to VBA. Most modern compilers include some
facility for calling Automation-capable applications, including Visual
C++. Check your language documentation for Automation or Active-X
Automation support. See the following files included with Surfer:
Client.cpp - Example code for automating Surfer from C++.
Script4.js - Example script using JScript with the Windows
Script Host.
Script5.vbs - Example script using VBScript with the Windows
Script Host.
The directory for these files is the \Samples\ directory under the main
Surfer directory, which defaults to "c:\Program Files\Golden
Software\Surfer\Samples\".
Q20. How do I handle latitude/longitude data in Surfer?
A. Post your data in unprojected latitude/longitude
using decimal degrees, with west and south directions shown as negative
values. Latitude is the Y and longitude is the X. For example, 105 degrees
30 minutes west would be represented as -105.5 degrees. To convert from
degree-minute-seconds (dms) units to decimal degrees (d.dd), use the
formula:
d.dd = d + (m / 60) + (s / 3600)
Q21. I have gridded my data set and created a contour map;
however, no contour lines are displayed. What is wrong?
A. This condition has several possible causes:
- Check the Levels in the Contour Map dialog box to see that at
least one of the contour levels is within the range of your gridded
data. For example, a contour map appears blank if there are contours
at 0 and 100 while the gridded data ranges from 20 to 80.
- Select the map and choose the Map | Limits menu. If the check box
forUse Data Limitsis not checked, check this box and click OK
to reset the map XY limits to include all the data in the map.
Q22. How can I change the Surfer grid file blanking value to 0 or
another value?
A. Choose the Grid | Filter menu command, specify the GRD file, choose the Linear Convolution Filters | User Defined Filters | General User-defined (mxn) options, set the Edge Effects | Blanked Nodes to Fill, and set the Value to 0.
Q23. How can I print a subset area of a map?
A. Choose the Map | Limits menu and specify the x
and y minimum and maximum coordinates of the area of interest. Choose the
Map | Scale menu to specify the size of the map, then File | Print.
Q24. How do I specify a scale of 1:24,000 in Surfer?
A. Surfer defines the scale in terms of the units of
the XY coordinates in the data file. For example, if the units in the data
file are feet, then a scale of 1:24,000 is calculated as follows:
1:24,000
1 inch = 24,000 inches
1 inch = 2,000 feet
Q25. When I overlay two maps of the same type and select one, how
do I tell which map is selected?
A. This example uses base maps to illustrate the
procedure, but it works with all 2D map types:
- If the Object Manager is not visible, enable it with the Edit |
Object Manager menu or Object Manager tool .

- Select the first base map in the Object Manager tree and change one
of the object properties, such as line color, to identify the map in
the window.
- Choose the Edit | Undo menu to undo the change, right click on the
first "Base" in the Object Manager tree, and enter a new
name for the base map.
- Repeat for all other maps you wish to name.
or
- Select a base map with Ctrl+Click (hold the Ctrl key down when
clicking the left mouse button). In the lower left corner of the
window, the status bar should display "Map: Base".
- Choose the Edit | Object ID menu to specify a name.
- Repeat for all other maps you wish to name.
Q26. When overlaying base maps in a script how do you assign a
label to each map?
A. There are two steps to naming your maps:
1. Name the "frame" or "container" that holds the
map and axes
2. Name the "contents" or "overlays", i.e. the actual
maps.
When you click on a map interactively in Surfer, the status bar in
the lower left corner of the window reports the map frame to the left of
the colon and the overlay to the right of the colon, as in "Map:
Base". To name the parameters in the Scripter, first name the map
frame (left side of colon).
...MapFrame1.Name = "Frame1"
The next step is to name the overlay map (right side of colon)
...ContourMap.Name =
"Base97"
If you stop the script here, the ID displayed in the status bar is:
..."Frame1:
Base97"
For an example script that demonstrates how to name components of a
map, use the Scripter script Naming.BAS.
Q27. I've created a map with grid lines parallel to the axes, but
the grid lines stop before reaching the opposite axis.
A. Under the Scaling tab or button in the Axis
Properties dialog box, change the tick minimum and maximum values to match
the axis minimum and maximum.
Q28. I used the drawing tools to add lines, rectangles and text
to my map, but these objects don't move when I rescale the map with the
Map | Scale menu.
A. Convert the objects to "map" objects
with map coordinates and overlay on the existing map.
- Points: Digitize points to a DAT file using the Map | Digitize menu,
then save with the .DAT extension. Display these points with a post
map. Select both maps and use the Map | Overlay Maps menu to combine
the maps.
- Text: Save text in a DAT file after digitizing the location of the
text using Map | Digitize. Click on the map to record the desired
location of the text, type a comma after the XY coordinate in the
digit.bln window, and type the text surrounded by double quotes. When
finished digitizing the text locations and adding text, save the file
as a DAT file. Load the DAT file as a post map specifying column C as
the Label column, and overlay with the existing maps.
- Lines and Polylines: Convert lines to a BLN file format using the
Map | Digitize menu to digitize the points. Surfer 8 adds the headers
automatically when saved to the BLN format if you insert a blank row
between polylines.
- Objects with Known Coordinates: Export the drawing as a DXF file
with map coordinates. The Export DXF dialog box lets you specify page
coordinates under the Page Rectangle heading and corresponding map
coordinates under the DXF Rectangle heading. Load the DXF file as a
base map and overlay it with existing maps.
Q29. I downloaded DEM files from the USGS
web site or from the GIS
Data Depot, but Surfer fails to recognize the DEM file as valid. How
can I load these files into Surfer?
A. Surfer recognizes ASCII DEM (1° x 1° -
1:250,000 scale with 3 arc-sec grid spacing, 7.5 minute - 1:24,000 scale
with 30m grid spacing), GTOPO30 DEM (40° x 50° - 1:1,000,000 scale with
30 arc-second spacing), and SDTS DEM (size and scale vary) formats. These
files are often compressed and archived in a .tar.gz format (both tar'd
and gzip'd). Files must be extracted prior to use within Surfer. The WinZip
program is a good choice for extracting the files, but disable the option
to use "TAR file smart CR/LF conversion" in the Options |
Configuration | Miscellaneous menu prior to extracting the files. Other
possible pitfalls include:
- Some browsers change the file extension from .tar.gz to _tar.gz.
Use the .tar.gz extension for easier WinZip extraction
- The GTOPO30 format requires the DEM, HDR, and STX files or Surfer
issues a message that the file is not a valid DEM file.
- GTOPO30 DEM files are typically 6000 x 4800, requiring at least 210
MB of RAM to display. The Grid | Extract menu extracts a subset of the
DEM covering either a smaller area or sampling every nth grid node.
- The SDTS format requires all the DDF files contained within the .tar.gz
archive. Select any one of the DDF files to extract the information
from all the DDF files extracted from the archive.
- Some SDTS DDF files are DEM files and others are DLG boundaries.
These two files are not interchangeable in Surfer; DEM files can be
used any place GRD files are used, and DLG boundaries are imported
using the Map | Base Map menu. The type of archive can be determined
by the presence of key files. The SDTS DEM archive contains a file
with a name in the form xxxxCEL0.DDF. The SDTS DLG archive contains a
file in the form xxxxLE##.DDF.
Q30. How are the default scale and other parameters
calculated for the variogram model listed in the Grid | Data Scattered
Data Interpolation | Options dialog?
A. The default parameters are set to 1. Use the Grid
| Variogram | New Variogram menu to model your data and get values for
your data set, and click the Get Variogram button in the Kriging
Options dialog box to transfer the calculated parameters from the
variogram to the kriging algorithm.
Q31. I have created a post map, but the points are close together
and some of the labels overlap. Is there a way to manually move them
around?
A. Isolate the labels that overlap others and move
them to a separate column in the worksheet. Create the first Post map with
the label position set at your choice. Create a second post map with
labels taken from the new column and the label position set to a different
location than the first post map. Overlay the two maps using the Map |
Overlay Maps command. You may have to adjust the label position, possibly
using the User Defined function for label position, before you are
satisfied with the results. Changing the label position setting affects
all the points in a post map.
Q32. How do I change the map coordinates in a DXF file within
Surfer?
A. Use the page coordinates of two calibration points with known
map coordinates on your map to create a new DXF with the changed
coordinates. Choose the File | Import menu to load the DXF file and
display it without axes. Zoom In on the first known point and write down
the XY page coordinates from the status bar at the bottom of the Plot
window. Zoom Out, scroll to the next point and write down the page
coordinates. Choose the File | Export menu, and specify a new file name
with the .DXF extension to display the AutoCAD DXF Export dialog box. Type
in the page coordinates under the "Page Rectangle" area and the
corresponding map coordinates under the "DXF Rectangle" area.
Although the dialogue box prompts for the Lower Left and Upper
Right points, you may enter any two map points. Set the Scaling
Source to Application, Format to ASCII, and uncheck
all the check boxes in the lower left corner. Click OK to create the
new DXF file. To load the file into Surfer with map coordinates, use the
Map | Base Map menu.
Q33. Is there a way to calculate the Z value in the grid [.GRD]
file at particular XY locations?
A. Use the Grid | Residuals command to calculate the
Z value. Create a data file with the XY locations, and add a column of
0's. Grid | Residuals subtracts zData - zGrid, so using a column of 0's
for zData returns the negative of the Z value in the grid.
Q34. How are the residuals calculated when the desired location
does not fall on a grid node?
A. Surfer uses bilinear interpolation between grid
nodes.
Q35. How can I make the Surfer window visible when running
a script?
A. To make the Surfer window visible, set the Application
object’s "Visible" property to True:
Set srf = CreateObject("Surfer.Application")
srf.Visible = True
Use the Task Manager to end the execution of any invisible copies of
Surfer.
Q3. How can I load Surfer in a script using a different SET
file?
A. Use the shell( ) command to specify the SET file on the command
line, then use the GetObject( ) command to use the existing instance of
Surfer.
ExeFile = "d:\program files\golden software\surfer\" +
"surfer.exe"
SetFile = "d:\program files\golden software\surfer\" + "new.set"
Shell(ExeFile+" /Set "+Chr(34)+SetFile+Chr(34),1)
Wait 5
Set Srf = GetObject(,"Surfer.Application")
Q37. How can I load a new SET file in a script once Surfer is
running?
A. Exit Surfer then use the shell( ) and GetObject(
) commands below.
Shell("c:\apps\surfer7\surfer.exe /set c:\apps\surfer7\dan.set",1)
Wait 4 'Wait a few seconds to allow Surfer to start
Dim Surf As Object
Set Surf = GetObject(,"Surfer.Application") 'Connect to the
running instance of Surfer
Q38. What gridding method should I use to grid my data file?
A. The default gridding method, kriging with a
linear variogram, was selected as a good method for the majority of data
sets.
Q39. What's the best method for gridding a data set consisting of
digitized contours?
A. No one method is the "best", but you can
improve the results of gridding a digitized contour data set by making
sure sufficient data points are distributed throughout the map area. If
there is a "C"-shaped contour without other contours inside the
"C", the entire C is gridded as a flat area. The same thing
happens with a closed contour. Use the Map | Digitize menu to digitize
additional points within the "C"-shaped contours and closed
contours and add them to your data file.
Q40. What are the meanings of the parameters in a LVL file?
A. The parameters are defined as follows:
Level = Z or contour value.
Flags = (0=None, 1=Labeled, 2=Hachured, 3=Both).
LColor = Line color by name "Red" or RGB "R255 G0
B0".
LStyle = Line style, e.g. "Solid", "Invisible".
LWidth = Line width in inches x 1000 so 0.01" = 10.
FFGColor = Fill Foreground Color by name or RGB.
FBGColor = Fill Background Color by name or RGB.
FPattern = Fill Pattern by name, e.g."12.5% Black"
"Vertical".
FMode = (1=transparent, 2=opaque).
FScale = Fill Scale for vector patterns, default=1
FType = Fill Type (0=Unknown, 1=Stock, 2=Bitmap, 3=Vector).
Q41. Using the Surfer Scripter, how do I set the width and height
of an exported bitmap (TIF, BMP, PCX, JPG) with FileExport( )?
A. Use the PlotDocument.Export() command with the
following options:
Since the Export Options dialog isn't displayed when the program is
driven from an automation script, an options string can be specified in
the script. The string consists of comma-separated parameters, which
specify the behavior of the various export options. A typical example
would be:
"Defaults=1,Width=640,Height=480,ColorDepth=4"
This would set all export options to their default values, then set the
bitmap width to 640 pixels, the bitmap height to 480 pixels and the color
depth to 4 (i.e., 256 colors).
All the available options are listed here for Bitmap export. These can
also be located in the Online Help.
| Option |
Action |
Default |
| Defaults=1 |
Set all
options to their default values |
No |
| ForgetOptions=1 |
Don't
remember options for later use |
No |
| Width=N |
Set N
pixels as the output bitmap width |
Screen
Resolution |
| Height=N |
Set N
pixels as the output bitmap height |
Screen
Resolution |
| HDPI=N |
Set N
pixels per inch as the horizontal output resolution. May not be
used if Width is specified. |
None
(uses default Width) |
| VDPI=N |
Set N
pixels per inch as the vertical output resolution. May not be
used if Height is specified. |
None
(uses default Height) |
| ColorDepth=N |
Set
color depth (WIN32 only).
Valid Values:
1: Monochrome
4: 16 Colors
8: 256 Colors
24: True Colors
|
Color
Depth of the Video Display |
| Automatic=1 |
Automatic
compression (for JPEG) |
Yes |
| Quality=N |
Set
compression quality 0 - 100 (for JPEG) |
100
(highest quality) |
Q42. How can I create custom symbols for use in Surfer, Grapher,
and MapViewer?
A. Golden software can use TrueType fonts for symbols,
a TrueType font editor will let you create your own symbols including:
- Softy
(shareware)
- TypeTool from Pyrus
(commercial)
Surfer, Grapher, and MapViewer also use the symbol sets and Altersym
editor from the DOS versions of Surfer and Grapher at the Golden Software
FTP site.
Q43. I have invested in Adobe typefaces. How do I use these type
faces with Golden Software products?
A. Golden Software's applications only support
TrueType scalable typeface technology. If you have a significant
investment in Adobe Type 1 faces (i.e., you are using ATM under Windows),
Golden Software recommends converting them to TrueType format so they may be used with
Golden Software products and other Windows programs. Golden Software recommends the
TypeTool program from Pyrus
for this purpose.
Q44. How can I calculate the area between contours?
A. Choose the Grid | Volume menu to generate a
volume and area report using the GRD file as the "Upper Surface"
and the Z level of the first contour as the constant "Lower
Surface". Record the "Positive Planar Area" value from the
report. Next, generate a second report with the same GRD file as the Upper
Surface and the Z level of the second contour as the Lower Surface. Record
the Positive Planar Area value from the second report, and subtract from
the first value to get the area between the two contours. The contarea.bas
script calculates the area between evenly spaced levels automatically.
Q45. When I grid my data file using kriging, it produces a grid
file with negative Z values, or with values that go beyond the Z limits in
my data file. How do I change this?
A. The kriging gridding method was designed to
analyze data trends and extrapolate in areas of no data. There are several
methods to eliminate this effect.
- Use the Grid | Math menu to eliminate negative values. First select
your existing grid file (A), specify a new name for the output grid
file (C), and the formula C = max(A,0). This formula converts all
negative Z values to 0 in the new grid file. Use this method for all
values including 0.
- Choose a different gridding algorithm that does not extrapolate
beyond the Z limits in the data file. Inverse Distance to a Power and
Triangulation with Linear Interpolation are two such methods.
- If your data range over several orders of magnitude, it may be
beneficial to transform your Z values in the worksheet to logarithmic
values. Open the data file in the worksheet and choose the Compute |
Transform menu. If your data are in column C, and column D is blank,
use the formula D = log10(C) to calculate the log base 10 of the Z
values. Save the worksheet, and create a grid using column D as the
source of Z values. This method may create negative log10 values, but
these values represent small positive Z values. e.g. log10(Z) = -2,
then Z = 0.01.
Q46. How do I create a vector plot using Surfer?
| A. Surfer creates vector plots from a grid file,
or from two grid files individually containing direction and magnitude
information by using the Map | Vector Map | New 1-Grid Vector Map or the
Map | Vector Map | New 2-grid Vector Map commands.
In addition, Surfer creates vector plots from a data file with X, Y, magnitude, and angle data. Choose the Map | Post Map | New Post Map menu command, specify the data file name, and click Open. Double-click on the post map, view the General tab, and change the Angle column to the column containing the angle data. Click on the Default Symbol button, specify the Default Symbols or GSI Default Symbols set, select one of the arrow symbols (60 - 63), and click OK. Change the Symbol Size to Proportional, click on the Scaling button, specify the column containing the magnitude information in the Worksheet Column Containing Height prompt, change the Symbol Height and Data Value fields as desired, and click OK. Click OK or Apply to see the results. |
|
 |
Q47. How is the default R-squared parameter calculated for the
Radial Basis gridding method?
A. The default value is calculated as follows:
(Length of Diagonal of the data extent) ^ 2 / (25 * number of data
points)
This value was chosen for robustness (to work with most data sets).
Q48. Does Surfer 8 support OLE linking and embedding?
A. Surfer 8 does not support OLE linking and
embedding. Golden Software testing found stability problems related to the way
different applications implement the OLE specification. For now, Golden Software
has decided to forego linking and embedding until a more robust mechanism
is available.
Q49. How can I make the symbols in the classed post legend the
same size as on the map?
A. Double-click on the legend to display the Post Map
Legend dialog box. Change the Symbol Size to Same as Plot, and click
OK.
Q50. I would like to make separate layers for the lakes,
rivers, and rapids in the hydrography DLG for a particular
quadrangle. How do I import SDTS
DLG files by attribute?
A. Use the Map | Base Map menu command, specify one of the
DDF files in the hydrography DLG, and click Open to display the SDTS-TVP
Import Options dialog box. In the Selection Criteria group, change
the By Attribute Name from (ALL) to ENTITY_LABEL, and enter the attribute
code (major plus minor code) in the Value edit box. Lakes are
0500421, rivers are 0500412, and rapids are 0500400. For a complete
list of USGS DLG attribute codes, refer to Appendix B of the Data
User Guide.
Q51. How do I import an SDTS DLG file in lat/long
coordinates? Surfer imports it in UTM meters.
A. In the SDTS-TVP Import Options dialog box, click on
the check box for Unproject Coordinates, then click OK.
Q52. When I try to open Surfer under Windows 98, I get the
following error messages:
- The OPENGL32.dll file is linked to missing export
GDI32.dll:GdiSwapBuffers.
- C:\Program Files\Golden Software\Surfer\Surfer.exe a device attached to the
system is not functioning.
A. Another program on your system may have
changed the version of your OPENGL32.DLL file, causing it not to work with
Surfer. In the Windows\System directory, rename
the OpenGL32.dll to OpenGL32.old. Re-install Surfer and copy the new
OpenGL32.dll from the Windows\System directory to the Surfer directory.
Q53. The Color drop-down menu in the Line Properties dialog
box does not display when I click on the Color button.
A. There may be a conflict with another program. Close
all programs, including virus checkers and jukebox programs that may
appear on the desktop and in the system tray on the task bar, and restart
Surfer. A known conflict exists with the Exceed X Windows emulation
program.
Q54. The color drop-down menu in the Line Properties dialog
box closes as soon as I move the mouse.
A. Turn off the option Activation Follows Mouse option in the
TweakUI program.
Q55. When trying to produce a post map with Proportional
Scaling for symbols, I get an error message "Minimum data value
cannot equal maximum". The scaling data are in the range of 0 to
10e-18.
A. Surfer requires the difference between the zMax and
zMin to be at least 1e-5 (0.00001).
Q56. Gridding a data set with duplicate points using the Modified
Shepard's method causes the grid to extrapolate unrealistic Z values
(-268,420 to 227,897) compared to the Z range in the data file (3400 to
6600).
A. Change the duplicate setting from "All" to
"Average" or "Delete First".
Q57. How do I grid directional data, such as
wind speed and direction?
A. Calculate the X and Y components of the speed/direction
data in the Surfer worksheet, grid these components separately, and
display as a 2-Grid Vector map. The formulas for calculating the X
and Y components are:
X = r * sin(d2r(a)), Y = r * cos(d2r(a))
where
X = X component
Y = Y component
r = wind speed
a = wind direction (0° = north, 90° = east)
d2r converts degrees to radians for the worksheet sin
and cos functions.
Q58. When I attempt to grid a file, Surfer displays "Surfer
Error - Failed to Create Empty Document".
A. This error is caused by another program changing the
Windows system file riched32.dll. Copy this file from the
Surfer\Scripter directory to the Surfer directory so the program will use
the unchanged version.
Q59. Surfer messages are displaying in German, but I
prefer them in English.
A. Some programs install the system file mfc42loc.dll in the
Windows system directory to control the language of the output messages.
Rename this file to a new name, such as mfc42loc.old, to prevent Windows
from using this file. This action may have an effect on the program
that installed this file.
Q60. When I
try to type in a file name with leading or trailing spaces, Surfer can not
find the file.
A. The Windows File Open dialog boxes trim the leading and
trailing spaces. Add quotes around the file name to overcome the
problem.
Q61. How can I
enter a "null value" (a value that is ignored when gridding or
performing mathematical calculations) into the Surfer worksheet?
A. Surfer ignores any text strings (non-numeric
values) when gridding and when performing Data | Transform in the
worksheet. Any of the following can be used:
"-9999", N/A, "no data", x99
In a text editor, program, or script, add
quotes around a number to designate it as a text string. In the
worksheet, insert a single quote (apostrophe) at the beginning of the
number to convert it to text. Quotes around a text string with
spaces insure that the entire string is read as a single item. A mix
of numbers and text without spaces is read as a text string.
Q62. How do I display the scale bar in miles or kilometers when the XY coordinates are
in degrees of latitude and longitude?
|
A. First convert the map X Scale and Y Scale to Cartesian coordinates (i.e.
miles, feet, kilometers, meters), because one degree of latitude
does not cover the same number of miles as one degree of
longitude. For an approximate conversion from latitude and
longitude degrees to miles or kilometers, use the following
formulas for a spherical projection:
1 degree latitude = 110.6 km
= 68.703 mi
1 degree longitude = 111.3km * cos(latitude)
= 69.172mi * cos(latitude)
To set the scale bar of a map, use the formulas to convert latitude and longitude to the desired
coordinates. For the map of Nevada USA included with Surfer (nv.gsb)
the center of the map is approximately (-117, 39). Using the
formulas:
1 degree latitude = 68.703 miles
1 degree longitude = 69.172 * cos(39)
= 53.757 miles
To set the X and Y to the same scale in miles, select the map and
choose the Map | Scale menu. Disable the Proportional XY Scaling
checkbox in the lower left corner of the Scale dialog box. If the
X scale is set to 1.0 in = 1 Map units (degrees longitude),
calculate the ratio of X to Y as 53.757mi / 68.703mi = 0.78245.
Specify the Y scale as 1.0 in = 0.78245 Map Units.
|
|
|
The default scale bar is created in degrees with a Cycle Spacing = 1 and
Label Increment = 1. Tochange the scale bar to 50 mile increments,
change the Cycle Spacing to 50mi / 53.757mi per degree or 0.93
(degrees) and the Label Increment to 50 (miles).
|
Q63. When I change the map limits on a
post map, data point labels disappear for points that are on the edges of
the map but inside the limits. How can I display these labels?
A. Increase the map limits to include the area where
the labels plot.
Q64. After installation, I get an error when I try to
run Surfer:
"The ordinal 6880 could not be located in the dynamic link library
MFC42.DLL"
A. The most common causes of this error are:
- Failure to install with Administrator privileges (Windows NT and
2000).
- Failure to reboot after installation (if prompted).
- Unable to write to Windows System directory.
If the problem persists after meeting these conditions, send the Surfer
installation log surfer.log from the Windows directory to surfersupport@goldensoftware.com.
Q65. How do I merge two or more GRD or DEM files to
create a contour map?
A. Use the Grid | Mosaic menu command.
Q66. I am having a problem printing ("Out
of global memory" error, only a portion of the map prints, etc.).
A. You may be able to work around the problem by
changing some of the printer settings. Different printer drivers have
different settings, but here is a list of the most common remedies:
- Turn off print spooling.
- Change the print mode to "raster" or "bitmap" to
reduce the printer memory requirements.
- Change the printer driver to use the computer's memory instead of
the printer's memory.
- PostScript drivers often require more memory than non-PostScript
drivers for the same printer. Change drivers if possible and test the
print results.
- Check for other compatible printer drivers in your printer
documentation. For example, the HP LaserJet 4 driver could be used
with the LaserJet 5 printer.
- Enable the Page Protect mode if available.
- Verify the version of your printer driver and possibly update it.
For example, the HP DesignJet 750C driver version 4.33 requires 80%
less memory than version 4.11
- Turn off View | Auto Redraw to free up additional memory.
- Resample the bitmaps in a graphics program (Corel Draw, Paint Shop
Pro, PhotoShop) to reduce the number of pixels and color depth in the
bitmaps.
If the remedies above do not help, please contact technical support
with the exact nature of the problem, your operating system (i.e. Windows
98), the printer model, and the print driver version number.
Q67. My data is in curvilinear (cylindrical or
spherical) coordinates. How can I get it into a format that Surfer can
use?
A. Golden Software has written a GS Scripter program ( crv2xyz7.exe
) which can convert from cylindrical or spherical coordinates into X,Y and
Z data. This program is available for download from our Scripts
Library.
Q68. Are there any additional scripts available for download?
A. Download scripts from the following site:
http://www.goldensoftware.com/scripts.shtml
Q69. Can I run Surfer 7 scripts in Surfer 8?
A. Surfer 7 scripts run in Surfer 8 without modification.
| Q70.
How do I create a block diagram in Surfer 8 like the one shown on
your web site? |
| A.
Create surface maps from grids of each of the layers.
Overlay the surface maps, enable the Show Base option, and specify
a different fill color for each layer.

|
 |
Q71. Do you have more information about using variograms in Surfer?
A. Download the variogram tutorial in PDF format.
Q72. How can I round data values in the worksheet?
A. Use the floor() function in the Data | Transform menu. This function returns the closest integer less than or equal to X. To round to 0 decimal places, add 0.5 to the value and calculate the floor :
A = floor( A + 0.5 )
To round to one decimal place, multiply by 10, add 0.5, take the floor value, then divide by 10.
A = floor( (A*10) + 0.5 ) / 10
Q73. Can I save a SRF file in
Surfer 8 that can be read by older versions of Surfer?
A. Surfer 8 can not save older
versions of SRF files, but it can save and export many other files types
that can be read by older versions:
Formats compatible with Surfer 7:
Vector formats with map coordinates:
Golden Software BLN, GSB, & GSI, AutoCAD DXF, ESRI
SHP, Atlas BNA,
MapInfo MIF.
Vector formats with XYZ coordinates (contours only):
AutoCAD DXF.
Bitmap formats:
Windows Bitmap BMP, Tagged Image TIF, Targa TGA,
Paintbrush PCX,
Compuserve GIF, Word Perfect Bitmap WPG, Multipage PCX
DCX, JPEG JPG,
Macintosh bitmap PICT, Portable Network Graphics Bitmap
PNG.
Formats that support both bitmap and vector data:
Computer Graphics Metafile CGM, Windows Clipboard CLP,
Windows Metafile
WMF.
Q74. Where do I find my
serial number?
A. The serial number is on
the registration card glued inside the cover of your reference manual.
Please complete the registration card and return to Golden Software or register
online at our web site. With this information, Golden Software will be able to mail
you announcements of upgrades and newsletters. Newer versions of our
products will also allow you to find your serial number by going to the
Help menu and selecting "About Surfer." The box will show
the serial number, as shown below.

Q75. Is Technical Support free?
A. Yes, Technical Support is free to all users for as long as you own
the product. You must register your
product in order to receive technical support. You can reach
technical support by phone, fax,
or email.
Q76. How do I import a TIF with a TFW world file into Surfer?
A. Download the script TifTfwLf.bas from our ftp site. Run the Surfer Scripter program using the Windows Start | Programs | Golden Software Surfer 8 | Scripter menu command. Open the TifTfwLf.bas file and run it with the Script | Run menu command. You'll be prompted for the TIF or TFW file name.
Surfer 8 Scripts
ftp://ftp.goldensoftware.ws/public/scripts/surfer8/
Q77. How to I export a TIF with a TFW world file from Surfer?
A. Download the script TifTfwExport3.bas from our ftp site. Run the Surfer Scripter program using the Windows Start | Programs | Golden Software Surfer 8 | Scripter menu command. Open the TifTfwLf.bas file and run it with the Script | Run menu command.
Surfer 8 Scripts
ftp://ftp.goldensoftware.ws/public/scripts/surfer8/
Q78. How can I export the information
from a 1-grid vector map to an ASCII file?
A. Choose the Grid | Calculus | Terrain Modeling | Terrain Aspect
menu commands for the direction (angle), and Terrain Modeling | Terrain
Slope or Differential & Integral Operator | Gradient Operator for the
magnitude. For the Output Grid File, click on the yellow Open Folder icon
, specify the File name, and change the Save as type to ASCII XYZ
DAT or GS ASCII GRD.
Q79. How do I specify the XLS sheet name in the
GridData automation command?
A. Open the XLS file in the worksheet prior to executing GridData.
Set wksdoc1 =
SurferApp.Documents.Open(xlsfile1, Options:="Sheet=Sheet2")
SurferApp.GridData(xlsfile1)
wksdoc1.Close
|