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.
- Click Grids | Resize | Mosaic, specify the input grid file, and click Open to display the Grid Mosaic dialog.
- Change the Output Grid Geometry to the desired values. You can change the Minimum, Maximum, Spacing or the # of Nodes.
- Select the desired Resampling Method, either Nearest Neighbor, Bilinear Interpolation, or Cubic Convolution. In most cases, the default Bilinear Interpolation is best.
- Change the Output Grid File, if desired, to change the file type and name.
- Choose to Add grid as layer to:, if desired.
- 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).
- Click Grids | Resize | Extract.
- In the Extract Grid dialog, select a grid file in the Input Grid menu;
- Or, click Browse, select a grid file, and click Open.
- 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.
- Change the Output Grid, if desired.
- Choose to Add grid as layer to:, if desired.
- 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.
- Click Grids | Edit | Spline Smooth.
- In the Spline Smooth dialog, select a grid file in the Input Grid menu;
- Or, click Browse, select a grid file, and click Open.
- To insert nodes to increase resolution:
- 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.
- To recalculate the grid:
- 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.
- Change the Output Grid, if desired.
- Choose to Add grid as layer to:, if desired.
- Click OK.
Comments
Please sign in to leave a comment.