Semi-automated modification of Digital Elevation Models
Project description
digdem
Description
digdem package can be used to modify semi-automatically Digital Elevation Models (or any raster data) in specific regions, using a limited number of
control points and control profiles. It follows the following steps:
- Create instance of
SurfModwith initial DEM, and an array specifying where the DEM will be modified; - Generate controlling sections (typically longitudinal and transverse sections), and specify the new altitude of their intersections if any;
- Add additional control points along the sections by specifying their altitude, and if needed additional control points located within the mask but not on the sections;
digdemthen interpolates the new DEM within the mask by:- Interpolating splines along each section
- Interpolating the new DEM with Radial Basis Functions, using points along the splines, points on the contour of the mask, and if applicable additional control points within the mask.
- Plot the new topography
Note that digdem is still under development, thus only minimal documentation is available at the moment, and testing is underway.
Contributions are feedback are most welcome.
Installation
digdem can be installed from GitHub, PyPi or Anaconda. Supposedly stable releases are distributed to PyPi and Anaconda. Distribution to Anaconda is made manually from the PyPi package, thus the last available version on conda-forge may be an older version than the one distributed on PyPi.
It is strongly recommended to install digdem in a virtual environnement dedicated to this package. This can be done with virtualenv
(see the documentation e.g. here).
Create the environnement with :
python -m venv /path/to/myenv
and activate it, on Linux:
source /path/to/myenv/bin/activate
and on Windows:
\path\to\myenv\Scripts\activate
Alternatively, if you are more used to Anaconda :
conda create -n digdem pip
conda activate digdem
or equivalently with Mamba :
mamba create -n digdem pip
mamba activate digdem
Latest stable release from Anaconda
With Anaconda:
conda install digdem
or equivalently with Mamba:
mamba install digdem
Latest stable realease from PyPi
Before installing with pip, make sure pip, steuptools and wheel are up to date
python -m pip install --upgrade pip setuptools wheel
Then run
python -m pip install digdem
Development version on from GitHub
Download the GithHub repository here, or clone it with
git clone https://github.com/marcperuz/digdem.git
Open a terminal in the created folder and type:
python -m pip install .
If you want to developp and test digdem and have your modification directly taken into account when running your code, use:
python -m pip install -e .
Alternatively, if you don't want to install the package with pip, you can also add the src folder to your Python path.
Quick start
See jupyter notebooks in examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file digdem-0.2.6.tar.gz.
File metadata
- Download URL: digdem-0.2.6.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d78338dc97252e8bc7ad56cd84dc5efb748eec936b1d707b068568227c070932
|
|
| MD5 |
e54b63465f53e93a696731c5d19de44c
|
|
| BLAKE2b-256 |
c233360ef5b121826fa1ce2933cc9a5bb0b31a884ed6ffcf7d47f12d89a829b2
|
Provenance
The following attestation bundles were made for digdem-0.2.6.tar.gz:
Publisher:
publish_to_pypi.yml on marcperuz/digdem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
digdem-0.2.6.tar.gz -
Subject digest:
d78338dc97252e8bc7ad56cd84dc5efb748eec936b1d707b068568227c070932 - Sigstore transparency entry: 652717118
- Sigstore integration time:
-
Permalink:
marcperuz/digdem@be6faa882584a7247ec4f301a341634fca33c4ab -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/marcperuz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@be6faa882584a7247ec4f301a341634fca33c4ab -
Trigger Event:
release
-
Statement type:
File details
Details for the file digdem-0.2.6-py3-none-any.whl.
File metadata
- Download URL: digdem-0.2.6-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33ea62a4186a40a867ae2b404b5d3f5e553d404010908c9cb0ccbb01f23eddef
|
|
| MD5 |
907df92c2cf59c96e928b2f05f8e11df
|
|
| BLAKE2b-256 |
53389cc2539f556f593d519254ab8c42e2b74850495b5408005bc9ed910837b3
|
Provenance
The following attestation bundles were made for digdem-0.2.6-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on marcperuz/digdem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
digdem-0.2.6-py3-none-any.whl -
Subject digest:
33ea62a4186a40a867ae2b404b5d3f5e553d404010908c9cb0ccbb01f23eddef - Sigstore transparency entry: 652717128
- Sigstore integration time:
-
Permalink:
marcperuz/digdem@be6faa882584a7247ec4f301a341634fca33c4ab -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/marcperuz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@be6faa882584a7247ec4f301a341634fca33c4ab -
Trigger Event:
release
-
Statement type: