Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
heightmap_interpolation-1.2.0rc1.tar.gz 109.4 kB With provenance Details for heightmap_interpolation-1.2.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 257.5 kB

Release files / heightmap_interpolation-1.2.0rc1.tar.gz

Download URL heightmap_interpolation-1.2.0rc1.tar.gz
Size 109.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0c52b4d51889a62ce16cb0492fb26adf4c454eb649cec1acca551541d05f940e
BLAKE2b-256 checksum
How to use checksums
b183d30e5b0aa292cde8958489a0996749615fccf6456dcc40801c6d4691b476
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.0rc1-py3-none-any.whl

Download URL heightmap_interpolation-1.2.0rc1-py3-none-any.whl
Size 148.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94ab6c55a09ae61c4247909c2ad39b38683931888865fb33f9c8a1c920a39b15
BLAKE2b-256 checksum
How to use checksums
1cec5e946b4ddf3dd2ed983390068e999f687f3304cd2e0ac304d10755f6ccab
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.0rc1

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.0rc1.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