{
  "name": "Variogram argument crosswalk: R gstat versus Python scikit-gstat",
  "description": "Side-by-side mapping of variogram settings (distance limits, binning, estimator, model, fitting method, outputs, range convention) between the R package gstat and the Python package scikit-gstat, compiled from each package's own reference documentation, read 2026-11-13.",
  "page": "https://casrai.org/guides/variogram",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-19T15:35:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Setting",
      "unit": "",
      "description": ""
    },
    {
      "name": "R gstat",
      "unit": "",
      "description": ""
    },
    {
      "name": "Python scikit-gstat",
      "unit": "",
      "description": ""
    },
    {
      "name": "Note",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Setting": "Maximum pair distance",
      "R gstat": "cutoff (default: bounding-box diagonal / 3)",
      "Python scikit-gstat": "maxlag",
      "Note": "R: distance up to which pairs are included; Python: maximum lag distance option"
    },
    {
      "Setting": "Bin definition",
      "R gstat": "width (default: cutoff/15)",
      "Python scikit-gstat": "n_lags, bin_func",
      "Note": "R sets bin width; Python sets number of lags and binning function"
    },
    {
      "Setting": "Robust estimator",
      "R gstat": "cressie = TRUE",
      "Python scikit-gstat": "estimator = 'cressie'",
      "Note": "Default in R is the classical method-of-moments estimator; default in Python is matheron"
    },
    {
      "Setting": "Model type",
      "R gstat": "vgm(psill, model, range, nugget): Sph, Exp, Gau, Mat",
      "Python scikit-gstat": "model: spherical, exponential, gaussian, matern",
      "Note": "Short names in R, full names in Python"
    },
    {
      "Setting": "Fitting method",
      "R gstat": "fit.method = 7 (default)",
      "Python scikit-gstat": "fit_method = 'trf' (default) or 'lm'",
      "Note": "Different algorithms and weighting options; results can differ"
    },
    {
      "Setting": "Fit summary",
      "R gstat": "singular and SSErr attributes",
      "Python scikit-gstat": "V.describe()",
      "Note": "R flags non-convergence; Python returns model, estimator, effective range, sill, nugget"
    },
    {
      "Setting": "Range definition",
      "R gstat": "range parameter of the model",
      "Python scikit-gstat": "effective_range at 95% of sill",
      "Note": "Check the convention before comparing ranges across tools"
    }
  ],
  "sources": [
    {
      "title": "gstat variogram()",
      "url": "https://r-spatial.github.io/gstat/reference/variogram.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "gstat fit.variogram()",
      "url": "https://r-spatial.github.io/gstat/reference/fit.variogram.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "gstat vgm()",
      "url": "https://r-spatial.github.io/gstat/reference/vgm.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "scikit-gstat user guide: Variogram",
      "url": "https://scikit-gstat.readthedocs.io/en/latest/userguide/variogram.html",
      "accessed": "2026-11-13"
    }
  ]
}