hillshade

Contents

hillshade#

hillshade(xds: str | DataArray | Dataset | DatasetReader, azimuth: float = 315, zenith: float = 45) DataArray | Dataset[source]#

Compute the hillshade of a DEM from an azimuth and elevation angle (in degrees).

Goal: replace gdaldem CLI

NB: altitude = zenith

References:

Parameters:
  • xds (PATH_XARR_DS) – Path to the raster, its dataset, its xarray or a tuple containing its array and metadata

  • azimuth (float) – Azimuth angle in degrees

  • zenith (float) – Zenith angle in degrees

Returns:

Hillshade

Return type:

AnyXrDataStructure