Height Map#

rforge.library.processes.height.height(dtm: Layer | ndarray, dsm: Layer | ndarray, alpha: Layer | ndarray | None = None, as_array: bool = False) ndarray | Layer[source]#

Calculate the height difference between the Digital Terrain Model (DTM) and the Digital Surface Model (DSM).

Parameters:
  • dtm – Digital Terrain Model (DTM) layer data.

  • dsm – Digital Surface Model (DSM) layer data.

  • alpha – Alpha layer. Defaults to None.

  • as_array – If True, returns the distance field as a Numpy array. Defaults to False.

Returns:

Height difference raster map.

Raises:

TypeError – If inputs are not of the accepted type.