cars.applications.filtering.devib_tools

Devib module: contains functions for DEM devibration step in prepare and compute_dsm pipeline.

Module Contents

Functions

lowres_initial_dem_splines_fit(...[, ext, order])

This function takes 2 datasets containing DSM and models the

cars.applications.filtering.devib_tools.lowres_initial_dem_splines_fit(lowres_dsm_from_matches: xarray.Dataset, lowres_initial_dem: xarray.Dataset, origin: numpy.ndarray, time_direction_vector: numpy.ndarray, ext: int = 3, order: int = 3)

This function takes 2 datasets containing DSM and models the difference between the two as an UnivariateSpline along the direction given by origin and time_direction_vector. Internally, it looks for the highest smoothing factor that satisfies the rmse threshold.

Parameters
  • lowres_dsm_from_matches – Dataset containing the low resolution DSM obtained from matches, as returned by the rasterization.simple_rasterization_dataset function.

  • lowres_initial_dem – Dataset containing the low resolution DEM, obtained by otb_pipelines.read_lowres_dem function, on the same grid as lowres_dsm_from_matches

  • origin (list(float) or np.array(float) of size 2) – coordinates of origin point for line

  • time_direction_vector (list(float) or np.array(float) of size 2) – direction vector of line

  • ext – behavior outside of interpolation domain

  • order – spline order