Skip to main content

Kriging Toolkit for Python.

Project description

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykrige-1.7.2.tar.gz (618.7 kB view details)

Uploaded Source

Built Distributions

PyKrige-1.7.2-cp312-cp312-win_amd64.whl (205.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (961.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl (214.8 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl (227.3 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

PyKrige-1.7.2-cp311-cp311-win_amd64.whl (205.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (979.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl (212.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl (224.6 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

PyKrige-1.7.2-cp310-cp310-win_amd64.whl (205.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (909.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl (212.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl (224.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

PyKrige-1.7.2-cp39-cp39-win_amd64.whl (206.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (915.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl (214.2 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl (226.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

PyKrige-1.7.2-cp38-cp38-win_amd64.whl (206.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (924.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl (213.7 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl (224.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file pykrige-1.7.2.tar.gz.

File metadata

  • Download URL: pykrige-1.7.2.tar.gz
  • Upload date:
  • Size: 618.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pykrige-1.7.2.tar.gz
Algorithm Hash digest
SHA256 25b45a4173714c0b62098d19019404cb3978fa8bd8abae9ba55a272a53979e35
MD5 097c8619ce4fe3bed1c0e578550245c8
BLAKE2b-256 ea00d815833441d8c52bf4a6930952e77d3de77d0bf67b3202ccc12dabdae279

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: PyKrige-1.7.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 205.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for PyKrige-1.7.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e0138c1dfdbbaeb76df20a304f90deeccec56951518ceae81e34bfbbb49649f5
MD5 85a61d183bc748f0719b684661327e8e
BLAKE2b-256 e5f1df7322867f2279ce82a79211196c1dfd62c230bd62a889e0016ea4f6c7cf

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6e15c999435de303f76413b41d6ba4d271e12d96a93ac2f1acd4d80d526fab2
MD5 3d89f31222d90e930f730154c36a7cc9
BLAKE2b-256 0139214da796fd63f74bfe78be57cda7d1ab0305a0b2345974ce0d65955f219c

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bdc676f5d3ddad2552dbf1e6d9699cc186039379dd0a84a5c9c2c27cbf9dc53
MD5 0f4e5747c17fb703ffb4ca8f34b22664
BLAKE2b-256 2cf8a4d6909126020c4193051c97a86b5a7bd6e312f96c88f85794a4b69ab8ce

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 91cd18ec9044d28fe5b397e5788b712b7f36c0c116de22ae7d56952f83b253ca
MD5 856de2dadf62c5a3aa9841b573c54425
BLAKE2b-256 1f57a0161ed40ca24be480a02067410a849317d38d736fa3894190c0dc4280ab

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: PyKrige-1.7.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 205.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for PyKrige-1.7.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 36b8fec0e761f6406de992f16dbc6f82a7616a918f6e2dc0a13002a419831827
MD5 119cffb5bffc1d069dc129614a23a37c
BLAKE2b-256 50c4b2465d12e370dc4a20539a163b7ca84d0bb6dc8a41a37dbed9b7069bcb97

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 175f1b12dfe3cd1751f2c70c872c8d16ca712b55569fe98fd5ae4bd58fb49cc3
MD5 f08f575ab0120cb3f29e00ff2b237fdd
BLAKE2b-256 51a320535a4e2ab56539dfd169fbad55fd302745bde52d6e4041a1dc02324e97

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4e68fc84df9fb521a27a1bec2dee60c12a95988712fee31e0a8753c5e51f3df
MD5 11709a39cb71c20d7238123f1cb70f1d
BLAKE2b-256 ac911282b2561a455eda659b481816771f722b3c68fad75506a5d4d70d0f1726

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 725bac8d185078f6e9853acb89cf2cc6eee3ce193419c0c7ec2b9b43b55f4057
MD5 b243aae1b5869aaf400017cc8841da15
BLAKE2b-256 aacd65fab13b7ffb8c219ec0f3b7308e5be9c50721562e212e1f302e4d467727

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: PyKrige-1.7.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 205.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for PyKrige-1.7.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 479917f68b448d3952cf572126ea0a859da4780d50c8ff4be00d41f3dc9396b7
MD5 49b70c1cff9773c81eec2baf83408fb5
BLAKE2b-256 1a995442c539400f640c14ae10f1f88e4b85ed1511b19d8cd03fb03e79a046e3

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 855032b06995b4789d42e4ccd99a2484fabd3fad30d79525b8fe913cc8ff0546
MD5 4a8d5460c73c2c451da6ce99687cde10
BLAKE2b-256 b729d524db356834989799b11efb83361a2ae7720f3c55ed1be67e369da57475

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54bf6252e3fa91a6d798e7d9669108154d2f6866283da6f6029d2813667e64ea
MD5 01a7c42967eeffb91164ad46abbe2985
BLAKE2b-256 8851f9312aa28fee96670e9012b8a162864309d8cc3317e5788d84ec7520a660

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5975b5fd939266835c197289dbdb2dd2c2408f9cb56246019c43d5353eaa3ea3
MD5 e8471b730486088a816c5aa92a5cbfb8
BLAKE2b-256 c022ff87203ebbe231c7101304a46ebf4ea00632a976a6e9c470d487c905a832

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: PyKrige-1.7.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 206.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for PyKrige-1.7.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7e2944e111b530991f937bd79fcc04d9d74e64785bdc672ea12626f19cbdbfdd
MD5 8684abeb5b9829477cfb6849cded96b1
BLAKE2b-256 24e2e3dbfe7a35b719892e09f313ddba26fa2679db6d080a9782c3975a55dbde

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e588f5e087f08356e4089e0dd83266e751e8821a8feff33a52a4ffc888ce321a
MD5 9220369c79d9b3af154574d9202be8cc
BLAKE2b-256 bb9254bde5a6c097b3267c7f29e9650c52842c970c1184d2b311a3e95ae34e37

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d742ed9240d31c3b082570c3d99bf1a0a0b02d49c723cb69a12ed52fc2faf27
MD5 934e79f8e805bca3e802588deda8610d
BLAKE2b-256 7f316e82ba491e2bad3272f86e73409668388cb2503773f3a6d3c829a764a63a

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4982734bbbd562fd8affdfd23d10a5f77a61690a1e75fc0e5514a0c016a813eb
MD5 14032ae20941c61de2e12208e57757f8
BLAKE2b-256 097681b2b99afc614cbc5ba878772d42c13421b7ea0ffa8cfba71879b4f2403a

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: PyKrige-1.7.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 206.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for PyKrige-1.7.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8195c4371374f49075dfd94b82caa1fd5be10fa7fb9892947e959c337b4924b5
MD5 698d1abc35cbef6c48370353e396e262
BLAKE2b-256 50f08534db70f3c54b9563833a0665655f8e677a8e2cceb3d7bb46d4936d0a03

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86a872bf47c72eaf5cf8d30eb56b6eea21ac0c47e4468a3d4b44586651b7d9aa
MD5 97503247fd7beb7c4217496fa3605edf
BLAKE2b-256 18eb08d7e9c339ad57d06855bc14543d05a5b87e775a982777f890c49d57088e

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fbd401edda1aff0a2031cacf8ddf5ba737c283dfc0d89b2cb249c0b0987b221
MD5 194b2c8edbd2e77989e6dcd7aa1de9b2
BLAKE2b-256 6c0721d78a3d9fd7a32e057db8e47221fa0cb2e1196b5ed96cd2edb5bd85e8e2

See more details on using hashes here.

Provenance

File details

Details for the file PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyKrige-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 77c673dd7440ea80dcdd27f9a96371feeaa4eaaaa3cf5c70f75474aa19c6574f
MD5 9a8d068a012fbf4b7d9b30f2d92f7505
BLAKE2b-256 ef424a55f3d4bbcbd8588ee4173b6a32b7daac459dcaf596fb54560da3f03644

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