Skip to main content

PyKrige

DOI PyPI version Conda Version Build Status Coverage Status Documentation Status Code style: black

PyKrige-LOGO

Kriging Toolkit for Python.

Purpose

The code supports 2D and 3D ordinary and universal kriging. Standard variogram models (linear, power, spherical, gaussian, exponential) are built in, but custom variogram models can also be used. The 2D universal kriging code currently supports regional-linear, point-logarithmic, and external drift terms, while the 3D universal kriging code supports a regional-linear drift term in all three spatial dimensions. Both universal kriging classes also support generic 'specified' and 'functional' drift capabilities. With the 'specified' drift capability, the user may manually specify the values of the drift(s) at each data point and all grid points. With the 'functional' drift capability, the user may provide callable function(s) of the spatial coordinates that define the drift(s). The package includes a module that contains functions that should be useful in working with ASCII grid files (\*.asc).

See the documentation at http://pykrige.readthedocs.io/ for more details and examples.

Installation

PyKrige requires Python 3.5+ as well as numpy, scipy. It can be installed from PyPi with,

pip install pykrige

scikit-learn is an optional dependency needed for parameter tuning and regression kriging. matplotlib is an optional dependency needed for plotting.

If you use conda, PyKrige can be installed from the conda-forge channel with,

conda install -c conda-forge pykrige

Features

Kriging algorithms

  • OrdinaryKriging: 2D ordinary kriging with estimated mean
  • UniversalKriging: 2D universal kriging providing drift terms
  • OrdinaryKriging3D: 3D ordinary kriging
  • UniversalKriging3D: 3D universal kriging
  • RegressionKriging: An implementation of Regression-Kriging
  • ClassificationKriging: An implementation of Simplicial Indicator Kriging

Wrappers

  • rk.Krige: A scikit-learn wrapper class for Ordinary and Universal Kriging

Tools

  • kriging_tools.write_asc_grid: Writes gridded data to ASCII grid file (\*.asc)
  • kriging_tools.read_asc_grid: Reads ASCII grid file (\*.asc)
  • kriging_tools.write_zmap_grid: Writes gridded data to zmap file (\*.zmap)
  • kriging_tools.read_zmap_grid: Reads zmap file (\*.zmap)

Kriging Parameters Tuning

A scikit-learn compatible API for parameter tuning by cross-validation is exposed in sklearn.model_selection.GridSearchCV. See the Krige CV example for a more practical illustration.

Regression Kriging

Regression kriging can be performed with pykrige.rk.RegressionKriging. This class takes as parameters a scikit-learn regression model, and details of either the OrdinaryKriging or the UniversalKriging class, and performs a correction step on the ML regression prediction.

A demonstration of the regression kriging is provided in the corresponding example.

Classification Kriging

Simplifical Indicator kriging can be performed with pykrige.ck.ClassificationKriging. This class takes as parameters a scikit-learn classification model, and details of either the OrdinaryKriging or the UniversalKriging class, and performs a correction step on the ML classification prediction.

A demonstration of the classification kriging is provided in the corresponding example.

License

PyKrige uses the BSD 3-Clause License.

Release files for PyKrige 1.7.2

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

Source distribution (sdist)

Source distribution for PyKrige 1.7.2
File Size Uploaded Provenance Actions
pykrige-1.7.2.tar.gz 618.7 kB Without provenance Details for pykrige-1.7.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for PyKrige 1.7.2
File Actions
PyKrige-1.7.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for PyKrige-1.7.2-cp312-cp312-win_amd64.whl
PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl
PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.9+ x86-64 Details for PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl
PyKrige-1.7.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for PyKrige-1.7.2-cp311-cp311-win_amd64.whl
PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl
PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl
PyKrige-1.7.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for PyKrige-1.7.2-cp310-cp310-win_amd64.whl
PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
PyKrige-1.7.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for PyKrige-1.7.2-cp39-cp39-win_amd64.whl
PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl
PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl
PyKrige-1.7.2-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for PyKrige-1.7.2-cp38-cp38-win_amd64.whl
PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl
PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 8.5 MB

Release files / pykrige-1.7.2.tar.gz

Download URL pykrige-1.7.2.tar.gz
Size 618.7 kB
Tags Source
SHA-256 checksum
How to use checksums
25b45a4173714c0b62098d19019404cb3978fa8bd8abae9ba55a272a53979e35
BLAKE2b-256 checksum
How to use checksums
ea00d815833441d8c52bf4a6930952e77d3de77d0bf67b3202ccc12dabdae279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp312-cp312-win_amd64.whl

Download URL PyKrige-1.7.2-cp312-cp312-win_amd64.whl
Size 205.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
e0138c1dfdbbaeb76df20a304f90deeccec56951518ceae81e34bfbbb49649f5
BLAKE2b-256 checksum
How to use checksums
e5f1df7322867f2279ce82a79211196c1dfd62c230bd62a889e0016ea4f6c7cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 961.7 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a6e15c999435de303f76413b41d6ba4d271e12d96a93ac2f1acd4d80d526fab2
BLAKE2b-256 checksum
How to use checksums
0139214da796fd63f74bfe78be57cda7d1ab0305a0b2345974ce0d65955f219c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl
Size 214.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2bdc676f5d3ddad2552dbf1e6d9699cc186039379dd0a84a5c9c2c27cbf9dc53
BLAKE2b-256 checksum
How to use checksums
2cf8a4d6909126020c4193051c97a86b5a7bd6e312f96c88f85794a4b69ab8ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl

Download URL PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl
Size 227.3 kB
Tags CPython 3.12 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
91cd18ec9044d28fe5b397e5788b712b7f36c0c116de22ae7d56952f83b253ca
BLAKE2b-256 checksum
How to use checksums
1f57a0161ed40ca24be480a02067410a849317d38d736fa3894190c0dc4280ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp311-cp311-win_amd64.whl

Download URL PyKrige-1.7.2-cp311-cp311-win_amd64.whl
Size 205.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
36b8fec0e761f6406de992f16dbc6f82a7616a918f6e2dc0a13002a419831827
BLAKE2b-256 checksum
How to use checksums
50c4b2465d12e370dc4a20539a163b7ca84d0bb6dc8a41a37dbed9b7069bcb97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 979.6 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
175f1b12dfe3cd1751f2c70c872c8d16ca712b55569fe98fd5ae4bd58fb49cc3
BLAKE2b-256 checksum
How to use checksums
51a320535a4e2ab56539dfd169fbad55fd302745bde52d6e4041a1dc02324e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl
Size 212.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b4e68fc84df9fb521a27a1bec2dee60c12a95988712fee31e0a8753c5e51f3df
BLAKE2b-256 checksum
How to use checksums
ac911282b2561a455eda659b481816771f722b3c68fad75506a5d4d70d0f1726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl

Download URL PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl
Size 224.6 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
725bac8d185078f6e9853acb89cf2cc6eee3ce193419c0c7ec2b9b43b55f4057
BLAKE2b-256 checksum
How to use checksums
aacd65fab13b7ffb8c219ec0f3b7308e5be9c50721562e212e1f302e4d467727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp310-cp310-win_amd64.whl

Download URL PyKrige-1.7.2-cp310-cp310-win_amd64.whl
Size 205.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
479917f68b448d3952cf572126ea0a859da4780d50c8ff4be00d41f3dc9396b7
BLAKE2b-256 checksum
How to use checksums
1a995442c539400f640c14ae10f1f88e4b85ed1511b19d8cd03fb03e79a046e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 909.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
855032b06995b4789d42e4ccd99a2484fabd3fad30d79525b8fe913cc8ff0546
BLAKE2b-256 checksum
How to use checksums
b729d524db356834989799b11efb83361a2ae7720f3c55ed1be67e369da57475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
Size 212.9 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
54bf6252e3fa91a6d798e7d9669108154d2f6866283da6f6029d2813667e64ea
BLAKE2b-256 checksum
How to use checksums
8851f9312aa28fee96670e9012b8a162864309d8cc3317e5788d84ec7520a660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl

Download URL PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
Size 224.9 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
5975b5fd939266835c197289dbdb2dd2c2408f9cb56246019c43d5353eaa3ea3
BLAKE2b-256 checksum
How to use checksums
c022ff87203ebbe231c7101304a46ebf4ea00632a976a6e9c470d487c905a832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp39-cp39-win_amd64.whl

Download URL PyKrige-1.7.2-cp39-cp39-win_amd64.whl
Size 206.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
7e2944e111b530991f937bd79fcc04d9d74e64785bdc672ea12626f19cbdbfdd
BLAKE2b-256 checksum
How to use checksums
24e2e3dbfe7a35b719892e09f313ddba26fa2679db6d080a9782c3975a55dbde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 915.0 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e588f5e087f08356e4089e0dd83266e751e8821a8feff33a52a4ffc888ce321a
BLAKE2b-256 checksum
How to use checksums
bb9254bde5a6c097b3267c7f29e9650c52842c970c1184d2b311a3e95ae34e37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl

Download URL PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl
Size 214.2 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7d742ed9240d31c3b082570c3d99bf1a0a0b02d49c723cb69a12ed52fc2faf27
BLAKE2b-256 checksum
How to use checksums
7f316e82ba491e2bad3272f86e73409668388cb2503773f3a6d3c829a764a63a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl

Download URL PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl
Size 226.0 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
4982734bbbd562fd8affdfd23d10a5f77a61690a1e75fc0e5514a0c016a813eb
BLAKE2b-256 checksum
How to use checksums
097681b2b99afc614cbc5ba878772d42c13421b7ea0ffa8cfba71879b4f2403a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp38-cp38-win_amd64.whl

Download URL PyKrige-1.7.2-cp38-cp38-win_amd64.whl
Size 206.7 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
8195c4371374f49075dfd94b82caa1fd5be10fa7fb9892947e959c337b4924b5
BLAKE2b-256 checksum
How to use checksums
50f08534db70f3c54b9563833a0665655f8e677a8e2cceb3d7bb46d4936d0a03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 924.8 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
86a872bf47c72eaf5cf8d30eb56b6eea21ac0c47e4468a3d4b44586651b7d9aa
BLAKE2b-256 checksum
How to use checksums
18eb08d7e9c339ad57d06855bc14543d05a5b87e775a982777f890c49d57088e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl

Download URL PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl
Size 213.7 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8fbd401edda1aff0a2031cacf8ddf5ba737c283dfc0d89b2cb249c0b0987b221
BLAKE2b-256 checksum
How to use checksums
6c0721d78a3d9fd7a32e057db8e47221fa0cb2e1196b5ed96cd2edb5bd85e8e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl

Download URL PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl
Size 224.9 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
77c673dd7440ea80dcdd27f9a96371feeaa4eaaaa3cf5c70f75474aa19c6574f
BLAKE2b-256 checksum
How to use checksums
ef424a55f3d4bbcbd8588ee4173b6a32b7daac459dcaf596fb54560da3f03644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for PyKrige 1.7.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

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