r.convergence
Calculate convergence index.
r.convergence [-cs] input=name output=name window=integer weights=string [--overwrite] [--verbose] [--quiet] [--qq] [--ui]
Example:
r.convergence input=name output=name window=3 weights=standard
grass.script.run_command("r.convergence", input, output, window=3, weights="standard", flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("r.convergence", input="name", output="name", window=3, weights="standard")
Parameters
input=name [required]
Digital elevation model map
output=name [required]
Output convergence index map
window=integer [required]
Window size
Default: 3
weights=string [required]
Method for reducing the impact of the cell due to distance
Allowed values: standard, inverse, power, square, gentle
Default: standard
-c
Use circular window (default: square)
-s
Add slope convergence (radically slows down calculation time)
--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
Digital elevation model map
Used as: input, raster, name
output : str, required
Output convergence index map
Used as: output, raster, name
window : int, required
Window size
Default: 3
weights : str, required
Method for reducing the impact of the cell due to distance
Allowed values: standard, inverse, power, square, gentle
Default: standard
flags : str, optional
Allowed values: c, s
c
Use circular window (default: square)
s
Add slope convergence (radically slows down calculation time)
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
OPTIONS
- -s
Increase convergence if slope value is high. Slope parameter radically slows down computation time, especially if the window parameter is high. If slope is used, a slope modifier is used according to the formula: sin(current)*sin(target) + cos(current)*cos(target). If the slope of current and target cells are equal, this modifier's value will be 1. The modifier is applied with the formula: acos(cos(convergence) * modifier) - -c
Use circular window instead of square (default) - input
Digital elevation model. Data can be of any type and any projection. To calculate relief convergence, r.convergence uses real distances which is recalculated into cell distance, according formula:
distance_between_current_cell_and_target_cell/distance_between_current_cell_and_nearest_neighbour_cell.
It is important if convergence is calculated for large areas in Lat/Lon projection. - weights
Parameter describing the reduction of the impact of the cell due to its distance, where distance in cells: - standard: no decay
- inverse: distance modifier is calculated as 1/x
- power: distance modifier is calculated as 1/(x*x)
- power: distance modifier is calculated as 1/(x*x)
- gentle: distance modifier is calculated as 1/((1-x)/(1+x))
- window
Window size. Must be odd. For now there are no limits in window size. r.convergence uses the window size instead of classical radius for compatibility with other GRASS GIS commands. - output
Map of convergence index. The values ranges from -100 (max divergent, real peaks and ridges) by 0 (planar areas) to 100 (max convergent, real pits and channels). Classical convergence index presented with degrees (-90 to 90)
DESCRIPTION
How convergence index is calculated (3 x 3 window)
Figure 1: Convergence index for maximum divergence, maximum
convergence, and planar
Convergence index is a terrain parameter which shows the structure of the relief as a set of convergent areas (channels) and divergent areas (ridges). It represents the agreement of aspect direction of surrounding cells with the theoretical matrix direction. Convergence index is mean (or weighted mean if weights are used) aspect difference between real aspect and theoretical maximum divergent direction matrix representing ideal peak (see figure) minus 90 degrees. So if there is maximum agreement with divergent matrix the convergence index is (0 - 90) * 10/9 = -100. If there is ideal sink (maximum convergence) the convergence index is (180 -90) * 10/9 = 100. Slope and aspect are calculated internally with the same formula as in r.slope.aspect. Convergence index is very useful for analysis of lineaments especially represented by ridges or channel systems as well as valley recognition tool.
SEE ALSO
r.slope.aspect, r.param.scale, r.neighbors,
REFERENCES
Claps, P., Fiorentino, M., Oliveto, G., (1994), Informational entropy of fractal river networks, Journal of Hydrology, 187(1-2), 145-156 .
Bauer J., Rohdenburg H., Bork H.-R., (1985), Ein Digitales Reliefmodell als Vorraussetzung fuer ein deterministisches Modell der Wasser- und Stoff-Fluesse, IN: Bork, H.-R., Rohdenburg, H., Landschaftsgenese und Landschaftsoekologie, Parameteraufbereitung fuer deterministische Gebiets-Wassermodelle, Grundlagenarbeiten zu Analyse von Agrar-Oekosystemen, 1-15.
Böhner J., Blaschke T., Montanarella, L. (eds.) (2008). SAGA Seconds Out. Hamburger Beiträge zur Physischen Geographie und Landschaftsökologie, 19: 113 s.
AUTHOR
Jarek Jasiewicz
SOURCE CODE
Available at: r.convergence source code
(history)
Latest change: Friday Feb 21 12:27:42 2025 in commit 8fce680