r.wateroutlet.lessmem
Creates watershed basins from a drainage direction map.
r.wateroutlet.lessmem input=name output=name coordinates=east,north [--overwrite] [--verbose] [--quiet] [--qq] [--ui]
Example:
r.wateroutlet.lessmem input=name output=name coordinates=east,north
grass.script.run_command("r.wateroutlet.lessmem", input, output, coordinates, overwrite=False, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("r.wateroutlet.lessmem", input="name", output="name", coordinates=east,north)
Parameters
input=name [required]
Name of input drainage direction map
output=name [required]
Name for output watershed basin map
coordinates=east,north [required]
Coordinates of outlet point
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
input : str, required
Name of input drainage direction map
Used as: input, raster, name
output : str, required
Name for output watershed basin map
Used as: output, raster, name
coordinates : tuple[float, float] | list[float] | str, required
Coordinates of outlet point
Used as: input, coords, east,north
overwrite: bool, optional
Allow output files to overwrite existing files
Default: False
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
r.wateroutlet.lessmem is a modified version of r.water.outlet and requires about one third of memory compared to the original module. Input drainage direction information is stored as 4-bit segments in the buffer and output basin result is stored as 1-bit data. Because of heavy bitwise operations, there may be some performance penalty depending on the size of the input map. Other than memory management, this module uses the same interface and algorithm in r.water.outlet, so please refer to r.water.outlet for more details.
SEE ALSO
AUTHOR
Huidae Cho
based on
r.water.outlet
SOURCE CODE
Available at: r.wateroutlet.lessmem source code
(history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819