cars.pipelines.parameters.advanced_parameters

CARS module containing functions to check advanced parameters configuration

Functions

get_resolutions(conf)

Get the epipolar resolutions from the configuration

check_phasing(phasing)

Check the phasing parameter and convert the point coordinates to the unit

check_advanced_parameters(inputs, conf[, output_dem_dir])

Check the advanced parameters consistency

Module Contents

cars.pipelines.parameters.advanced_parameters.get_resolutions(conf)[source]

Get the epipolar resolutions from the configuration

Parameters:

conf (dict) – configuration of advanced parameters

Returns:

list of epipolar resolutions

Return type:

list

cars.pipelines.parameters.advanced_parameters.check_phasing(phasing)[source]

Check the phasing parameter and convert the point coordinates to the unit expected by the selected CRS.

Projected CRS:

meter -> meter

Geographic CRS:

degree -> degree arcsec -> degree

Parameters:

phasing (dict or None) – phasing parameter to check

Raises:
  • RuntimeError – If the phasing EPSG is invalid, if a compound CRS is used for phasing, or if the selected unit is incompatible with the phasing CRS.

  • json_checker.core.exceptions.CheckerError – If the phasing configuration does not match the expected schema.

Returns:

phasing configuration with normalized coordinates

Return type:

dict or None

cars.pipelines.parameters.advanced_parameters.check_advanced_parameters(inputs, conf, output_dem_dir=None)[source]

Check the advanced parameters consistency

Parameters:
  • inputs (dict) – configuration of inputs

  • conf (dict) – configuration of advanced parameters

Returns:

overloaded configuration

Return type:

dict