Home / Science / Earth sciences / Geomorphology / Stream long profile and chi analysisTool #890

River long profile tool: trace channels on a DEM, slope-area, chi plot, concavity and knickpoints (free, in the browser)

Trace a channel down a DEM (GeoTIFF or ASCII grid) by steepest descent, or paste a long profile, and get the long profile, a slope-area fit (ks and θ), a chi plot with the best concavity, normalised steepness ksn and knickpoint hints.

Keep it one tap away for everyday use.

Bookmark Stream long profile and chi analysis?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. DEM or data
  2. Trace
  3. χ and slope
  4. Knickpoints
Nothing is uploadedWorks offline once open

Channel

Distance can run from the outlet upstream or from the source down: the end with the larger drainage area is taken as the outlet. A header row is skipped. The example is made up: a steady-state river whose lower half has been steepened.

Settings

θref = 0.45 is a common choice so that steepness ksn can be compared between rivers. A₀ = 1 m² makes the slope of the χ plot equal to ksn. Nodes with less area than "channel starts at" (hillslope, colluvial channel) are left out of every fit.

Results

Long profile

χ plot

Slope and drainage area

Linearity against θ

Knickpoints are hinted where z against χ (at θref) is best fitted by separate straight lines (2 or 3 segments, chosen by BIC). A real knickpoint should also show as a step in the long profile and the slope-area plot; lithology, tributaries and DEM errors make knicks too.

Data
Download

What it does

Rivers record how fast the land is rising and how hard the rock is. At steady state, channel slope S falls with drainage area A as a power law, S = ks A^−θ, where θ is the concavity and ks the steepness. This page measures both, from a long profile you paste or from a channel it traces down a digital elevation model (DEM):

  • Tracing on a DEM: open a GeoTIFF or ESRI ASCII grid and tap where the channel starts. The page fills pits (priority flood), routes water to the steepest of the eight neighbours (D8), works out the drainage area of every cell, and follows the flow path to the edge of the grid. The start can snap to the biggest drainage area within a few cells, so a tap beside the channel lands on it.
  • Long profile: elevation against distance upstream of the outlet, with knickpoint hints.
  • Slope-area: local slope against area on log scales, averaged in log bins, and the straight-line fit that gives ks and θ.
  • χ plot: χ = ∫ (A₀/A)^θ dx from the outlet up (Perron and Royden 2013). At steady state elevation is a straight line against χ, and its slope is the normalised steepness ksn at the reference concavity θref (with A₀ = 1 m²). χ uses the whole profile instead of noisy local slopes, so it is the steadier measure.
  • Best θ: the page tries θ from 0.05 to 1.5 and keeps the one that makes the χ plot straightest (largest R²).
  • Knickpoint hints: places where z against χ is better fitted by two or three separate lines (chosen by BIC), with ksn below and above each.

How to use it

  1. Paste distance, elevation and drainage area (any order of distance: the end with the larger area is the outlet), or choose Trace on a DEM, open your DEM and tap the channel head. Check the cell size: degrees are turned into metres for you, feet are not.
  2. Set θref (0.45 is a common choice), A₀, and the drainage area where the channel starts, to leave hillslopes out of the fits.
  3. Read ksn, the best θ and the slope-area fit, look at the four plots, and download the profile (with slope and χ) as CSV or the report as an image, PDF or Word file.

Worked example

The example profile is made up: a 30 km river whose area follows Hack’s law, with θ = 0.45, ksn 16 in its lower 15 km and 10 above, and ±0.3 m of noise. The page finds a knickpoint at 15 km upstream, 211 m up, with ksn 16 below and 10 above, exactly what was built in. A single line through the χ plot gives ksn 11.5 (R² 0.987). Because the lower reach is steeper, the best single θ comes out low (0.33) and the slope-area fit gives θ 0.389: a reminder that a transient knickpoint biases concavity, so fit each segment on its own (raise “channel starts at” or cut the table) before reading θ.

Use a made-up DEM draws a winding valley of 160 × 120 cells of 30 m. Tap near its east end to trace the river to the west edge.

FAQ

Why are the fits poor near the top? Close to the divide the “channel” is a hillslope or a colluvial hollow that does not follow S = ks A^−θ. Raise “channel starts at” (often 10⁵ to 10⁶ m²).

Which DEMs work? Single-band GeoTIFFs (8, 16, 32-bit integers or 32/64-bit floats; uncompressed, LZW or Deflate) and ESRI ASCII grids, up to 4 million cells. Projected (metres) grids are best.

Is anything uploaded? No. The DEM is read and processed in your browser, and nothing leaves your device.

Where the numbers come from

  • Methods (formulas only, no data copied): stream power and slope-area scaling (Flint 1974; Hack 1957); chi analysis (Perron and Royden 2013); priority-flood pit filling (Barnes, Lehman and Mulla 2014); D8 flow routing (O'Callaghan and Mark 1984); BIC for segment counts (Schwarz 1978).
  • Example profile and DEM: synthetic, made up by fibub from Hack's law and a steady-state stream-power profile.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Manning and weir flow calculator #140 Work out the discharge or normal depth in a rectangular, trapezoidal or triangular channel or a part-full pipe with Manning's equation, with velocity, Froude number, critical depth, specific energy, bed shear and a rating curve; and the flow over sharp-crested, V-notch, broad-crested or Cipolletti weirs, or the head for a given flow. SI or US units. Infinite slope factor of safety #891 Work out the infinite slope factor of safety for a shallow landslide, dry, partly saturated or saturated with seepage parallel to the slope, with cohesion and root cohesion. Get the critical slope angle, water table and depth, and see FS plotted against slope and water. For study, not a slope stability assessment. DEM slope, aspect and hillshade #888 Open a digital elevation model (GeoTIFF or ESRI ASCII grid) and get slope (Horn's method), aspect, hillshade with your own sun position, and general, profile and plan curvature, as coloured maps with statistics, slope classes and an aspect breakdown. Degree grids such as SRTM are handled with the cell size worked out for each latitude. Download PNG, GeoTIFF or ASCII grid. Files never leave your device. Watershed delineation #889 Open a small DEM (GeoTIFF or ASCII grid, up to 1000 × 1000 cells), tap a stream to place the outlet, and see the area that drains to it: catchment area, perimeter, longest flow path, relief, mean slope, stream length, drainage density and Strahler order. Depressions are filled with Priority-Flood and flow follows D8. Download the outline and streams as GeoJSON, and flow accumulation and direction as GeoTIFF. Files never leave your device. 1D Schrödinger solver #923 Choose a textbook potential, type a formula or draw your own, and get the lowest energy levels and wavefunctions of the one-dimensional Schrödinger equation by the matrix (finite-difference) method, with the exact levels alongside for the box, harmonic oscillator, finite well, Morse, linear and Pöschl–Teller potentials. Adduct and neutral loss calculator #984 Type a formula or a neutral monoisotopic mass and get the m/z of 25 common electrospray adducts in positive and negative mode, the ions left after common neutral losses (water, ammonia, CO2, sugars, phosphate and your own), and match a list of observed m/z values within a ppm tolerance. With no molecule, it turns observed m/z values into candidate neutral masses.