Resample, resize, or crop a grid file in Surfer

Resampling, resizing, or cropping a grid file in Surfer allows you to tailor your data for more efficient analysis and clearer results. These tools can improve processing speed by reducing file size, focus attention on a specific area of interest, ensure compatibility between grids for mathematical operations, and prepare data for use in other software or models. 

Within Surfer, there are three ways to resize (clip/crop/extend) or resample a grid to specified XY extents or a specified number of grid rows and columns. See the following for additional details on each method.

Method 1: Grid Mosaic
Method 2: Grid Extract
Method 3: Grid Smooth

Method 1: Grid Mosaic

This is a good option if you want to resample the grid by changing the grid spacing, the number of rows and/or columns, or the X or Y min/max values for the grid. This is the most common way to resample or resize or crop a grid file.

  1. Click Grids | Resize | Mosaic, specify the input grid file, and click Open to display the Grid Mosaic dialog. 
  2. Change the Output Grid Geometry to the desired values. You can change the Minimum, Maximum, Spacing or the # of Nodes
  3. Select the desired Resampling Method, either Nearest Neighbor, Bilinear Interpolation, or Cubic Convolution. In most cases, the default Bilinear Interpolation is best.
  4. Change the Output Grid File, if desired, to change the file type and name.
  5. Choose to Add grid as layer to:, if desired. 
  6. Click OK.  

Method 2: Grid Extract

This is a good option if you want to shave off a few rows and/or columns, if you want to thin the grid by reading every n-th grid node, or if you know exactly which rows and columns you want to extract from the grid. This command only works in grid rows and columns (not XY extents).

  1. Click Grids | Resize | Extract.
  2. In the Extract Grid dialog, select a grid file in the Input Grid menu;
    1. Or, click Browse, select a grid file, and click Open.
  3. You can clip grid nodes off sides, top and bottom of the grid by increasing the First or decreasing the Last values; or, you can filter the grid by setting the Read Every to a higher value. This method does not resample the grid file, it simply removes vertical or horizontal lines of grid nodes to resize the grid.
  4. Change the Output Grid, if desired.
  5. Choose to Add grid as layer to:, if desired. 
  6. Click OK.

Method 3: Grid Smooth

This is a good option if you want to resample the grid by adjusting the grid nodes. You can insert nodes to increase the resolution, or you can recalculate the grid to have a different number of rows and/or columns. 

  1. Click Grids | Edit | Spline Smooth.
  2. In the Spline Smooth dialog, select a grid file in the Input Grid menu;
    1. Or, click Browse, select a grid file, and click Open.
  3. To insert nodes to increase resolution:
    1. Change the Method to Insert Nodes, change the Number Nodes to Insert to the desired number of additional nodes. A spline method is used to insert the additional nodes.
  4. To recalculate the grid:
    1. Change the Method to Recalc Grid, change the Final Grid Size to the desired number of rows and columns. A spline method is used to recalculate the grid node values.
  5. Change the Output Grid, if desired.
  6. Choose to Add grid as layer to:, if desired. 
  7. Click OK.  

 

Was this article helpful?
...

Comments

0 comments

Please sign in to leave a comment.