cars.applications.dsm_filling.exogenous_filling_app

This module contains the exogenous dsm filling application class.

Classes

ExogenousFilling

Exogenous filling

Functions

exogenous_filling_wrapper(dsm_file, filling_file, ...)

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

Module Contents

class cars.applications.dsm_filling.exogenous_filling_app.ExogenousFilling(conf=None)[source]

Bases: cars.applications.dsm_filling.abstract_dsm_filling_app.DsmFilling

Exogenous filling

used_method
classification
fill_with_geoid
interpolation_method
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, dump_dir, roi_polys, roi_epsg, output_geoid, geom_plugin, dsm_dir=None, tile_size=10000, orchestrator=None)

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.exogenous_filling_app.exogenous_filling_wrapper(dsm_file, filling_file, classif_file, geo_plugin_dem, geo_plugin_geoid, output_geoid, roi_polys, roi_epsg, fill_with_geoid, interpolation_method, classification, 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

  • geo_plugin_dem – initial elevation dem

  • geo_plugin_geoid – initial elevation geoid

  • output_geoid – output geoid

Returns:

filled dsm xarray dataset