Skip to main content

Spatial interpolation Python module

Project description

License Build Status Documentation Status CodeFactor

PyInterpolate

PyInterpolate is designed as the Python library for geostatistics. It's role is to provide access to spatial statistics tools used in a wide range of studies. This package helps you interpolate spatial data with Kriging technique. In the close future you'll use more spatial interpolation tools.

If you’re:

  • GIS expert,
  • geologist,
  • mining engineer,
  • ecologist,
  • public health specialist,
  • data scientist.

Then this package may be useful for you. You could use it for:

  • spatial interpolation and spatial prediction,
  • alone or with machine learning libraries,
  • for point and areal datasets.

Pyinterpolate allows you to perform:

  1. Ordinary Kriging and Simple Kriging (spatial interpolation from points),
  2. Centroid-based Kriging of Polygons (spatial interpolation from blocks and areas),
  3. Area-to-area and Area-to-point Poisson Kriging of Polygons (spatial interpolation and data deconvolution from areas to points).

Status

Beta version: package is tested and the main structure is preserved but future changes are very likely to occur.

Setup

Setup by pip: pip install pyinterpolate / Python 3.7 is required!

Manual setup is described in the file SETUP.md: https://github.com/szymon-datalions/pyinterpolate/blob/master/SETUP.md We pointed there most common problems related to third-party packages.

Commercial and scientific projects where library has been used

  • Tick-Borne Disease Detector (Data Lions company) for the European Space Agency (2019-2020).
  • B2C project related to the prediction of demand for specific flu medications,
  • B2G project related to the large-scale infrastructure maintenance.

Community

Join our community in Discord: https://discord.gg/3EMuRkj

Bibliography

PyInterpolate was created thanks to many resources and all of them are pointed here:

  • Armstrong M., Basic Linear Geostatistics, Springer 1998,
  • GIS Algorithms by Ningchuan Xiao: https://uk.sagepub.com/en-gb/eur/gis-algorithms/book241284
  • Pardo-Iguzquiza E., VARFIT: a fortran-77 program for fitting variogram models by weighted least squares, Computers & Geosciences 25, 251-261, 1999,
  • Goovaerts P., Kriging and Semivariogram Deconvolution in the Presence of Irregular Geographical Units, Mathematical Geology 40(1), 101-128, 2008
  • Deutsch C.V., Correcting for Negative Weights in Ordinary Kriging, Computers & Geosciences Vol.22, No.7, pp. 765-773, 1996

Requirements and dependencies

  • Python 3.7.6

  • Numpy 1.18.3

  • Scipy 1.4.1

  • GeoPandas 0.7.0

  • Fiona 1.18.13.post1 (Mac OS) / Fiona 1.8 (Linux)

  • Rtree 0.9.4 (Mac OS), Rtree >= 0.8 & < 0.9 (Linux)

  • Descartes 1.1.0

  • Pyproj 2.6.0

  • Shapely 1.7.0

  • Matplotlib 3.2.1

Package structure

High level overview:

::

  • pyinterpolate
    • distance - distance calculation
    • io_ops - reads and prepares input spatial datasets,
    • transform - transforms spatial datasets,
    • viz - interpolation of smooth surfaces from points into rasters,
    • kriging - Ordinary Kriging, Simple Kriging, Poisson Kriging: centroid based, area-to-area, area-to-point,
    • misc - compare different kriging techniques,
    • semivariance - calculate semivariance, fit semivariograms and regularize semivariogram,
    • tutorials - tutorials (Basic, Intermediate and Advanced)

Functions documentation

Pyinterpolate https://pyinterpolate.readthedocs.io/en/latest/

Development

  • inverse distance weighting,
  • semivariogram analysis and visualization methods,
  • see Projects page of this repository!

Known Bugs

  • (still) not detected!

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

pyinterpolate-0.2.2.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

pyinterpolate-0.2.2-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file pyinterpolate-0.2.2.tar.gz.

File metadata

  • Download URL: pyinterpolate-0.2.2.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.9

File hashes

Hashes for pyinterpolate-0.2.2.tar.gz
Algorithm Hash digest
SHA256 53f17618b8c556dae613ef84ee6a5e2be108a1441271af71f8e8c9bf9ebdc449
MD5 2a291097ea59d32f0c457059f58b0f57
BLAKE2b-256 d0cf0ec9a7b1fd964dd0fe5753b49bae133086786dc6beda8712d9c7638ef9a0

See more details on using hashes here.

Provenance

File details

Details for the file pyinterpolate-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyinterpolate-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 69.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.9

File hashes

Hashes for pyinterpolate-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3b3554820902804c5fae66d6303f0d5473b61f0b3f30f72e3e4b39673390954
MD5 38e2b69b306e4ee18f7487b2d3da385c
BLAKE2b-256 a07c97e607e9f211e7257c5f0c4319dd83db2d12c7b84bb42919c83c3a320c45

See more details on using hashes here.

Provenance

Supported by

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