Skip to main content

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.

Project description

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

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

tfinterpy-1.1.3.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

TFInterpy-1.1.3-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file tfinterpy-1.1.3.tar.gz.

File metadata

  • Download URL: tfinterpy-1.1.3.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tfinterpy-1.1.3.tar.gz
Algorithm Hash digest
SHA256 e3b77b9318346bb7800b5f14f7f8bf9e84a06e860ad532fba14b1779ff1fb39d
MD5 880adbc240f45c762deffb3af8426ce5
BLAKE2b-256 8fe0cfb9ce5e9cabf9ea6bd058e3eafc2b4f9e8511bc00249e480fc4d3a6d2df

See more details on using hashes here.

File details

Details for the file TFInterpy-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: TFInterpy-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for TFInterpy-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 132e3e6fb39c3a578119f50b318d8866c4ae6851065b56c4956712fc82b76fe5
MD5 222522c82b9133733ed30640b0c0e37a
BLAKE2b-256 1ac1b92d7bc50319df09097532064d6aa599e1ad3e97cc586e365252e1009fac

See more details on using hashes here.

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