Convert vector file to raster grid in Surfer

 
A vector file (such as SHP or DXF) can be converted to a grid file (GRD) in Surfer using the Grid from Contours command. The grid file can then be used to create contour maps, 3D maps, and any other grid-based maps in Surfer. 

How to convert your vector file to a raster grid:

These steps use an SHP file as an example, but the steps are the same for all vector file formats.
 
  1. Click Grids | New Grid | Grid from Contours.
  2. In the Contour Source section, click the Contour Source dropdown list to select your base map layer from an open plot. Or click the Browse button next to the list, select your SHP file, and click Open. In the Select Field dialog, choose the attribute containing your Z information from the dropdown list, then click OK.
  3. In the Fault Source section, if you want your raster grid file to contain a fault, use the Fault Source dropdown list to select the base map layer containing your fault BLN file. Or click the Browse button, select your fault BLN file, and click Open.
  4. In the Output Grid Geometry section, set the desired limits for the grid file and the grid spacing/number of nodes, or Copy geometry from another grid. 
  5. In the Options section, 
    1. In the NoData outside of the menu, choose Convex hull to assign NoData values to all grid nodes that fall outside of the convex hull of the data.
    2. In the Inflate convex hull by box, enter a positive or negative value (in map units) if you choose to blank the grid outside the convex hull of the data, to inflate or deflate the convex hull by a certain amount.
    3. In the Extrapolation factor, enter a positive value to control the rate of change of z values for grid nodes with only one bounding contour (usually near the peaks and basins of your contours). The slope between the nearest two contour lines is multiplied by the Extrapolation factor to perform linear extrapolation. Values are explained in the table below.

      Value Explanation
      0 Generates a grid with flat peaks and basins
      >0 and <1 Lessens the rate of change in Z with distance from the nearest contour (generates lower peaks and shallower basins)
      1 Default
      >1 Increases the rate of change in Z with distance from the nearest contour (generates higher peaks and deeper basins)
  6. Check the box to the left of Close open contours to transform polylines that nearly link back to their starting points into polygons, allowing them to be filled with a specified color.
  7. If you decide to close open contours, input a distance tolerance in the Ends within box. If the starting and ending points of the contour line are identical or sufficiently close within this tolerance, the contour will not intersect with another contour line when closing the polyline; the polyline will be transformed into a polygon.
  8. Check the box for Partial contour cleanup to enhance performance for open contours ending within the map, particularly near map edges or when contour lines reveal faulting.
  9. In the Output Grid section, assign a name and file path to your output grid file. To save in a specific grid file type, click the open file icon to explore additional saving options.
  10. Check the box labeled Add grid as layer to generate a new map layer from this grid, then choose the map to which to add it from the drop-down menu.
  11. Select what type of map to create from the New layer type drop-down list.
  12. Click OK to create the raster grid (GRD) file from your vector SHP file.

Grid Contour Dialog Window Example

Example of the  Grid from Contours command dialog box.

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.