Skip to main content
Demcompare

Demcompare, a DEM comparison tool

Python Contributions welcome License Docs

Overview • Install • Usage • Documentation •

Overview

Demcompare is a python software that aims at comparing two DEMs together.

A DEM is a 3D computer graphics representation of elevation data to represent terrain.

Demcompare has several characteristics:

  • Works whether or not the two DEMs share common format projection system, planimetric resolution, and altimetric unit.
  • Performs the coregistration based on the Nuth & Kääb universal coregistration method.
  • Offers two coregistration modes to choose which of both DEMs is to be adapted during coregistration.
  • Provides a wide variety of standard metrics which can be classified.
  • Classifies the stats by slope ranges by default, but one can provide any other data to classify the stats.

Install

Only Linux Plaforms are supported (virtualenv or bare machine) with Python >= 3.8 installed.

Demcompare is available on Pypi and can be typically installed through a virtualenv:

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install demcompare

Usage

Download the data samples and run the python script demcompare with sample configuration:

# download data samples
wget https://raw.githubusercontent.com/CNES/demcompare/master/data_samples/srtm_blurred_and_shifted.tif
wget https://raw.githubusercontent.com/CNES/demcompare/master/data_samples/srtm_ref.tif

# download demcompare predefined configuration
wget https://raw.githubusercontent.com/CNES/demcompare/master/data_samples/sample_config.json

# run demcompare
demcompare sample_config.json

A report can be observed with:

firefox test_output/report/published_report/html/index.html

Documentation

Please consult our online documentation.

Licensing

Demcompare software is distributed under the Apache Software License (ASL) v2.0.

See LICENSE file or http://www.apache.org/licenses/LICENSE-2.0 for details.

Copyrights and authoring can be found in NOTICE file.

Related tools

CARS - CNES 3D reconstruction software

Pandora - CNES Stereo Matching framework

Metadata

Release files for demcompare 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for demcompare 0.6.1
File Size Uploaded
demcompare-0.6.1.tar.gz 71.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for demcompare 0.6.1
File Interpreter ABI Platform
demcompare-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 75.9 MB

Release files / demcompare-0.6.1.tar.gz

Download URL demcompare-0.6.1.tar.gz
Size 71.9 MB
Tags Source
SHA-256 checksum
How to use checksums
602e890cba6c6cf5ccb7ca6fe7e9d439390ea29cf5cc2fbd8d7590f87a72342c
BLAKE2b-256 checksum
How to use checksums
2a3fcb74189c32e014e2642585a3c82c0cde155e429f5527d145cd0a67006c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.4

Release files / demcompare-0.6.1-py3-none-any.whl

Download URL demcompare-0.6.1-py3-none-any.whl
Size 4.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
48ce16f4e820733ec7aff20dcd89116304a4ee18ad3bef75681bf11dd3977861
BLAKE2b-256 checksum
How to use checksums
727a014bbb71f987f9233545a2f30b91f4dbf89ea256bec783cf59ed6b59af19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.4

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page