Current release info
| Name | Downloads | Version | Platforms |
|---|---|---|---|
geostatista
geostatista is the geostatistics tier of the serapeum stack: variograms, kriging, and spatial autocorrelation, built on top of pyramids and its GDAL stack. Input is scattered point observations; output is a continuous surface plus an uncertainty estimate, or per-feature autocorrelation statistics.
Main Features
- Variograms — empirical variogram clouds (Matheron / Cressie estimators) and
fitted theoretical models (
spherical,exponential,gaussian,matern, pluspower/nuggetfunctions). - Ordinary kriging — from a fitted variogram onto a regular grid, returning a
2-band
KrigedSurface(band 0 = estimate, band 1 = kriging variance) with acKDTreemoving neighborhood for large sample sets. - Validation — leave-one-out cross-validation with ME / RMSE / standardized-error diagnostics.
- Spatial autocorrelation — a sparse
Weightsmatrix (queen / rook contiguity, k-nearest, distance-band) feeding global (Moran's I, Geary's C) and local (Local Moran / LISA, Getis-Ord Gi*) statistics, with one-callspatial_autocorrelation/hotspotsfacades. - Plotting — variogram, LISA-cluster, and hotspot maps through
cleopatra (the
vizextra).
Everything hangs off Samples, a FeatureCollection subclass, so a column name is
always a method argument. See ADR 0001
for the pyramids ↔ geostatista boundary (pyramids keeps IDW and the free gdal.Grid
algorithms; geostatista owns every variogram and kriging variant).
Installation
conda (conda-forge)
conda install -c conda-forge geostatista
List the versions available on your platform with:
conda search geostatista --channel conda-forge
pip (PyPI)
pip install geostatista
From GitHub (latest development)
pip install git+https://github.com/serapeum-org/geostatista
Quick start
Krige scattered point observations onto a grid, with an uncertainty band:
from geostatista import Samples
samples = Samples.read_file("rain_gauges.geojson") # a Samples is-a FeatureCollection
vg = samples.variogram("rain").fit(model="spherical") # explore + fit spatial structure
surface = samples.krige("rain", vg, cell_size=1000) # 2-band KrigedSurface (estimate + variance)
surface.to_file("rain.tif") # self-describing GeoTIFF (GS_* tags)
cv = samples.cross_validate("rain", vg) # leave-one-out diagnostics
print(cv.attrs["summary"]) # ME, RMSE, standardized error, correlation
Measure and map spatial autocorrelation over polygon features:
from geostatista import Weights, morans_i, local_morans
w = Weights.queen(tracts) # queen-contiguity weights
morans_i(tracts, "income", w) # global Moran's I (I, EI, z, p)
lisa = local_morans(tracts, "income", w) # per-feature LISA clusters (HH / LL / HL / LH / ns)
See the documentation for the full guide.
Metadata
Release files for geostatista 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geostatista-0.3.0.tar.gz | 52.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geostatista-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 93.8 kB
Release files / geostatista-0.3.0.tar.gz
| Download URL | geostatista-0.3.0.tar.gz |
|---|---|
| Size | 52.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b7e810fad6f71f2547f93526fb3952c8fb0857b2681a21024a6a42616c2c3d5
|
|
BLAKE2b-256 checksum How to use checksums |
69fa70b8a9beb1d617e91770dceff7fc56e770dd5212504e4077bd9e051b49b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Release files / geostatista-0.3.0-py3-none-any.whl
| Download URL | geostatista-0.3.0-py3-none-any.whl |
|---|---|
| Size | 41.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b22a133a3c0aff0cbd255410beb795f9601a3af04de597faac0d8031085a20e
|
|
BLAKE2b-256 checksum How to use checksums |
203e53305f3b4c83fd7001dc0b2aa758c3780727f4aac2a08cb1508b628d24c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|