demcompare

Demcompare init module file. Demcompare aims at coregistering and comparing two Digital Elevation Models(DEM)

Subpackages

Submodules

Package Contents

Functions

run(json_file_path[, loglevel])

Demcompare RUN execution.

load_input_dems(→ Tuple[xarray.Dataset, Union[None, ...)

Loads the input dems according to the input cfg

run_coregistration(→ Tuple[xarray.Dataset, xarray.Dataset])

Runs the dems coregistration

Attributes

__version__

__author__

__email__

demcompare.__version__[source]
demcompare.__author__ = 'CNES'[source]
demcompare.__email__ = 'cars@cnes.fr'[source]
demcompare.run(json_file_path: str, loglevel: int = logging.WARNING)[source]

Demcompare RUN execution.

Parameters:
  • json_file_path – Input Json configuration file

  • loglevel (int) – Choose Loglevel (default: WARNING)

demcompare.load_input_dems(cfg: internal_typing.ConfigType) Tuple[xarray.Dataset, None | xarray.Dataset][source]

Loads the input dems according to the input cfg

Parameters:

cfg (ConfigType) – input configuration

Returns:

input_ref and input_dem datasets or None

Return type:

Tuple(xr.Dataset, xr.dataset) The xr.Datasets containing :

  • im : 2D (row, col) xarray.DataArray float32

  • trans: 1D (trans_len) xarray.DataArray

demcompare.run_coregistration(cfg: internal_typing.ConfigType, input_ref: xarray.Dataset, input_sec: xarray.Dataset) Tuple[xarray.Dataset, xarray.Dataset][source]

Runs the dems coregistration

Parameters:
  • cfg (ConfigType) – coregistration configuration

  • input_ref – input ref

  • input_sec – input dem

Returns:

reproj_coreg_sec, reproj_coreg_ref

Return type:

Tuple(xr.Dataset, xr.dataset) The xr.Datasets containing :

  • im : 2D (row, col) xarray.DataArray float32

  • trans: 1D (trans_len) xarray.DataArray