lic_extended.process_lic_extended#

process_lic_extended(MNT_block: ndarray, cellsize: float, sigma_max: float = 5.0, slope_threshold: float = 6, num_bins: int = 10, min_area: int = 100, num_steps: int = 5, sigma_modulated: bool = True, n_iterations: int = 5, sigma_blur_maxcurv: float = 3.0, k: float = 2.5) ndarray[source]#

Processes a single block of a DEM with LIC and generalization techniques.

Parameters:
  • MNT_block (np.ndarray) – The block of the Digital Elevation Model.

  • cellsize (float) – Size of the raster cells in meters.

  • sigma_max (float) – Maximum kernel width for the adaptive Gaussian blur.

  • slope_threshold (float) – Threshold for slope to distinguish flat and steep areas.

  • num_bins (int) – Number of bins for sigma approximation in the adaptive blur.

  • min_area (int) – Minimum size (in pixels) for flat areas to be preserved.

  • num_steps (int) – Maximum integration length for the LIC algorithm.

  • sigma_modulated (bool) – If True, sigma is modulated by altitude in LIC processing.

  • n_iterations (int) – Number of iterations for the LIC algorithm.

  • sigma_blur_maxcurv (float) – Gaussian blur parameter for maximum curvature.

  • k (float) – Weighting factor for combining LIC grids.

Returns:

Processed DEM block.

Return type:

np.ndarray