Skip to main content

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.

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

heightmap_interpolation-1.1.0.tar.gz (97.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heightmap_interpolation-1.1.0-py3-none-any.whl (136.1 kB view details)

Uploaded Python 3

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

Hashes for heightmap_interpolation-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4c355689ec8855c55d9b30fdd4ede7f33e237037bbda4b4813158fcc922bf32b
MD5 9bfcbb63ca84cbb4b3b1b8a8568bb940
BLAKE2b-256 fa7ae089fff2b6f249ecc2347609be06a8e56318df25a983123e2fc155febfdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for heightmap_interpolation-1.1.0.tar.gz:

Publisher: publish.yml on coronis-computing/heightmap_interpolation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file heightmap_interpolation-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for heightmap_interpolation-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6618a386b78e7c6a56d7ba7a91cf94e3954544d73e35307a5ded91a3cf333a54
MD5 7b4ed5a61efb9ecf92011c7fef813c48
BLAKE2b-256 2adda13c731a74b4095fbc9b054549d1ff999c7e006325426c1db5b2bbc7b907

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page