Interpolation functions for heightmaps developed within the EMODnet Bathymetry (High Resolution Seabed Mapping) project.
Project description
EMODnet - Heightmap Interpolation (Python)
Interpolation functions for heightmaps developed within the EMODnet Bathymetry (High Resolution Seabed Mapping) project.
Please visit the documentation at: https://emodnet-heightmap-interpolation.readthedocs.io/en/latest/
Installation
This package is available through PyPI:
pip install heightmap-interpolation
Otherwise, the package and all its requirements can be installed from sources through setuptools using:
python setup.py install
Note that it requires python >= 3.10 to run.
If you prefer to install it in a virtual environment:
python3.10 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install .
Usage
This package installs two tools for interpolating from the command line:
interpolate_netcdf4: interpolates an already-gridded dataset in a NetCDF4 file.interpolate_xyz: takes a set of points (XYZ coordinates in a text file, one line each), creates a grid, and fills this grid with the interpolated values.
You can check the parameters of both tools with the --help argument:
interpolate_netcdf4 --help
interpolate_xyz --help
For other uses, take the code in the apps/interpolate_netcdf4.py script as reference and use directly the different interpolation modules at your convenience.
Docker
For convenience, we also provide a docker image with all the dependencies intalled at DockerHub. Assuming you have docker installed, you can obtain it by:
docker pull coroniscomputing/heightmap_interpolation:<tag_name>
Where <tag_name> must be a specific version of the package, or latest.
Or, if you want to compile the docker image by yourself:
docker build -t <image_tag_name> .
Then, run it with:
docker run -it -v <data_folder>:/data coroniscomputing/heightmap_interpolation:<tag_name>
On the one hand, using the -v flag we are mounting the directory containing the data to process to the /data folder within the container. The container will automatically run the bash command, and you will be inside the container. Thus, there we simply run the interpolate_netcdf4 script with the desired parameters
For instance:
interpolate_netcdf4 -o /data/<netcdf_results_file> linear /data/<netcdf_input_file>
Keep in mind that this way of running the docker does not provide visualization, so the "--show" flag will be useless! There are ways of sharing the Xs with docker, but these are out of the scope of this documentation.
Acknowledgements
This project has been developed by Coronis Computing S.L. within the EMODnet Bathymetry (High Resolution Seabed Mapping) project.
- EMODnet: http://www.emodnet.eu/
- EMODnet (bathymetry): http://www.emodnet-bathymetry.eu/
- Coronis: http://www.coronis.es
Project details
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 heightmap_interpolation-1.1.0.tar.gz.
File metadata
- Download URL: heightmap_interpolation-1.1.0.tar.gz
- Upload date:
- Size: 97.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c355689ec8855c55d9b30fdd4ede7f33e237037bbda4b4813158fcc922bf32b
|
|
| MD5 |
9bfcbb63ca84cbb4b3b1b8a8568bb940
|
|
| BLAKE2b-256 |
fa7ae089fff2b6f249ecc2347609be06a8e56318df25a983123e2fc155febfdb
|
Provenance
The following attestation bundles were made for heightmap_interpolation-1.1.0.tar.gz:
Publisher:
publish.yml on coronis-computing/heightmap_interpolation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heightmap_interpolation-1.1.0.tar.gz -
Subject digest:
4c355689ec8855c55d9b30fdd4ede7f33e237037bbda4b4813158fcc922bf32b - Sigstore transparency entry: 1134955180
- Sigstore integration time:
-
Permalink:
coronis-computing/heightmap_interpolation@a963377ed1f6ca4df4951e9fd90fc8c521749eda -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/coronis-computing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a963377ed1f6ca4df4951e9fd90fc8c521749eda -
Trigger Event:
release
-
Statement type:
File details
Details for the file heightmap_interpolation-1.1.0-py3-none-any.whl.
File metadata
- Download URL: heightmap_interpolation-1.1.0-py3-none-any.whl
- Upload date:
- Size: 136.1 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 |
6618a386b78e7c6a56d7ba7a91cf94e3954544d73e35307a5ded91a3cf333a54
|
|
| MD5 |
7b4ed5a61efb9ecf92011c7fef813c48
|
|
| BLAKE2b-256 |
2adda13c731a74b4095fbc9b054549d1ff999c7e006325426c1db5b2bbc7b907
|
Provenance
The following attestation bundles were made for heightmap_interpolation-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on coronis-computing/heightmap_interpolation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heightmap_interpolation-1.1.0-py3-none-any.whl -
Subject digest:
6618a386b78e7c6a56d7ba7a91cf94e3954544d73e35307a5ded91a3cf333a54 - Sigstore transparency entry: 1134955248
- Sigstore integration time:
-
Permalink:
coronis-computing/heightmap_interpolation@a963377ed1f6ca4df4951e9fd90fc8c521749eda -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/coronis-computing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a963377ed1f6ca4df4951e9fd90fc8c521749eda -
Trigger Event:
release
-
Statement type: