Skip to main content

TFInterpy

TFInterpy is a Python package for spatial interpolation. A high-performance version of several interpolation algorithms is implemented based on TensorFlow. Including parallelizable IDW and Kriging algorithms. So far, tfinterpy is the fastest open source Kriging algorithm, which can reduce the operation time of large-scale interpolation tasks by an order of magnitude

Link to our paper

TFInterpy: A high-performance spatial interpolation Python package
(https://doi.org/10.1016/j.softx.2022.101229)

Performance comparison (unit: second)

Grid size GeostatsPy-OK PyKrige-OK TFInterpy-OK TFInterpy-TFOK(GPU) TFInterpy-TFOK(CPU)
1x104 23.977 1.258 0.828 2.070 0.979
1x105 230.299 12.264 8.140 6.239 2.067
1x106 2011.351 121.711 82.397 45.737 11.683
1x107 2784.843 1250.980 849.974 452.567 112.331

Screenshots

Snapshot of GUI tool. Snapshot of GUI tool

Requirements

Minimum usage requirements: Python 3+, Numpy, SciPy

TensorFlow based algorithm: TensorFlow 2

GSLIB file support: Pandas

3D visualization: VTK

GUI Tool: PyQT5


Usage

All examples are stored on the github homepage

Install tfinterpy

pip install tfinterpy

Then install dependencies

Full dependencies : (To avoid package version issues, the specific version numbers tested in Python3.9 are listed here)

pip install matplotlib==3.9.4
pip install numpy==2.0.2
pip install pandas==2.2.3
pip install PyQt5==5.15.11
pip install scipy==1.13.1
pip install tensorflow==2.18.0
pip install vtk==9.4.1

Notice! You may do not need to install all dependencies

  • If you only need to use the most basic interpolation algorithm, install the following package. (see "examples/" for usage)
    pip install numpy==2.0.2
    pip install scipy==1.13.1
    
  • If you need to use TensorFlow-based interpolation algorithms, you need to install tensorflow. (see "examples/tf" for usage)
    pip install tensorflow==2.18.0
    
    or (Use GPU for computing)
    pip install tensorflow-gpu==2.18.0
    
  • If you need to use the built-in GUI tools (see "examples/gui" for usage) provided, please install full dependencies as above list.

netcdf4 also needs to be installed to run the examples in the examples folder:

pip install netCDF4==1.7.2

Metadata

Release files for TFInterpy 1.1.3

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

Source distribution (sdist)

Source distribution for TFInterpy 1.1.3
File Size Uploaded
tfinterpy-1.1.3.tar.gz 39.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TFInterpy 1.1.3
File Interpreter ABI Platform
TFInterpy-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 87.5 kB

Release files / tfinterpy-1.1.3.tar.gz

Download URL tfinterpy-1.1.3.tar.gz
Size 39.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e3b77b9318346bb7800b5f14f7f8bf9e84a06e860ad532fba14b1779ff1fb39d
BLAKE2b-256 checksum
How to use checksums
8fe0cfb9ce5e9cabf9ea6bd058e3eafc2b4f9e8511bc00249e480fc4d3a6d2df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / TFInterpy-1.1.3-py3-none-any.whl

Download URL TFInterpy-1.1.3-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
132e3e6fb39c3a578119f50b318d8866c4ae6851065b56c4956712fc82b76fe5
BLAKE2b-256 checksum
How to use checksums
1ac1b92d7bc50319df09097532064d6aa599e1ad3e97cc586e365252e1009fac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.1

1 release file

1.1.0

1 release file

1.0.1

2 release files

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