xdem.DEM.aspect

Contents

xdem.DEM.aspect#

DEM.aspect(method='Horn', degrees=True, use_richdem=False)[source]#

Calculate the aspect of each cell in a DEM, returned in degrees by default. The aspect of flat slopes is 180° by default (as in GDAL).

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.

0=N, 90=E, 180=S, 270=W.

Note that aspect, representing only the orientation of the slope, is independent of the grid resolution.

Parameters:
  • method (str) – Method to calculate aspect: “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)