raster_tools.surface.aspect#

raster_tools.surface.aspect(raster)[source]#

Calculates the aspect of each raster cell for each raster band.

The approach is based on ESRI’s aspect calculation.

Parameters

raster (Raster or path str) – The raster to perform the calculation on (typically an elevation surface).

Returns

The resulting raster of aspect (degrees). The bands will have the same shape as the original Raster.

Return type

Raster

References