Skip to main content

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 .

Optional (experimental) methods

Some interpolation methods rely on heavier, optional dependencies and are only available when these are installed:

pip install heightmap_interpolation[experimental]

In particular, the gmt_surface method wraps GMT's surface gridder through PyGMT. Besides the pygmt Python package (pulled in by the experimental extra), it additionally requires the GMT binaries to be present on the system, e.g. via conda: conda install -c conda-forge gmt pygmt. The method only appears in the list of available methods when pygmt can be imported.

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.

Metadata

Release files for heightmap-interpolation 1.2.0

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

Source distribution (sdist)

Source distribution for heightmap-interpolation 1.2.0
File Size Uploaded Provenance Actions
heightmap_interpolation-1.2.0.tar.gz 109.3 kB With provenance Details for heightmap_interpolation-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heightmap-interpolation 1.2.0
File Interpreter ABI Platform Actions
heightmap_interpolation-1.2.0-py3-none-any.whl Python 3 none any Details for heightmap_interpolation-1.2.0-py3-none-any.whl

Total release size: 257.4 kB

Release files / heightmap_interpolation-1.2.0.tar.gz

Download URL heightmap_interpolation-1.2.0.tar.gz
Size 109.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7b536a6d7fe9a2a1234fd8bb40e2850566eb89f409a34e64cb985984b3d884d7
BLAKE2b-256 checksum
How to use checksums
1471ee2852276c1eb9251dd591700676c6e1a2f1818c3d0d56c5efaecb595872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / heightmap_interpolation-1.2.0-py3-none-any.whl

Download URL heightmap_interpolation-1.2.0-py3-none-any.whl
Size 148.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
566ed35027fe5866b7d6f67ac56475540c6a6ac5b8b7ada1dd7ada90f20c6c67
BLAKE2b-256 checksum
How to use checksums
8246fc60344efbe3796a542434dda8df03f91c4b13a6185be6451cf81a836ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for heightmap-interpolation 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for heightmap_interpolation-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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