1. Assign a NoData value to grid nodes outside the outline after gridding
Create a vector boundary file (BLN, SHP, DXF, etc.) or draw a polygon defining the boundary you want the data limited to, and assign NoData to the grid file outside the boundary.
To draw a polygon boundary:
- Select the Map object containing the grid file you would like to assign NoData to in the Contents window.
- Click Home | Add to Map | Layer | Empty Base.
- Select the Base(vector) layer in the Contents window and click Features | Group | Start Editing.
- Click Features | Insert | Polygon and draw your polygon over the map. Double click when you are finished to end the polygon.
- Press the ESC key on the keyboard to exit drawing mode.
- Click Features | Group | Stop Editing.
Once the boundary is drawn, or if you are using an existing vector file, assign NoData values to the grid nodes outside of the boundary:
- Click Grids | Edit | Assign NoData.
- In the Input Grid section, select your grid-based map layer from the list, or click Browse, select the grid file, and click Open.
- In the NoData Polygon Boundary section, select your base map layer from the list, or click Browse, select the vector file, and click Open.
- Toggle NoData Outside.
- Enter a name to save the new grid file as.
- Choose what type of map layer to create from this grid, and what map to add it to.
- Click OK.
2. Assign a NoData value to grid nodes outside the outline during gridding
Create a vector boundary file (BLN, SHP, DXF, etc.) or draw a polygon defining the boundary you want the data limited to, and assign NoData to the grid file outside the boundary. See the first set of instructions above for steps on how to draw a polygon boundary.
To assign NoData values to the grid nodes outside of the boundary during gridding:
- Click Home | Grid Data | Grid Data.
- In the Grid Data - Select Data dialog,
- Choose your data file from the Dataset 1 list on the right, or click Browse, select the data file, and click Open.
- Choose your Gridding Method from the list on the left.
- Verify your X, Y, and Z columns are set appropriately.
- Click Skip to End.
- In the Grid Data - <Gridding Method> - Output dialog,
- In the NoData Polygon Boundary section, select your base map layer from the list, or click Browse, select the vector file, and click Open.
- Toggle NoData Outside.
- Enter a name to save the new grid file as.
- Choose what type of map layer to create from this grid, and what map to add it to.
- Click Finish.
3. Use a fault file to define your outline.
Create a BLN boundary file that defines the outline you want, and use the BLN file as a fault file during gridding. This is helpful for defining a hard boundary that the gridding method cannot look through, such as a retaining wall or a building.
- Click Home | Grid Data | Grid Data.
- In the Grid Data - Select Data dialog,
- Choose your data file from the Dataset 1 list on the right, or click Browse, select the data file, and click Open.
- Choose a Gridding Method that supports faults from the list on the left. Only some gridding methods support faults (Inverse Distance to a Power, Minimum Curvature, Nearest Neighbor, and Data Metrics). Kriging does not support faults, but Minimum Curvature creates a result that is very similar to Kriging.
- Verify your X, Y, and Z columns are set appropriately.
- Click Next.
- In the Grid Data - <Gridding Method> - Options dialog,
- Expand the Faults section on the right.
- Click the open file icon in the File containing fault traces field.
- Select the BLN file defining your fault line, and click Open.
- Click Skip to End.
- In the Grid Data - <Gridding Method> - Output dialog,
- Enter a name to save the new grid file as.
- Choose what type of map layer to create from this grid, and what map to add it to.
- Click Finish.
4. Use a breakline file and also assign NoData values to the grid nodes
This is most useful when trying to create bathymetry contours for a lake or other closed area. Create a BLN boundary file defining the outline of your data limits (i.e. the lake edge), including a third column values in the BLN file defining the Z values for the breakline itself (for a lake, this could be an elevation of 0 for the lake edge).
- Click Home | Grid Data | Grid Data.
- In the Grid Data - Select Data dialog,
- Choose your data file from the Dataset 1 list on the right, or click Browse, select the data file, and click Open.
- Choose Kriging from the Gridding Method list on the left.
- Verify your X, Y, and Z columns are set appropriately.
- Click Next.
- In the Grid Data - <Gridding Method> - Options dialog,
- Expand the Breaklines section on the right.
- Click the open file icon in the File containing breaklines field.
- Select the BLN file defining your breakline, and click Open.
- Click Skip to End.
- In the Grid Data - <Gridding Method> - Output dialog,
- Enter a name to save the new grid file as.
- Uncheck Add grid as layer to.
- Click Finish
- Click Grids | Edit | Assign NoData.
- In the Input Grid section, click Browse, select the grid file you just created, and click Open.
- In the NoData Polygon Boundary section, select your base map layer from the list, or click Browse, select the vector file, and click Open.
- Toggle NoData Outside.
- Enter a name to save the new grid file as.
- Choose what type of map layer to create from this grid, and what map to add it to.
- Click OK.
You might want to create the BLN file and try each of the above methods to see which results best suit your needs.
See Also:
- Create a BLN vector boundary file, fault file, or breakline file in Surfer
- Grid only the area inside my data limits using Surfer
- Calculate the volume or area inside an irregular polygon in Surfer
Updated November 25, 2019
Comments
0 comments
Please sign in to leave a comment.