Flow magnitude and drainage basins

Short title:  flowMag.lsc

Inputs: A DEM (the Baranja Hill 25m DEM is used as an example).
Outputs: A raster containing flow magnitude values for the DEM and a raster containing drainage basins.

Purpose and use: 

Script to calculate flow magnitude and drainage basins from a DEM. It demonstrates how recursive function calls in LandScript can be used to calculate zonal geomorphometric parameters using map algebra. To use this script, start LandSerf 2.3 or above and then open the LandScript editor (menu: Edit->LandSctipt Editor).
Part of this script appears in Chapter 14 of Hengl and Reuter (2008) [the Geomorphometry book]. This script runs slowly so is better as a demonstration of how recursive function calls can be made in LandScript rather than a production quality flow magnitude calculator.

Programming environment: Landserf
Status of work:  Public Domain
Reference:  Geomorphometry: Concepts, Software, Applications
Data set name:  Baranja hill



  • "International Society for Geomorphometry (ISG) is a non-commercial, nongovernmental association of researchers and experts that are open for free exchange of knowledge and opinions about various aspects of DEM processing and Digital Terrain Modeling."

We use cookies to give you the best experience. Disclaimer