hillshade

Contents

hillshade#

hillshade(xds: str | CloudPath | Path | Tuple[ndarray | MaskedArray, dict] | DataArray | Dataset | DatasetReader | DatasetWriter, 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 (AnyRasterType) – 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