SDC Sphy Manual
  • 📚Readme
  • manual
    • SPHY Manual
      • 1. Introduction
      • 2. Theory
        • 2.1 Background
        • Modules
        • Reference and potential evaporation
        • Dynamic vegetation processes
        • Snow processes
        • Glacier processes
        • Soil water processes
        • Soil erosion processes
        • Routing
      • 3. Applications
        • Irrigation management in lowland areas
        • Snow- and glacier-fed river basins
        • Flow forecasting
      • 4. Installation of SPHY
      • 5. SPHY model GUI
        • 5.1 Map canvas layers and GUI interactions
        • 5.2 Top menu buttons
        • 5.3 General settings
        • 5.4 Climate
        • 5.5 Soils
        • 5.6 Groundwater
        • 5.7 Land use
        • 5.8 Glaciers
        • 5.9 Snow
        • 5.10 Routing
        • 5.11 Report options
        • 5.12 Running the model
        • 5.13 Visualizing model output
      • 6. SPHY model preprocessor v1.0
        • 6.1 Overview
        • 6.2 General settings
        • 6.3 Area selection
        • 6.4 Modules
        • 6.5 Basin delineation
        • 6.6 Stations
        • 5.7 Meteorological forcing
      • 7. Build your own SPHY-model
        • Select projection extent and resolution
        • Clone map
        • DEM and Slope
        • Delineate catchment and create local drain direction map
        • Preparing stations map and sub-basins map
        • Glacier fraction map
        • Soil hydraulic properties
        • Other static input maps
        • Meteorological forcing map series
        • Open water evaporation
        • Soil erosion model input
        • Sediment transport
        • Reporting
      • Appendix 1: Input and Output
      • Appendix 2: Hindu Kush-Himalaya database
      • References
      • Copyright
Powered by GitBook
On this page
  1. manual
  2. SPHY Manual
  3. 7. Build your own SPHY-model

Delineate catchment and create local drain direction map

You can now use the DEM you created in the previous section to generate a local drain direction (LDD) map for your own model area.

To create a flow direction map (or local drain direction (LDD)), you can use the pcraster command lddcreate. Type the following command in the Windows Command line window:

pcrcalc ldd.map = lddcreate(dem.map, 1e31,1e31,1e31,1e31)

This command should also fill the sinks in the DEM to avoid that pits are generated in the depression in the DEM, which could hamper the water to flow to the basin’s outlet. A good way to test if the LDD map is correct is to calculate for each cell how many cells are upstream. You can do this using the pcraster command accuflux. Type:

pcrcalc accuflux.map = accuflux(ldd.map,1)

Drag the newly generated accuflux.map to the QGIS canvas. Check if the stream network is complete, and all branches are connected to the outlet point.

If the generated LDD is not entirely correct and not all streams are connected toward the downstream outlet point, this happens because during the creation of the LDD map, pits have been generated where depressions in the landscape are present. More details on the LDD generation can be found in the PCRASTER online manual. There are multiple ways to overcome the problem of pit generation. The first and most easy option is to try this command in the Windows Command line window:

pcrcalc ldd.map = lddrepair(ldd.map)

If this does not solve the correct creation of the ldd.map, then you can try the following options:

  • Test different values for the parameters in the lddcreate command

  • Remove pits manually by changing the values for those cells.

  • Use a map with the streams present in your study area and “burn” them into the DEM to force the other cells to drain in into them.

PreviousDEM and SlopeNextPreparing stations map and sub-basins map

Last updated 1 year ago