Method 1: To add a profile to an existing map with one or more grid-based map layers:
- Select your multi-layer map.
- Click Map Tools | Add to Map | Profile.
- Click on the map where you want the cross section line to start. Double click where you want the cross section line to end (you can also click along the line of section to include points in between the start and end points). As soon as you double click to end the section line, the profile object is created and placed below the map, and a base layer is added to your existing map containing the cross section line you just drew. If the map contained multiple layers from different grids, each grid is sliced and added automatically to the profile. You can turn off layers in the profile properties, if desired.
- Select the Profile object in the Contents window. Choose the appropriate surface from the Current profile dropdown list, and then edit the line and fill properties for that surface.
Method 2: The profile method is quick and easy, but you have to manually draw the cross section line on the map and you cannot modify the limits of the profile once it is created. If you have specific XY values that you need to use for the cross section line, or you want to modify the limits of the profile, you will instead want to use the Grid Slice command. This option extracts a slice through the grid along the trace defined by a polyline. The polyline can be drawn on the map as part of a base layer, or it can be in a vector file format (e.g. BLN, BNA, SHP, DXF, etc.).
If you have the XY values for the section line, an easy vector format to create is the BLN format. It is an ASCII format consisting of a header line with the number of vertices, followed by the XY coordinates of the vertices. The following example draws a line from (1.0,1.0) to (2.0,3.0).
You can create this file in Notepad or in the Surfer worksheet. More information about creating a BLN file can be found here.
Once you have one or more grid files and the polyline defining the section line saved either as a vector file or drawn on the map, then:
- Click Grids | Calculate | Slice.
- In the Grid Slice dialog, in the Input Grid section, either select a grid-based layer created from your grid file, or click the Browse button to navigate to and select the grid file.
- In the Slice Line section, either select a base layer created from your vector file or the base layer with the drawn line on it, or click the Browse button to navigate to and select the vector file.
- In the Output DAT section, give your output DAT file a name and file path.
- Click OK to generate the DAT file.
- Click File | Open
- In the Open dialog, select the DAT file and click Open to open the DAT in Surfer's worksheet.
- Select column A and click Data | Edit | Clear.
- Select column B and click Data | Edit | Delete.
- Select column C and click Home | Clipboard | Cut, select column A and click Home | Clipboard | Paste.
- Scroll to the bottom of the worksheet and note how many rows of data there are. Scroll back to the top.
- Select row 1 and click Data | Edit | Insert.
- Enter the number of rows in cell A1.
- Click File | Save As.
- In the Save As dialog, set the Save as type to BLN Golden Software Blanking (*.bln), give your file a name, and click Save.
- Click File | Close to close the file.
- Back in the plot window, click Home | New Map | Base | Base.
- In the Import dialog, select the newly saved BLN file and click Open.
- The map is created with proportional scaling. If you would like to increase the vertical exaggeration,
- Select Map in the Contents window.
- In the Properties window, on the Scale page, uncheck Proportional XY scaling.
- If you see a Surfer Warning telling you the width or height will be less than 0.25 inches, click OK to continue.
- In the X Scale and/or Y Scale section, enter the desired Length in page units. For example, enter 6 inches for the X Scale Length and 1.5 for the Y Scale Length to match the default scaling of a profile.
- Select the Base layer in the Contents window.
- On the General page in the Properties window, change the Color in the Line properties section.
- Repeat steps 1-13 for any other grid files you want to be part of your profile line, but click Home | Add to Map | Layer | Base during step 8 rather than Home | New Map | Base | Base, so each new section is added to the existing profile rather than added to a new profile.
For different fill colors and patterns, you can convert the polylines in each Base layer to a polygon and fill the polygon. To do this:
- Right click over one of the Base layers in the Contents window and click Start Editing.
- Select the polyline within the Base layer.
- Click Features | Edit Features | Reshape.
- Select the farthest node to the right, hold the CTRL key down and click below the bottom axis and to the right of the right axis.
- Select the farthest node to the left, hold the CTRL key down and click below the bottom axis and to the left of the left axis.
- Press ESC to exit reshape mode.
- Click Features | Change Type | Change Type | Polyline to Polygon. Now the surface is a polygon which can be filled.
- With the polygon selected, on the Fill page in the Properties window, change the fill properties as desired.
- Right click over the Base layer in the Contents window and click Stop Editing.
- Repeat steps 1-9 for any other Base layers.
- If necessary, click and drag the base layers in the Contents window so the layer with the shortest elevation is at the top of the list of layers in the Contents window, and the layer with the tallest elevation is at the bottom of the list.
Another option is to create the slice DAT files in Surfer, and create the cross-sections in Grapher using the DAT files. Grapher has the ability to add fill between curves, simplifying the process of displaying the data.
See also: How can I create a BLN file
Updated October 27, 2017