cars.applications.dsm_filling.border_interpolation_app

This module contains the border interpolation dsm filling application class.

Classes

BorderInterpolation

Border interpolation

Functions

border_interp_filled_dsm_filling_wrapper(dsm_file, ...)

Wrapper for exogenous filling, to be applied on each tile of the DSM.

Module Contents

class cars.applications.dsm_filling.border_interpolation_app.BorderInterpolation(conf=None)[source]

Bases: cars.applications.dsm_filling.abstract_dsm_filling_app.DsmFilling

Border interpolation

used_method
classification
component_min_size
border_size
percentile
save_intermediate_data
check_conf(conf)[source]

Check configuration

Parameters:

conf (dict) – configuration to check

Returns:

overloaded configuration

Return type:

dict

run(dsm_file, classif_file, filling_file, dtm_file, dump_dir, roi_polys, roi_epsg, dsm_dir=None, orchestrator=None, tile_size=10000)

Run dsm filling using initial elevation and the current dsm Replaces dsm.tif by the filled dsm. Adds a new band to filling.tif if it exists. The old dsm is saved in dump_dir.

roi_poly can any of these objects :
  • a list of Shapely Polygons

  • a Shapely Polygon

cars.applications.dsm_filling.border_interpolation_app.border_interp_filled_dsm_filling_wrapper(dsm_file, filling_file, classif_file, dtm_file, roi_polys, roi_epsg, classification, component_min_size, border_size, percentile, window=None, saving_info=None, profile=None)[source]

Wrapper for exogenous filling, to be applied on each tile of the DSM.

Parameters:
  • dsm_file – dsm file to fill

  • filling_file – filling file

  • classif_file – classification file

  • dtm_path – dtm file

Returns:

filled dsm xarray dataset