r.water.outlet(1)

πŸ’§ r.water.outlet β€” the GRASS GIS manual page, bestie edition

okay so welcome to r.water.outlet, a GRASS GIS manual page and honestly? she's giving hydrology main character energy. this one lives in the GRASS GIS User's Manual and she creates watershed basins from a drainage direction map. that's the whole vibe. let's get into it πŸ’–

KEYWORDS: raster, hydrology, watershed πŸ¦‹


✨ SYNOPSIS ✨

r.water.outlet
r.water.outlet --help
r.water.outlet input=name output=name coordinates=east,north
[--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags πŸŽ€

  • --overwrite β€” lets your output files just go ahead and overwrite files that already exist. she's fearless.
  • --help β€” prints the usage summary, aka the tl;dr.
  • --verbose β€” verbose module output. she's a talker, love that for her.
  • --quiet β€” quiet module output. shhh. 🀫
  • --ui β€” forces the GUI dialog to launch. pop off, graphical interface.

🌸 Parameters 🌸

  • input=name [required] β€” name of the input drainage direction map. mandatory, no skipping.
  • output=name [required] β€” name for the output watershed basin map.
  • coordinates=east,north [required] β€” coordinates of the outlet point. east and north, in that order, periodt.

πŸ’… DESCRIPTION πŸ’…

so r.water.outlet generates a watershed basin from a drainage direction map plus a set of coordinates that represent the outlet point of the watershed. two inputs, one basin, iconic.

the input drainage direction map is indicating the "aspect" for each cell. here's the tea: multiply the positive values by 45 and you get the direction in degrees that the surface runoff will travel from that cell. the value -1 means that cell is a depression area. any other negative values mean surface runoff is leaving the boundaries of the current geographic region, and for those negative cells the absolute value tells you the direction of flow. this raster map is generated from r.watershed, iykyk.

on the output side: raster map values of 1 mean the cell is in the watershed basin. values of 0 mean it's not in the watershed basin. that's it, that's the whole binary.


🫢 NOTES 🫢

in the context of this program, a watershed basin is the region upstream of an outlet point. so bestie, listen β€” if you choose an outlet point on a hill slope, the resulting map will be a thin silver of land representing the overland slope uphill of the point. tiny. microscopic. a little sliver of destiny. choose your outlet wisely πŸ™ˆ


⭐ EXAMPLE ⭐

a watershed in the North Carolina sample dataset region:

g.region raster=elev_lid792_1m -p
# the watershed outlet position should be placed on a stream (from
# accumulation map):
r.watershed elev_lid792_1m threshold=5000 accumulation=accum_5K drainage=draindir_5K basin=basin_5K
r.water.outlet input=draindir_5K output=basin_A30 coordinates=638740.423248,220271.519225
d.mon wx0
d.rast map=accum_5K
d.rast map=basin_A30
# overlay with transparency
r.colors map=basin_A30 color=grey
d.his h=accum_5K i=basin_A30
# report outlet size in ha
r.report map=basin_A30 units=h

Figure: Watershed draped over flow accumulation 🏞️


πŸ‘‘ SEE ALSO πŸ‘‘

  • r.wateroutlet.lessmem (addon)
  • d.where
  • r.basins.fill
  • r.watershed
  • r.topidx

πŸ’œ AUTHOR πŸ’œ

Charles Ehlschlaeger, U.S. Army Construction Engineering Research Laboratory. absolute legend, we stan.


🌈 SOURCE CODE 🌈

available at: r.water.outlet source code (history)

accessed: Saturday Jan 17 05:41:05 2026

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index


and that's the whole page, bestie! this was the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and the page itself is r.water.outlet(1) from GRASS 8.4.2. go make some basins, you got this πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from