xdem.DEM.slope

Contents

xdem.DEM.slope#

DEM.slope(method='Horn', degrees=True, use_richdem=False)[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 (str) – Method to calculate slope: “Horn” or “ZevenbergThorne”.

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

  • use_richdem (bool) – Whether to use RichDEM to compute the attribute.

Return type:

TypeVar(RasterType, bound= Raster)