How to calculate a cross-section through the terrain

(Advanced)

This topic describes how you can make a cross-section through (a part of) your study area. In general, the procedure is as follows:

  1. Choose the location of the cross-section and make raster map which only shows the pixels of the cross-section.
    You can also screen-digitize one segment along which you want to obtain a cross-section.
  2. Convert the raster map to a points map, or convert the segment map to a point map.
  3. Open the point map as a table and perform a calculation on the point data so that for the coordinates of all points, the height information is retrieved from a DEM.
  4. Finally, make a graph to show the cross-section.

Choosing the location of the cross-section:

Open some satellite images and raster maps. You can use for instance the TMbands or the Geology or Landuse maps from the Cochabamba area. Furthermore, it is assumed that you already created a DEM from the area.

Column 165 in the Geology map seems to cover many different terrain units and is chosen as the line along which the cross-section should be made. To make a raster map showing the cross-section, use the formula:

crosssec = IFF(%C=165, Geology,?)

In this expression, you specify with %c the column number along which you want to obtain the geology class names.

Raster map crosssec only shows the geological classes along column 165; all other pixels of this map are undefined.

Convert the raster map to a point map:

Drag raster map crosssec from the Catalog to the Raster to Point operation in the Operation-list.

The Raster to Points dialog box appears:

The output point map will be calculated and displayed.

In the Display Options dialog box of the point map, accept the default representation and click on OK. The point map will appear on the screen.

(When you screen-digitized a segment along which you want to obtain the cross-section, use the Segments to Points operation. The operation extracts points at regular distances along the segment; you have to specify the distance between the subsequent point coordinates (e.g. 20m).)

Open the point map as a table and performing calculations in the point table:

To open the point map as a table, click point map crosssec in the Catalog with the right mouse button, and choose Open as table from the context-sensitive menu.

The table shows all points. Columns X and Y are the XY-coordinates of the points and column Name shows the geology class of each point.

   

Coordinate

Name

21

( 798770.00, 8090110.00)

Shales

22

( 798770.00, 8090090.00)

Shales

23

( 798770.00, 8090070.00)

Shales

24

( 798770.00, 8090050.00)

Shales

25

( 798770.00, 8090030.00)

Shales

26

( 798770.00, 8090010.00)

Shales

Now, make the command line visible by choosing the Command Line command from the View menu in the table window.

If you would like for instance to retrieve land use information for all points, i.e. to find out about the land use type at each point coordinate, you can type the following formula on the command line of the table window:

Landuse = MAPVALUE(Landuse,Coordinate)

For each XY-coordinate found in the Coordinate column in the point table, the land use class as found in raster map Landuse at that coordinate will be retrieved; this is stored in column Landuse. Accept the defaults in the Column Properties dialog box and click OK.

The new column is calculated and appears in the table.

   

Coordinate

Name

Landuse

629

( 798770.00, 8077950.00)

Lake deposits

Agriculture

630

( 798770.00, 8077930.00)

Lake deposits

Agriculture

631

( 798770.00, 8077910.00)

Lake deposits

Agriculture

632

( 798770.00, 8077890.00)

Lake deposits

Agriculture

633

( 798770.00, 8077870.00)

Lake deposits

Urban periphery

634

( 798770.00, 8077850.00)

Lake deposits

Urban periphery

In the same way, height information can be retrieved for each point coordinate. You can use the same MAPVALUE function, but this time you will information from raster map DEM:

Altitude = MAPVALUE(Dem,Coordinate)

For each XY-coordinate as found in column Coordinate, an elevation value is retrieved from the Digital Elevation Model (Dem). The output is written in column Altitude.

   

Coordinate

Name

Landuse

Altitude

21

( 798770.00, 8090110.00)

Shales

Grassland

4260.0

22

( 798770.00, 8090090.00)

Shales

Grassland

4257.8

23

( 798770.00, 8090070.00)

Shales

Grassland

4256.7

24

( 798770.00, 8090050.00)

Shales

Grassland

4254.4

25

( 798770.00, 8090030.00)

Shales

Grassland

4253.0

26

( 798770.00, 8090010.00)

Shales

Grassland

4252.7

Furthermore, you can see that the difference between each subsequent Y-coordinate is 20m; this is the pixel size of the original raster map from which you extracted the points.

To make a distance axis in kilometers for the graph, you can use the following expression:

Distance = %R * 20 / 1000

In this expression, %R are the record numbers; these are multiplied by 20m and divided by 1000. The answers are stored in column Distance.

   

Coordinate

Name

Landuse

Altitude

Distance

21

( 798770.00, 8090110.00)

Shales

Grassland

4260.0

0.420

22

( 798770.00, 8090090.00)

Shales

Grassland

4257.8

0.440

23

( 798770.00, 8090070.00)

Shales

Grassland

4256.7

0.460

24

( 798770.00, 8090050.00)

Shales

Grassland

4254.4

0.480

25

( 798770.00, 8090030.00)

Shales

Grassland

4253.0

0.500

26

( 798770.00, 8090010.00)

Shales

Grassland

4252.7

0.520

(When you screen-digitized a segment from which you extracted points, then multiply the record numbers with the distance value that you specified in the Segments to Points operation, and divide by 1000 if you want to obtain values in kilometers.)

Displaying the cross-section as a graph:

Now you can display the cross-section by making a graph which shows the relief values along the distance values. From the File menu in the table window, choose Create Graph.

The Create Graph dialog box appears:

Accept other defaults, click OK, and the graph is displayed on the screen.

In this case, you can also choose column Y for the X-axis of the graph, because the points were extracted along a column of a north-oriented raster map; in the point table you can see that X-coordinate values are constant and only Y-coordinate values change.

The graph shows the relief along the cross-section. The first point lies high in the mountains on an altitude of around 4300 m while the end of the cross-section is in a relatively flat area around 2500 m altitude.

See also: