SPHY Manual - All versions
  • 📚Readme
  • manual
    • SPHY manual 3.1
      • Introduction
      • Theory
        • Background
        • Modules
        • Reference and potential evaporation
        • Dynamic vegetation processes
        • Snow processes
        • Glacier processes
        • Soil water processes
        • Soil erosion processes
        • Routing
      • Applications
        • Irrigation management in lowland areas
        • Snow- and glacier-fed river basins
        • Flow forecasting
        • Soil erosion and sediment transport
      • Installation of SPHY
        • Installing SPHY as a stand-alone application
          • Miniconda
          • SPHY v3.1 source code
      • 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-basin.map
        • Glacier table
        • Soil hydraulic properties
        • Other static input maps
        • Meteorological forcing map series
        • Open water evaporation
        • Dynamic vegetation module
        • Soil erosion model input
          • MMF
          • Soil erosion model calibration
          • Soil erosion model output
        • Sediment transport
      • Reporting and other utilities
        • Reporting
        • NetCDF
      • References
      • Copyright
      • Appendix 1: Input and Output
      • Appendix 2: Input and Output description
      • Appendix 3: Soil erosion model input
        • MUSLE
        • INCA
        • SHETRAN
        • DHVSM
        • HSFP
    • SPHY manual 3.0
      • Introduction
      • Theory
        • Background
        • Modules
        • Reference and potential evaporation
        • Dynamic vegetation processes
        • Snow processes
        • Glacier processes
        • Soil water processes
        • Soil erosion processes
        • Routing
      • Applications
        • Irrigation management in lowland areas
        • Snow- and glacier-fed river basins
        • Flow forecasting
      • Installation of SPHY
        • General
        • Installing SPHY as a stand-alone application
          • Miniconda
          • SPHY v3.1 source code
      • 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-basin.map
        • Glacier fraction map
        • Soil hydraulic properties
        • Other static input maps
        • Meteorological forcing map series
        • Open water evaporation
        • Dynamic vegetation module
        • Soil erosion model input
          • MUSLE
          • MMF
          • INCA
          • SHETRAN
          • DHVSM
          • HSFP
          • Soil erosion model calibration
          • Soil erosion model output
        • Sediment transport
        • Applications
        • Reporting
        • NetCDF
      • References
      • Copyright
      • Appendix 1: Input and Output
Powered by GitBook
On this page
  1. manual
  2. SPHY manual 3.1
  3. 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-basin.map

Last updated 1 year ago