xdem.DEM.roughness#
- DEM.roughness(window_size=3)[source]#
Calculates the roughness, the maximum difference between neighbouring pixels, for any window size. Output is in the unit of the DEM (typically meters).
Based on: Dartnell (2000), http://dx.doi.org/10.14358/PERS.70.9.1081.
- Parameters:
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)