geossm: Geostatistics with State-Space Models¶
geossm is a Python package for applying state-space models to
spatial and spatio-temporal data. It works natively with
geopandas.GeoDataFrame objects and is built for modern
geostatistical workflows in environmental, climate, and geospatial
applications.
The package couples classical linear-Gaussian state-space modeling (Kalman filtering and smoothing) with a finite-element (SPDE) approximation of the Matérn covariance, so that large spatial and spatio-temporal datasets can be modeled through a low-rank state-space representation without giving up a principled spatial covariance structure.
It is developed by Jacopo Rodeschini and is built on the research presented in the PhD thesis A State-Space Modelling Framework in Geostatistics with Application to Environmental Data, and in Rodeschini et al., “Multivariate Low-Rank State-Space Model with SPDE Approach for High-Dimensional Data”, Spatial Statistics (2025).
Install geossm with pip or via the provided Conda environment.
Load a bundled dataset and fit a low-rank state-space model in a few steps.
Concepts behind data preparation, covariance models, and the state-space models themselves.
Full reference for every public module, class, and function.
Who is this for?¶
geossm targets researchers and practitioners working on geostatistical and spatio-temporal problems (e.g. air quality, climate, environmental monitoring) who want to:
fit classical state-space models (Kalman filter/smoother) to spatio-temporal observations tied to a
geopandas.GeoDataFrame;scale that modeling approach to a large number of spatial locations via a low-rank, SPDE-based spatial basis (
LRStateSpaceModel); andgo from raw geospatial data to fitted parameters, predictions, and diagnostics using a small, composable set of building blocks (design matrices, covariance models, meshes, state-space models).
Key features¶
GeoDataFrame-native: work directly with
geopandasobjects.State-space modeling: filtering, smoothing, simulation, and prediction for linear-Gaussian systems (
StateSpaceModel).Low-rank spatial models:
LRStateSpaceModelscales the above to large spatial domains via an SPDE/finite-element covariance approximation (spdeAppoxCov).Formula-based design matrices: build regressors from a Patsy/R-style formula string against a
geopandas.GeoDataFrame(DesignMatricesBuilder).JAX-accelerated: filtering/smoothing/estimation kernels run on CPU or GPU through JAX.
Project links¶
Source code and issue tracker: https://github.com/jacopoRodeschini/geossm
License: MIT
Package version documented here: 2.0.0