Terrain Ruggedness Index
How much each cell of an elevation raster differs in height from its eight neighbours.
Pitfall. Engines use different formulas under the same name (a square root of summed squares, a mean of absolute differences, a root mean square), which differ by a factor of 2 or more.
Pitfall. Cells on the raster's edge have incomplete neighbourhoods; engines leave them nodata or compute them differently.
| Also called | TRI, ruggedness index, Riley TRI, gdaldem TRI |
|---|---|
| Group | raster/terrain |
| Checks | raster.nodata |
| Pitfalls | 2 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
algorithm | enum | no | riley | riley, wilson, rmsd | riley: square root of the sum of squared differences (Riley and others, 1999); wilson: mean absolute difference (Wilson and others, 2007); rmsd: root mean square difference. |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | raster | raster | Not stated | An elevation model. |
| Output | output | raster | Not stated | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
gdal | gdal raster tri |
|
|
postgis-raster | st_tri |
|
|
qgis | gdal:triterrainruggednessindex |
|
|
qgis | native:ruggednessindex |
|
|
terra | terra::terrain |
|
|
whiteboxtools | RuggednessIndex |
|
|