dtcc.Raster.TRI() Raster

Compute the Terrain Roughness Index (TRI) of a DEM using optimized array operations.

Parameters: - dem: a Raster object representing the DEM.

Returns: - A Raster object representing the TRI.