xdem.DEM.slope

Contents

xdem.DEM.slope#

DEM.slope(method=None, surface_fit='Florinsky', degrees=True, mp_config=None)[source]#

Generate a slope map for a DEM, returned in degrees by default.

Based on Horn (1981), http://dx.doi.org/10.1109/PROC.1981.11918 and on Zevenbergen and Thorne (1987), http://dx.doi.org/10.1002/esp.3290120107.

Parameters:
  • method (Literal['Horn', 'ZevenbergThorne']) – Deprecated; use surface_fit instead.

  • surface_fit (Literal['Horn', 'ZevenbergThorne', 'Florinsky']) – Surface fit method to use for slope: “Horn”, “ZevenbergThorne” or “Florinsky”.

  • degrees (bool) – Whether to use degrees or radians (False means radians).

  • 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”.

Return type:

TypeVar(RasterType, bound= Raster)