Delineating a watershed from a DEM is the canonical SAGA GIS workflow — the task its hydrology libraries were built around. It is also a chain, not a single tool: each stage consumes the previous stage’s output, and most failed delineations are really a failed early stage discovered late. This page walks the chain in order, naming the tools exactly as SAGA’s official 9.12.0 tool documentation names them, with the inputs and outputs of each stage.
Before the chain: a DEM worth routing
Start with a DEM in a projected coordinate system, clipped a little beyond the catchment you expect — flow needs somewhere to come from, and a basin clipped at its divide will be drawn wrong. Check the elevation range for spikes and voids. Everything that follows assumes water can, in principle, flow from every cell to the edge of the grid; making that true is stage one.
Stage 1: Fill the sinks
Real DEMs contain depressions — cells or pits lower than everything around them — from sensor noise, resolution limits and genuine closed basins. Flow routing stops dead in a sink, so the standard first step removes them. SAGA’s Terrain Analysis – Preprocessing library offers several; the flagship is Fill Sinks (Wang & Liu), which the documentation describes as using the Wang & Liu (2006) algorithm “to identify and fill surface depressions”, enhanced so that it not only fills but “preserves a downward slope along the flow path” by enforcing a minimum slope gradient between cells. That detail matters: a naively filled flat produces cells with nowhere to flow, while this version guarantees the filled surface still drains. The tool produces the depressionless DEM, a flow-path grid and a watershed-basins grid, and its documentation points very large datasets (it names LiDAR data as the example) to the lighter Fill Sinks XXL (Wang & Liu) variant. A Fill Sinks (Planchon/Darboux, 2001) implementation sits alongside as an alternative algorithm, and the library’s Sink Removal and Breach Depressions tools cover cases where cutting through a barrier is more honest than filling it — road embankments and dams being the classic examples.
Input: your raw DEM. Output: the filled, hydrologically sound DEM that every later stage should use — never the raw one.
Stage 2: Flow accumulation and catchment area
With a draining DEM, compute where the water goes. Flow Accumulation (Top-Down) (Terrain Analysis – Hydrology) processes the DEM “downwards from the highest to the lowest cell”, in its documentation’s words, and offers a shelf of routing algorithms: Deterministic 8 (D8, O’Callaghan & Mark 1984), the Braunschweiger Reliefmodell, Rho 8, Multiple Flow Direction (Freeman 1991; Quinn et al. 1991), Deterministic Infinity (Tarboton 1997), Triangular Multiple Flow Direction (Seibert & McGlynn 2007), and a maximum-downslope-gradient MFD variant (Qin et al. 2011). The choice is a modelling decision: single-direction methods (D8) keep flow in one channel — right for defining stream networks — while multiple-flow-direction methods spread flow across downslope neighbours, which behaves better on hillslopes and is what the wetness indices expect. The library also carries recursive, parallelizable and mass-flux variants of flow accumulation for large grids and special purposes.
Input: the filled DEM. Output: flow accumulation / catchment-area grids — how much upslope area drains through each cell. This grid is also the direct input for the Topographic Wetness Index.
Stage 3: Extract the channel network
Accumulation becomes a stream map when you decide how much upslope area makes a channel. Channel Network (Terrain Analysis – Channels) “derives a channel network based on gridded digital elevation data” and — per its documentation — uses its initiation options to determine the conditions under which channels start; the usual initiation is a threshold on the accumulation grid. Pick the threshold with your landscape in mind: too small and every hillside wrinkle becomes a stream, too large and the headwaters vanish. The same Channels library provides Strahler Order for classifying the resulting streams, and Vertical Distance to Channel Network and its companions for relating the terrain back to its channels.
Input: the filled DEM and the accumulation grid. Output: the channel network as grid and line work.
Stage 4: Delineate the basins
The payoff stage divides the terrain into the catchments draining to each channel reach. The Channels library’s Watershed Basins and Watershed Basins (Extended) tools do exactly this from the flow-routing results. A convenient one-pass alternative is Channel Network and Drainage Basins, a Deterministic-8-based analysis whose documented outputs bundle the whole stage together: flow direction, flow connectivity, Strahler order and drainage-basins grids, plus channel segments, drainage basins and junctions as shapes — with a threshold parameter defined, elegantly, as the Strahler order at which a channel begins. Whichever route you take, the deliverables are a basin grid (every cell labelled with its catchment) and basin polygons you can take into any other GIS.
Input: the filled DEM with its flow routing. Output: drainage basins as grid and shapes.
Checking the result — and scripting it
Sanity-check before you publish anything: overlay the channels on the DEM and confirm streams sit in valleys, check that basin boundaries follow ridgelines, and compare the delineated area of a basin you know against its mapped area. The two most common failure causes are using the unfilled DEM in a later stage by mistake, and a threshold chosen by habit rather than by landscape. Once the chain works interactively, it scripts beautifully — every tool here is a saga_cmd call, so a multi-basin study becomes a repeatable file rather than an afternoon of clicking. New to the program itself? Start with our beginner’s guided tour, then come back and run the chain end to end.
