cars.applications.dsm_merging.weighted_fusion_app

CARS dsm inputs

Classes

WeightedFusion

DSM merging app

Functions

dsm_merging_wrapper(dict_path, tile_bounds, ...[, ...])

Merge all the variables

assemblage(out, current_weights, method, ...[, ...])

Update data

Module Contents

class cars.applications.dsm_merging.weighted_fusion_app.WeightedFusion(conf=None)[source]

Bases: cars.applications.dsm_merging.abstract_dsm_merging_app.DsmMerging

DSM merging app

used_method
tile_size
save_intermediate_data
check_conf(conf)[source]

Check configuration

Parameters:

conf (dict) – configuration to check

Returns:

overloaded configuration

Return type:

dict

run(dict_path, orchestrator, roi_poly, dump_dir=None, dsm_file_name=None, color_file_name=None, classif_file_name=None, filling_file_name=None, performance_map_file_name=None, ambiguity_file_name=None, contributing_pair_file_name=None)[source]

Merge all the dsms

Parameters:
  • dict_path (dict) – path of all variables from all dsms

  • orchestrator – orchestrator used

  • dump_dir (str) – output path

  • dsm_file_name (str) – name of the dsm output file

  • color_file_name (str) – name of the color output file

  • classif_file_name (str) – name of the classif output file

  • filling_file_name (str) – name of the filling output file

  • performance_map_file_name (str) – name of the performance_map file

  • ambiguity_file_name (str) – name of the ambiguity output file

  • contributing_pair_file_name (str) – name of contributing_pair file

Returns:

raster DSM. CarsDataset contains:

  • Z x W Delayed tiles. Each tile will be a future xarray Dataset containing:

    • data : with keys : “hgt”, “img”, “raster_msk”,optional : “n_pts”, “pts_in_cell”, “hgt_mean”, “hgt_stdev”, “hgt_inf”, “hgt_sup”

    • attrs with keys: “epsg”

  • attributes containing: None

:rtype : CarsDataset filled with xr.Dataset

cars.applications.dsm_merging.weighted_fusion_app.dsm_merging_wrapper(dict_path, tile_bounds, resolution, profile, saving_info=None, full_sources_band_descriptions=None)[source]

Merge all the variables

Parameters:
  • dict_path (dict) – path of all variables from all dsms

  • tile_bounds (list) – list of tiles coordinates

  • resolution (list) – resolution of the dsms

  • profile (OrderedDict) – profile of the global dsm

Saving_info:

the saving infos

cars.applications.dsm_merging.weighted_fusion_app.assemblage(out, current_weights, method, intersect_bounds, tile_bounds, height, width, band_descriptions=None, merge_sources=False)[source]

Update data

Parameters:
  • out (list of path) – the data to update

  • current_weights (list of path) – the current weights of the data

  • method (str) – the method used to update the data

  • intersect_bounds (list of bounds) – the bounds intersection

  • height (int) – the height of the tile

  • width (int) – the width of the tile

  • band_descriptions (str of list) – the band description of the data

  • merge_sources (bool) – merge source pc, using full band_description