|
Creating and Displaying Cross
Sections in Surfer 8
The ability to slice a grid file in Surfer to
create a file of data points along a specified line of section is a very
powerful tool for our Surfer users. The ability to visually display the profile in
Surfer, or combine profiles to display a cross section, is just as powerful.
When you slice a grid file, you have the option
to create a BLN file or a DAT file. To get the data you need to display the
results in Surfer, you want to choose the DAT file option. You then modify the
resulting DAT file, convert it to a BLN file (it will be different than if you
had saved the BLN file to begin with), and load it as a base map. If you have
one slice (i.e., a topological profile), then you are done. If you have more
than one slice (i.e., different surfaces at depth) you can load each BLN file as
a base map, select all the base maps, and overlay them to create a cross
section.
To start off, you must first have a grid file of
your surface data and a BLN file defining the line of section. Then, you can
follow the steps outlined below.
Step 1: Slicing the GRD files to create DAT
files
- Go to Grid | Slice.
- Select the grid [.GRD] file you would like to
create the cross section from and click Open.
- Select the boundary [.BLN] file that contains
the coordinates for the section line and click Open.
- In the Grid Slice dialog box, click on
the yellow open folder icon to the right of Output DAT File.
- In the Save As dialog box, type in a
file name and click Save.
- Click OK and the DAT file is created.
- Repeat for all the slices you want to create.
Use the Grid | Slice
command to create a DAT file
containing data points along the line of section.
Step 2: Modifying the DAT files and
converting them to BLN files
- Open Surfer and go to File | Open.
- Open the DAT files in the Surfer worksheet.
For a cross section, you want to plot distance along section as the X
variable (Column D in the DAT file) and elevation as the Y variable (Column
C).
- Highlight Columns A and B and go to Edit |
Clear.
- Highlight Column D and go to Edit | Cut
(or press Ctrl+X).
- Highlight Column A and go to Edit | Paste
(or press Ctrl+V).
- Highlight Column C and go to Edit | Cut
(or press Ctrl+X).
- Highlight Column B and go to Edit | Paste
(or press Ctrl+V).
Open the DAT file in the Surfer
worksheet, clear Columns A and B, and move the data
from Column D into Column A, and move the data from Column C into Column B.
Step 2a: If you want to simply show lines
depicting the profiles without any fill, then follow these steps:
- Scroll to the bottom of the file and note how
many rows of data points you have. In this example, there are 101 rows of
data.
- Scroll back to the top and highlight row 1.
- Go to Edit | Insert.
- Type the number of data points in cell A1.
Insert a row at the top of
the file and enter
the number of data points in cell A1.
- Go to File | Save As and save it as a
BLN file.
- Repeat the above steps for all the DAT files
you have.
Step 2b: If you want to fill the cross
section with different fill patterns, then follow these steps:
- Scroll to the bottom of the data file. In this
example, there are 101 rows of data.
- Highlight the last value in Column A (cell
A101 in this example) and go to Edit | Copy (or press Ctrl+C).
- Highlight the next blank cell in Column A
(cell A102) and go to Edit | Paste (or press Ctrl+V).
- In the first blank cell in Column B (cell
B102), enter a value lower than the minimum Z value in all your data files.
I will choose to enter -800 as I know it is lower than any other Z value.
- On the next blank row (row 103), put in a 0 in
Column A, and the minimum number entered in step 13 above (-800) in Column
B.
- Scroll to the top of the data file, highlight
row 1, and go to Edit | Copy.
- Scroll back to the bottom of the data file,
highlight the next empty row (row 104), and go to Edit | Paste.
Insert three additional
rows of data to the bottom
of the data file (rows 102-104 in this example).
- Note how many rows of data points you have
(104 rows of data now in this example).
- Scroll back to the top of the file and
highlight row 1.
- Go to Edit | Insert.
- Type the number of data points in cell A1.
Insert a row at the top of
the file and enter
the number of data points in cell A1.
- Go to File | Save As and save it as a
BLN file.
- Repeat the above steps for all the DAT files
you have.
Step 3: Constructing the Cross Sectional
Diagram
- Load a BLN file as a base map by going to Map
| Base Map, selecting one of the BLN files, and clicking Open.
- Repeat for all BLN files you have.
- Select all the maps with Edit | Select All
and go to Map | Overlay Maps. If you just want to see the lines of
the profile, skip to step 6.
- Double click each Base map in the Object
Manager, click on the Fill button, and set a specific fill for each
map.
- Drag and drop the Base maps in the Object
Manager so that the lowest surface profile on the cross section is the
highest in order in the Object Manager, and vice versa.
- To change the scale of the map, double click
on one of the Base maps in the Object Manager, go to the Scale tab,
and set the scale you desire. You may want to uncheck Proportional XY
Scaling to give the diagram some vertical exaggeration.
Load the BLN files as base
maps, overlay them, and set the scale and
colors as you desire. You can choose to show the surface profiles as
lines (top) or fill them to create a solid looking cross section (bottom).
Back to
Newsletter Index
|