cars.applications.dsm_filling.interpolation_filling_app

This module contains the interpolation dsm filling application class.

Classes

InterpolationFilling

Interpolation filling.

Functions

interpolation_filling_wrapper(dsm_file, filling_file, ...)

Wrapper for interpolation filling, applied on each tile of the DSM.

Module Contents

class cars.applications.dsm_filling.interpolation_filling_app.InterpolationFilling(conf=None)[source]

Bases: cars.applications.dsm_filling.abstract_dsm_filling_app.DsmFilling

Interpolation filling.

used_method
fill_classification
tile_size
margin
save_intermediate_data
fill_nodata
check_conf(conf)[source]

Check configuration.

run(dsm_file, classif_file, filling_file, invalidity_mask_file, classif_values, dump_dir, roi_polys, roi_epsg, dsm_dir=None, orchestrator=None)

Run dsm filling by interpolating classified pixels. 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.interpolation_filling_app.interpolation_filling_wrapper(dsm_file, filling_file, classif_file, invalidity_mask_file, classif_values, roi_polys, roi_epsg, fill_classification, window=None, overlaps=None, fill_nodata=None, saving_info=None, profile=None)[source]

Wrapper for interpolation filling, applied on each tile of the DSM.

Parameters:
  • dsm_file – dsm file to fill

  • filling_file – filling file

  • classif_file – classification file

Returns:

filled dsm xarray dataset