cars.applications.dsm_merging.weighted_fusion_app ================================================= .. py:module:: cars.applications.dsm_merging.weighted_fusion_app .. autoapi-nested-parse:: CARS dsm inputs Classes ------- .. autoapisummary:: cars.applications.dsm_merging.weighted_fusion_app.WeightedFusion Functions --------- .. autoapisummary:: cars.applications.dsm_merging.weighted_fusion_app.dsm_merging_wrapper cars.applications.dsm_merging.weighted_fusion_app.assemblage Module Contents --------------- .. py:class:: WeightedFusion(conf=None) Bases: :py:obj:`cars.applications.dsm_merging.abstract_dsm_merging_app.DsmMerging` DSM merging app .. py:attribute:: used_method .. py:attribute:: tile_size .. py:attribute:: save_intermediate_data .. py:method:: check_conf(conf) Check configuration :param conf: configuration to check :type conf: dict :return: overloaded configuration :rtype: dict .. py:method:: 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) Merge all the dsms :param dict_path: path of all variables from all dsms :type dict_path: dict :param orchestrator: orchestrator used :param dump_dir: output path :type dump_dir: str :param dsm_file_name: name of the dsm output file :type dsm_file_name: str :param color_file_name: name of the color output file :type color_file_name: str :param classif_file_name: name of the classif output file :type classif_file_name: str :param filling_file_name: name of the filling output file :type filling_file_name: str :param performance_map_file_name: name of the performance_map file :type performance_map_file_name: str :param ambiguity_file_name: name of the ambiguity output file :type ambiguity_file_name: str :param contributing_pair_file_name: name of contributing_pair file :type contributing_pair_file_name: str :return: 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 .. py:function:: dsm_merging_wrapper(dict_path, tile_bounds, resolution, profile, saving_info=None, full_sources_band_descriptions=None) Merge all the variables :param dict_path: path of all variables from all dsms :type dict_path: dict :param tile_bounds: list of tiles coordinates :type tile_bounds: list :param resolution: resolution of the dsms :type resolution: list :param profile: profile of the global dsm :type profile: OrderedDict :saving_info: the saving infos .. py:function:: assemblage(out, current_weights, method, intersect_bounds, tile_bounds, height, width, band_descriptions=None, merge_sources=False) Update data :param out: the data to update :type out: list of path :param current_weights: the current weights of the data :type current_weights: list of path :param method: the method used to update the data :type method: str :param intersect_bounds: the bounds intersection :type intersect_bounds: list of bounds :param height: the height of the tile :type height: int :param width: the width of the tile :type width: int :param band_descriptions: the band description of the data :type band_descriptions: str of list :param merge_sources: merge source pc, using full band_description :type merge_sources: bool