xdem.DEM.rugosity

Contents

xdem.DEM.rugosity#

DEM.rugosity(mp_config=None)[source]#

Calculates the rugosity, the ratio between real area and planimetric area. Only available for a 3x3 window. The output is unitless.

Based on: Jenness (2004), https://doi.org/10.2193/0091-7648(2004)032[0829:CLSAFD]2.0.CO;2.

Parameters:
  • mp_config (MultiprocConfig | None) – Multiprocessing configuration, run the function in multiprocessing if not None.

  • engine – Engine to use for computing the attribute, “scipy” or “numba”.

Raises:

ValueError – If the inputs are poorly formatted.

Return type:

TypeVar(RasterType, bound= Raster)