DEM-Hydro Processing scripts

Cumulative hypsometric curve

The Cumulative hypsometric curve script crosses a merged catchments map with your DEM. The script will ask for the ID of a single catchment that you wish to use in the Cross. In the resulting cross table, cumulative values are calculated for the Area of subsequent height values in pixels and percentages. The output is stored in columns: cum_area and cum_percent.

With the output cross table and its newly calculated columns, you can create graphs:

This will give you a so-called cumulative hypsometric curve.

Dialog box options:

Merged catchment map:

Select a raster map that is the result of a previous Catchment Merge operation.

Selected catchment ID:

Type the ID of a catchment with which you wish to perform the cross.

DEM:

Select a raster map with height values, i.e. your DEM.

Output table:

Type a name for the output cross table that will contain the cumulative values.

Short explanation of the calculations by the script:

  1. A temporary (bool) map is created which only contains the selected catchment.
  2. This map is crossed with your DEM.
  3. In the cross table, first a temporary cumulative area column is calculated in number of pixels:

     

    output column cum_area = ColumnCumulative(NPix)

     

    The script calculates with NPix, so that even if you use a map with geographic LatLon coordinates, answers will be obtained.

  4. Next, a temporary column is calculated to obtain areas in percentages:
  5.  

    temp_col = (NPix/(SUM(NPix)))*100

     

  6. Subsequently, in the cross table, column cum_percent is calculated as:
  7.  

    output column cum_percent = ColumnCumulative(temp_col)

     

  8. Possible cumulative values in percentages that are greater than 100 are rounded to 100.
  9. Finally, the temporary map and the temporary column are removed, and the output cross table is displayed.

Example:

Below you find two graphs that are created from the output cross table of this script:

See also: