xdem.DEM.terrain_ruggedness_index

xdem.DEM.terrain_ruggedness_index#

DEM.terrain_ruggedness_index(method='Riley', window_size=3)[source]#

Calculates the Terrain Ruggedness Index, the cumulated differences to neighbouring pixels. Output is in the unit of the DEM (typically meters).

Based either on:

Parameters:
  • method (str) – The algorithm used (“Riley” for topography or “Wilson” for bathymetry).

  • window_size (int) – The size of the window for deriving the metric.

Raises:

ValueError – If the inputs are poorly formatted.

Return type:

TypeVar(RasterType, bound= Raster)