Contour lines are drawn on a topographic map to indicate ground elevation or depression. In Surfer, you can add custom contour lines, customize those lines, and indicate NoData areas with contour lines, helping ensure clarity of data in your contour maps.
- Add a specific contour line to my contour map in Surfer
- Use gradient to color contour lines
- Create dashed contour lines in the NoData areas of a contour map in Surfer
Add a specific contour line to my contour map in Surfer
Surfer's advanced level method can be used to specify the contour lines that are displayed on a contour map. To use this method to add a specific contour line, follow the steps below.
- In the Contents window, select the Contours layer.
- In the Properties window, click the Levels tab.
- In the General section, in the Level method field click the drop down and select Advanced.
- Right below Level method, in the Contour levels field click the Edit levels button.
- In the Levels for Map dialog, click the current level that will follow your desired contour.
- Click the Add button. The new contour level will be added directly before the level selected in Step 4.
- Double click the new contour level value, enter the desired value in the Z Level dialog, and click OK.
- If desired, adjust the Line, Fill, Label, and Hachure properties.
- Click OK. The map will now show the newly added contour line.
Adding contour line in the Levels for Map dialog.
Use gradient to color contour lines
You can use the Advanced Level method to give the contour lines gradational coloring. Please see the steps below.
- In the Contents window, click the Contours layer.
- In the Properties window, click the Levels tab.
- Set the Level method to Advanced.
- Click Edit Levels.
- In the Levels for Map dialog:
- Click the Line column header.
- In the Line dialog, set Properties to Gradational.
- Click the colormap next to Color.
- In the Colormap Editor dialog, use a Preset, or change the colormap to create the gradient color scale.
- Click OK in the Colormap Editor dialog.
- Click OK in the Line dialog.
- Click OK in the Levels for Map dialog.
Using gradient to color contour lines in the Levels for Map dialog.
Create dashed contour lines in the NoData areas of a contour map in Surfer
- Create a polygon boundary to indicate the NoData area.
- To draw a polygon by hand or export a single contour line refer to this article, Create a NoData Polygon or BLN file in Surfer.
- To use Surfer to create an alpha share around your data points, see this article Using Alpha Shapes in Surfer.
- Create a new layer with data only inside the polygon.
- In the Contents window, select the contour layer.
- Click Grids | Edit | Assign NoData.
- The Assign NoData to Grid window will pop up.
- In the Input Grid section select the contour layer with the data you want to separate.
- In the NoData Polygon Boundary section select the polygon you created in Step 1.
- Select the NoData Outside selection.
- In the Output Grid section, click Change Filename button to save the data inside the polygon to a file in the Save Grid As window and click Save.
- Check the Add grid as layer to: checkbox and select Map from the dropdown.
- Click OK.
- The Surfer window will pop up and tell you the file has been assigned no data, and it's file name and location.
- Click OK
- Create a new layer with data only outside the polygon
- In the Contents window, select the contour layer.
- Click Grids | Edit | Assign NoData.
- The Assign NoData to Grid window will pop up.
- In the Input Grid section select the contour layer with the data you want to separate.
- In the NoData Polygon Boundary section select the polygon you created in Step 1.
- Select the NoData Inside selection.
- In the Output Grid section, click Change Filename button to save the data outside the polygon to a file in the Save Grid As window and click Save.
- Check the Add grid as layer to: checkbox and select Map from the dropdown.
- Click OK.
- The Surfer window will pop up and tell you the file has been assigned no data, and it's file name and location.
- Click OK
- Uncheck the box next to the original contour layer.
- If there is too large a gap between the two contour maps, where the boundary polygon line is you can do one of the following. Otherwise skip this step.
- Regrid the original grid file with higher resolution (more grid nodes). Then repeat step 2 and 3 using the newly created map/layer.
- Click Grid | Spline Smooth to insert more nodes in the original grid file. Smaller grid cells or more grid nodes will reduce the gap at the blanked edge. Then repeat step 2 and 3 using the newly created map/layer. (The Dashed in Blanked area.srf example attached and the map image below on the right were created with 300 x 300 grid lines.)
- Change the line style for the contour maps inside and outside the boundary polygon as desired.
Two examples of Surfer contour maps showing dashed contours outside the area of interest.
Additional customize contour line resources
For more in-depth information about these topics please click the links below.
- VIDEO : Hone your maps by Assigning NoData with Surfer (webinar)
- VIDEO : Surfer Converting Areas in a Grid File to NoData Training Video
- Surfer Help > Map Layer Types > Contour Maps
- Surfer Help > Map Layer Types > Contour Maps > Contour Map General Properties
- Surfer Help > Map Layer Types > Contour Maps > Contour Map Levels Properties
- Surfer Help > Map Layer Types > Contour Maps > Contour Map Advanced Levels Properties
Updated January 2024.
Comments
Please sign in to leave a comment.