Terrain Metrics#

Note

Terrain metrics use a 3x3 neighbourhood and output float64. Edge cells are NaN. These functions assume the input is on a regular grid with uniform cell spacing.

Roughness#

xrspatial.terrain_metrics.roughness(agg[, ...])

Compute the roughness for each cell.

Topographic Position Index (TPI)#

xrspatial.terrain_metrics.tpi(agg[, name, ...])

Compute the Topographic Position Index (TPI) for each cell.

Terrain Ruggedness Index (TRI)#

xrspatial.terrain_metrics.tri(agg[, name, ...])

Compute the Terrain Ruggedness Index (TRI) for each cell.

Landform Classification#

xrspatial.terrain_metrics.landforms(agg[, ...])

Classify terrain into landform types using the Weiss (2001) scheme.