src.utils.raster.dem_generator

Classes

DEMGenerator()

class src.utils.raster.dem_generator.DEMGenerator
Author:

Alberto M. Esmoris Pena

Class representing a Digital Elevation Model (DEM) generator for 3D point clouds.

__init__()

Initialize the DEM generator.

__call__(X, z, grid, method='linear')

Compute the DEM for the points in a 2D plane given by X and their corresponding elevation values given by z.

Parameters:
  • X – The coordinates of the points in the \((x, y)\) plane.

  • z – The point-wise elevation values.

  • grid – The points of the grid representing the domain of the DEM.

  • method – Whether "nearest", "linear", or "cubic". See SciPy griddata documentation.

Returns:

The generated grid representing the DEM.

Return type:

np.ndarray