Preprints
https://doi.org/10.5194/egusphere-2026-5708
https://doi.org/10.5194/egusphere-2026-5708
03 Nov 2026
 | 03 Nov 2026
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

KrigeKit v0.3.2: a parallel Python–Fortran engine for variogram analysis, kriging, and geostatistical simulation

Gengxin Ou, Vivek Bedekar, Matthew Tonkin, Gilbert Barth, and Marinko Karanovic

Abstract. Kriging and geostatistical simulation underpin environmental modeling, yet practitioners must choose between aging file-driven Fortran codes such as GSLIB and convenient but slower high-level packages. We present KrigeKit, an open-source (MIT) library pairing an OpenMP-parallel Fortran engine with a dependency-light Python layer. A single engine provides ordinary, simple, and co-kriging, kriging with external drift, sequential Gaussian and indicator simulation, and space-time kriging. Its hallmark is the breadth of advanced capabilities it exposes together — multiplicative covariance structures, gradient constraints, spatially varying anisotropy, and positive-semidefinite co-kriging fitting — seldom available in one package. Performance comes from parallel block estimation, tabular variogram evaluation, and a per-thread Cholesky cache that cuts the per-block cost from O(n3) to O(n2) on repeated neighborhoods. We verify KrigeKit against analytic results and established packages, characterize its parallel scaling, and demonstrate it on three environmental case studies. KrigeKit ships as pre-built wheels on PyPI for Linux, macOS, and Windows.

Competing interests: The authors are affiliated with S.S. Papadopulos & Associates, Inc., which develops KrigeKit and the downstream tools (Texture2Par, Groundwater Desktop) referenced in Sect. 7.1. Beyond this affiliation, the authors declare that they have no competing interests.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Gengxin Ou, Vivek Bedekar, Matthew Tonkin, Gilbert Barth, and Marinko Karanovic

Status: open (until 29 Dec 2026)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
Gengxin Ou, Vivek Bedekar, Matthew Tonkin, Gilbert Barth, and Marinko Karanovic
Gengxin Ou, Vivek Bedekar, Matthew Tonkin, Gilbert Barth, and Marinko Karanovic
Metrics will be available soon.
Latest update: 03 Nov 2026
Download
Short summary
Environmental scientists often need to map conditions between scattered measurements, but existing tools can be slow or difficult to use. We developed KrigeKit, free software with a simple interface and a fast computing engine. Tests against established tools and three groundwater examples produced matching results. In the largest speed test, it ran up to 67 times faster than a widely used alternative, making detailed environmental mapping and assessment of uncertainty more accessible.
Share