Grid Slice

The Grids | Calculate | Slice command or the button produces cross sectional data for 2D and 3D objects. The cross section is generated by taking a vertical slice through a gridded surface along a boundary line. Surface traces on a cross section are sometimes referred to as profile lines.

Another method to create a slice from the data is to use the Map Tools | Add to Map | Profile command. The profile automatically creates a graph showing accumulated distance and elevation. The Grids | Calculate | Slice command produces a data file that can show the same object, but contains additional data as well.

The surface is based on a grid file and the boundary line is based on the information in a vector file or base map. The boundary line can be defined by a polyline in a base map or by one of the following file formats:

BLN Golden Software Blanking

GSB Golden Software Boundary

BNA Atlas Boundary

GSI Golden Software Interchange

DDF SDTS TVP

KML Google Earth

DLG USGS Digital Line Graph

MIF MapInfo Interchange Format

DXF AutoCAD Drawing

PLT Golden Software Plotcall

E00 Esri AcrInfo Export

PLY Stanford Polygon

EMF Windows Enhanced Metafile

SHP Esri Shapefile

GML Geo. Markup Language

STL Stereolithograph

GPX GPS Exchange Format

WMF Windows Metafile

At each point where the boundary line crosses a grid line, a cross section data point is generated.

The Grid Slice Dialog

Click the Grids | Calculate | Slice command or the button. The Grid Slice dialog opens.

The Grid Slice dialog allows you to specify the resulting .BLN and/or .DAT file name and location.

Input Grid

Specify the source map layer or grid file in the Input Grid section. Click the current selection and select a map layer from the list. Only map layers created from grid files are included in the Input Grid list. Click Browse to load a grid file with the Open Grid dialog.

Slice Line

Specify the file or base layer with the slice line in the Slice Line section. Load either a map layer or vector file in the Slice Line section:

  • Click the current selection and select a base layer from the list. Only base layers that contain at least one polyline or polygon will be included in the list. The base layer must use the same source coordinate system as the grid.
  • Click Browse to load a vector file with the Open dialog. The file must use the same coordinate system as the grid.

Once a file or map layer has been selected the number of lines and vertices is displayed below the slice line selection.

Output BLN File

A Blanking BLN file may be produced with the slicing operation by selecting the Output to BLN file option. Type a path and filename for the Output BLN, or set the path and filename in the Save As dialog by clicking the image\open2.png button next to Output BLN. The blanking file contains three columns of data:

Column A:

Accumulated horizontal distance along the boundary line. This distance is accumulated even if the boundary lines go outside the grid region. The distance is reset to zero for each new boundary in the blanking file.

Column B:

Z value at the boundary line and grid line (row or column) intersection.

Column C:

Boundary number, used when more than one boundary line is contained in the file. Each new boundary line in the blanking file is assigned a different number.

The output BLN file can be used to display a profile in Surfer as a base map. The Profile command generates a profile with more display options. However, it may be faster to generate a profile from the Output BLN when the surface trace already exists in a vector file format and has many vertices. To create a profile from the Output BLN file,

  1. After creating the BLN file with the Slice command, click the Home | New Map | Base command
  2. Select the output BLN file in the Import dialog.
  3. Click Open and the profile is created as a base map. The X axis corresponds to accumulated distance along the trace, and the Y axis corresponds to grid Z values along the trace.
  4. Select the Map object for the output BLN base map.
  5. On the Properties window Scale page, clear the Proportional XY scaling check box.
  6. On the Properties window Scale page, adjust the X Scale and Y Scale section Length (page units) property values until the profile scaling is displayed as desired.

Output DAT File

Cross section data can be written to an ASCII data .DAT file during the Slice operation by selecting the Output to .DAT file option. Type a path and filename for the Output DAT, or set the path and filename in the Save As dialog by clicking the image\open2.png button next to Output DAT. The ASCII data file consists of five columns of data. When the profile is written to the ASCII file, a new row of data is generated for each point where the boundary line intersects the grid lines in the data file. The output data file can be used to plot the profile in a graphing application, such as Grapher. The columns in the data file are arranged as follows:

Column A:

X coordinate of the boundary line and grid line (row or column) intersection.

Column B:

Y coordinate of the boundary line and grid line (row or column) intersection.

Column C:

Z value at the boundary line and grid line (row or column) intersection.

Column D:

Accumulated horizontal distance along the boundary line. This distance is accumulated even if the boundary lines go outside the grid region. The distance is reset to zero for each new boundary in the blanking file.

Column E:

Boundary number, used when more than one boundary line is contained in the file. Each new boundary line in the blanking file is assigned a different number.

Set Values Outside Grid To

The Set values outside grid to option assigns a special Z value to points that lie beyond the grid limits when the check box is active. If this option is not activated, points outside the grid limit are not included in the output data file. The default value is equal to the following equation:

image\img00212.png

Set NoData Values To

The Set NoData values to option assigns a special Z value to points that lie inside NoData regions when the check box is selected. If the check box is cleared, points inside the NoData areas are not included in the output data file.

OK or Cancel

Click OK and a data file (and a blanking file, if specified) is created. Click Cancel to exit the dialog without creating the data.

To Create a Data File Containing Cross Section Data

  1. Click the Grids | Calculate | Slice command.
  2. In the Open Grid dialog, select a grid file and click Open.
  3. In the Open dialog, select the blanking file to use when producing the profile data and then click Open.
  4. If desired, enter a name for the Output BLN in the Grid Slice dialog by clicking the image\open2.png button to open the Save As dialog.
  5. Specify the name for the Output DAT by clicking the image\open2.png button to open the Save As dialog.
  6. Click OK and a data file (and a blanking file, if specified) is created.

You can display the profile line across the contour map. This is the profile line used to produce the following cross section.

This is the cross section taken from the profile line on the map. The cross section was created as a base map using the Output BLN.

See Also

3D Polygons

3D Polylines

Plotting Cross Sections

Profile