cars.pipelines.parameters.dsm_inputs

CARS dsm inputs

Functions

check_dsm_inputs(conf[, config_dir])

Check the inputs given

check_geometry_plugin(conf_inputs, conf_geom_plugin)

Check the geometry plugin with inputs

check_input_size(dsm, classif, color, mask)

Check dsm, mask, color, classif given

modify_to_absolute_path(config_dir, overloaded_conf)

Modify input file path to absolute path

check_phasing(dsm_dict)

Check if the dsm are phased, and if resolution and epsg code are equivalent

Module Contents

cars.pipelines.parameters.dsm_inputs.check_dsm_inputs(conf, config_dir=None)[source]

Check the inputs given

Parameters:
  • conf (dict) – configuration of inputs

  • config_dir (str) – directory of used json/yaml, if user filled paths with relative paths

Returns:

overloader inputs

Return type:

dict

cars.pipelines.parameters.dsm_inputs.check_geometry_plugin(conf_inputs, conf_geom_plugin)[source]

Check the geometry plugin with inputs :param conf_geom_plugin: name of geometry plugin :type conf_geom_plugin: str :param conf_inputs: checked configuration of inputs :type conf_inputs: type

Returns:

geometry plugin with dem

cars.pipelines.parameters.dsm_inputs.check_input_size(dsm, classif, color, mask)[source]

Check dsm, mask, color, classif given

Images must have same size

Parameters:
  • dsm (str) – phased dsm path

  • classif (str) – classif path

  • color (str) – color path

  • mask (str) – mask path

cars.pipelines.parameters.dsm_inputs.modify_to_absolute_path(config_dir, overloaded_conf)[source]

Modify input file path to absolute path

Parameters:
  • config_dir (str) – directory of the json configuration

  • overloaded_conf – overloaded configuration json

Dict overloaded_conf:

dict

cars.pipelines.parameters.dsm_inputs.check_phasing(dsm_dict)[source]

Check if the dsm are phased, and if resolution and epsg code are equivalent

Parameters:

dsm_dict (dict) – list of phased dsm