cars.conf.input_parameters

This input module refers to parameters and configuration inputs

Module Contents

Functions

read_input_parameters(→ ConfigType)

Read an input parameters json file.

create_img_tag_from_product_key(product_key)

Create images tags from IMG_TAG_ROOT and the given product key

create_model_tag_from_product_key(product_key)

Create images tags from MODEL_TAG_ROOT and the given product key

Attributes

STATIC_PARAMS_TAG

ConfigType

INPUT_SECTION_TAG

PRODUCT1_KEY

PRODUCT2_KEY

IMG_TAG_ROOT

MODEL_TAG_ROOT

IMG1_TAG

IMG2_TAG

MODEL1_TAG

MODEL2_TAG

MODEL_TYPE_TAG

SRTM_DIR_TAG

COLOR1_TAG

MASK1_TAG

MASK2_TAG

MASK1_CLASSES_TAG

MASK2_CLASSES_TAG

NODATA1_TAG

NODATA2_TAG

DEFAULT_ALT_TAG

USE_EPIPOLAR_A_PRIORI

EPIPOLAR_A_PRIORI

INPUT_CONFIGURATION_SCHEMA

cars.conf.input_parameters.STATIC_PARAMS_TAG = 'static_parameters'
cars.conf.input_parameters.ConfigType
cars.conf.input_parameters.read_input_parameters(filename: ConfigType) ConfigType

Read an input parameters json file. Relative paths will be made absolute.

Parameters

filename (ConfigType) – Path to json file

Returns

The dictionary read from file

Return type

ConfigType

cars.conf.input_parameters.create_img_tag_from_product_key(product_key: str)

Create images tags from IMG_TAG_ROOT and the given product key :param product_key: PRODUCT1_KEY or PRODUCT2_KEY :return: IMG1_TAG or IMG2_TAG

cars.conf.input_parameters.create_model_tag_from_product_key(product_key: str)

Create images tags from MODEL_TAG_ROOT and the given product key :param product_key: PRODUCT1_KEY or PRODUCT2_KEY :return: MODEL1_TAG or MODEL2_TAG

cars.conf.input_parameters.INPUT_SECTION_TAG = 'input'
cars.conf.input_parameters.PRODUCT1_KEY = '1'
cars.conf.input_parameters.PRODUCT2_KEY = '2'
cars.conf.input_parameters.IMG_TAG_ROOT = 'img'
cars.conf.input_parameters.MODEL_TAG_ROOT = 'model'
cars.conf.input_parameters.IMG1_TAG
cars.conf.input_parameters.IMG2_TAG
cars.conf.input_parameters.MODEL1_TAG
cars.conf.input_parameters.MODEL2_TAG
cars.conf.input_parameters.MODEL_TYPE_TAG = 'model_type'
cars.conf.input_parameters.SRTM_DIR_TAG = 'srtm_dir'
cars.conf.input_parameters.COLOR1_TAG = 'color1'
cars.conf.input_parameters.MASK1_TAG = 'mask1'
cars.conf.input_parameters.MASK2_TAG = 'mask2'
cars.conf.input_parameters.MASK1_CLASSES_TAG = 'mask1_classes'
cars.conf.input_parameters.MASK2_CLASSES_TAG = 'mask2_classes'
cars.conf.input_parameters.NODATA1_TAG = 'nodata1'
cars.conf.input_parameters.NODATA2_TAG = 'nodata2'
cars.conf.input_parameters.DEFAULT_ALT_TAG = 'default_alt'
cars.conf.input_parameters.USE_EPIPOLAR_A_PRIORI = 'use_epipolar_a_priori'
cars.conf.input_parameters.EPIPOLAR_A_PRIORI = 'epipolar_a_priori'
cars.conf.input_parameters.INPUT_CONFIGURATION_SCHEMA