scikit-gstat

Compute variograms, fit models, and perform kriging on 2D datasets.

46|3|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill scikit-gstat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-gstat
Source: https://github.com/SteadfastAsArt/geoscience-skills/tree/main/scikit-gstat
Command: npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill scikit-gstat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, matplotlib, skgstat, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Geostatistical analysis and modeling of spatial data often requires estimating variograms, selecting appropriate models, and performing kriging to generate predictions. This Skill provides a Pythonic, sklearn-style API (scikit-gstat) to streamline these tasks end-to-end.

Core Features & Use Cases

  • Variogram estimation with multiple models (spherical, exponential, gaussian, matern)
  • Spatial interpolation and prediction via OrdinaryKriging and directional variograms
  • Anisotropy assessment, cross-validation, and robust estimator options
  • Seamless integration into ML pipelines for geostatistical analysis and spatial analytics Use Case: A data scientist wants to quantify spatial correlation in environmental measurements and generate gridded predictions for a study area.

Quick Start

Load your coordinates and values, fit a variogram with a chosen model, and predict on a grid.

Frequently Asked Questions about scikit-gstat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fit a variogram model and perform kriging in Python?

To perform kriging in Python, use the sklearn-style API to load 2D coordinates and values, fit a variogram selecting models like spherical or matern, and predict interpolated values directly on a spatial grid.

What spatial variogram models are available for geostatistical analysis?

Spatial variogram models available for geostatistical analysis include spherical, exponential, gaussian, and matern. Fit these to 2D datasets to estimate spatial variability parameters and assess directional anisotropy.

Can I use scikit-learn pipelines for spatial interpolation and kriging?

Yes, you can use scikit-learn pipelines for spatial interpolation. The geostatistical functions utilize an sklearn-compatible API, enabling OrdinaryKriging and variogram fitting to integrate seamlessly into existing ML workflows.

How do I assess anisotropy and validate spatial predictions in 2D datasets?

Assess anisotropy and validate spatial predictions in 2D datasets by fitting directional variograms to identify spatial correlation shifts across orientations, then apply cross-validation to evaluate the robustness of kriging predictions.

What are the limitations of variogram estimators for environmental data?

Variogram estimators for environmental data may struggle with non-stationary spatial variability or extreme outliers. Mitigate these limitations by applying robust estimator options during variogram fitting to handle erratic spatial distributions better.