PyKrige is a Kriging Toolkit for Python that supports 2D and 3D ordinary and universal kriging, as well as simple kriging, regression kriging, and conditional realizations. It provides a scikit-learn compatible interface and is developed by the GeoStat Framework project. Current version: 1.7.3. Release cadence: irregular, with several updates per year.
pip install pykrigeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Perform ordinary kriging on 2D synthetic data with a linear variogram model.
Use 'linear' or 'spherical' as default; test other models on small datasets first.
Replace 'from pykrige.kriging_tools import ...' with 'from pykrige.tools import ...'.
Always pass coordinate_data keyword: model.fit(X, y, coordinate_data=coords).
Remove duplicate points using numpy.unique or adjust the variogram model (try 'linear').
Use 'from pykrige.ok import OrdinaryKriging'.
Ensure X is 2D (n_samples, n_features) and coordinate_data is 2D (n_samples, n_dims).