Stream network and Strahler order
The channels in an elevation grid: the cells where enough ground drains through, split into links, each with its Strahler order, its length, and the area draining through its outlet.
Experimental: not yet fully verified. How results are checked
The network reaches Strahler order 2.
| Strahler order | Links of this order | Their length in all |
|---|---|---|
| 1 | 2 | 169.71 m |
| 2 | 1 | 120.00 m |
| Link | Strahler order | Length | Drainage area at its outlet | Cells |
|---|---|---|---|---|
| 1 | 1 | 84.85 m | 17,100.0 m2 | 3 |
| 2 | 1 | 84.85 m | 17,100.0 m2 | 3 |
| 3 | 2 | 120.00 m | 27,900.0 m2 | 5 |
| Link | Distance east | Distance south |
|---|---|---|
| 1 | 45.000 m | 15.000 m |
| 1 | 75.000 m | 45.000 m |
| 1 | 105.000 m | 75.000 m |
| 2 | 165.000 m | 15.000 m |
| 2 | 135.000 m | 45.000 m |
| 2 | 105.000 m | 75.000 m |
| 3 | 105.000 m | 75.000 m |
| 3 | 105.000 m | 105.000 m |
| 3 | 105.000 m | 135.000 m |
| 3 | 105.000 m | 165.000 m |
| 3 | 105.000 m | 195.000 m |
- Links
- Channel cells
- Network length
- Threshold used
- Most cells draining through one cell
Provenance
- Computed by
- raster.hydrology.streams 1.0.0, core 0.1.0
- Model
- Channel cells are those whose D8 accumulation reaches the threshold. Strahler (1957): a channel cell with no channel cell draining into it is order 1; where channels meet, two of the same order make the next order and a lower one leaves the order alone. A link runs from a source or a junction down to the next junction or the network's outlet; its length adds the cell size along sides and √2 times it along diagonals, and its outlet area is the accumulation at its last cell times the cell area
- Accuracy
- Exact in the arithmetic of the rules: the order follows Strahler's definition cell by cell, and the length is the walked path of cell centers
- Notes
- 1 shown with the answer
- Cites
- O'Callaghan, J. F., and Mark, D. M., Computer Vision, Graphics, and Image Processing, The extraction of drainage networks from digital elevation data; Strahler, A. N., Transactions, American Geophysical Union, Quantitative analysis of watershed geomorphology
Something look off?
How we got thisFormula, worked example, sources, and proof
Model: Channel cells are those whose D8 accumulation reaches the threshold. Strahler (1957): a channel cell with no channel cell draining into it is order 1; where channels meet, two of the same order make the next order and a lower one leaves the order alone. A link runs from a source or a junction down to the next junction or the network's outlet; its length adds the cell size along sides and √2 times it along diagonals, and its outlet area is the accumulation at its last cell times the cell area
Show your work
Channel cells
cells whose accumulation reaches the thresholdthreshold 3 cells of 49= 9 cellsStrahler order
two channels of one order make the next; a lower one leaves it alone3 links= 2
The same steps an agent gets from the MCP server with explain: true.
Accuracy: Exact in the arithmetic of the rules: the order follows Strahler's definition cell by cell, and the length is the walked path of cell centers
When to use this: Use this to pull the channels out of a conditioned DEM and see how the network branches: which stretches are headwaters, which are the main stem, how long each is, and how much ground drains through its outlet. Set the threshold by how much upslope area makes a channel in your landscape, as cells or as an area; raise it for fewer, longer streams.
Limitations: The threshold is the whole model of what a channel is: there is no rule here for picking it, and a different threshold gives a different network. Links are the cells themselves, so a length is the walked path of cell centers and reads longer than a smooth channel, especially where the path staircases. The window is all the tool knows, so a stream entering from outside starts at the edge. An unconditioned pit ends a channel in the middle of the grid; condition the grid first. The window holds at most 25,000 cells.
Worked example: Two headwaters joining into one stream. Source: add-raster-hydrology raster/hydrology, the Order rule scenario: two first-order links join into a second-order link.
You enter
- Cell size
- 30 m
- Elevation grid
- 60, 48, 60, 60, 60, 48, 60 60, 60, 47, 60, 47, 60, 60 60, 60, 60, 46, 60, 60, 60 60, 60, 60, 45, 60, 60, 60 60, 60, 60, 44, 60, 60, 60 60, 60, 60, 43, 60, 60, 60 60, 60, 60, 42, 60, 60, 60
- Threshold, in cells
- 3
You get
- Highest order
- 2
- Links
- 3
- Channel cells
- 9
- Network length
- 289.71 m
- Threshold used
- 3
- Most cells draining through one cell
- 31
Review: Not yet independently reviewed by a GIS professional.
Last verified: 2026-11-06, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.
Status: version 1.0.0, core 0.1.0. See this tool in the verification report.
Changes
- 2026-11-07, changed: The six hydrology tools now hand their work along. Every flow tool tells you to condition the grid first, and the fill tool's answer is exactly what they want, so its page now offers to carry the conditioned grid straight into the flow tools, with the cell size and the no-data value. The tools also point at each other in the order you would use them: fill, flow direction, accumulation, streams, watershed, longest path. A test routes water over a conditioned grid and over the grid as entered, and shows the difference: no cell left stranded in the first, a pit swallowing the bowl in the second. Changelog
- 2026-11-07, changed: The stream and watershed tools now draw what they found, over the grid you entered and to scale. The stream page draws every link through the cells it runs, thicker as its Strahler order rises, so the main stem reads at a glance and the headwaters read as headwaters, with a dot where the network leaves the window. The watershed page shades the cells that drain to your point and draws the longest flow path down them, from its top to the outlet. Both drawings are your own numbers, not an illustration of the idea. Changelog
- 2026-11-06, added: A fourth hydrology tool pulls the channels out of an elevation grid. You set what counts as a channel, as the number of cells or the area of ground that must drain through one, and the tool returns the network split into links: the stretch from one junction to the next, with its Strahler order, its length, how many cells it runs through, and the ground draining through its lower end. Order follows Strahler's own rule, where two streams of the same order make the next order up and a smaller tributary leaves the order alone, so the main stem is the highest number on the page. Give the grid's north-west corner and every link carries latitudes and longitudes, ready to draw. Set the threshold too high and the answer is an empty network with the most that drains through any cell, so you know what to ask for instead. Changelog
Checked against: 20 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.
Sources
- The extraction of drainage networks from digital elevation data, O'Callaghan, J. F., and Mark, D. M., Computer Vision, Graphics, and Image Processing, Volume 28, issue 3, pages 323-344 (DOI 10.1016/S0734-189X(84)80011-0). The steepest-descent rule that sends each cell's water to one of its eight neighbours, the D8 method.
- Quantitative analysis of watershed geomorphology, Strahler, A. N., Transactions, American Geophysical Union, Volume 38, issue 6, pages 913-920 (DOI 10.1029/TR038i006p00913). The stream-order rule: a channel with no tributary is first order, two channels of the same order join into the next order, and a channel joined by a lower order keeps its own.
Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.