easysnowdata.processing.slope_aspect#

easysnowdata.processing.slope_aspect(dem: DataArray, *, degrees: bool = True) tuple[DataArray, DataArray][source]#

Slope and aspect of a projected DEM, by central differences.

Parameters:
  • dem – Elevation in metres on a projected grid whose x/y coordinates are metres too (a UTM DEM). The spacing is read from the coordinates.

  • degrees – Return degrees (default) rather than radians. Aspect is measured clockwise from north, in [0, 360).

Returns:

(slope, aspect) – Two DataArrays shaped like dem.