G2S: The GeoStatistical Server

An extensible geostatistical framework connecting programming interfaces to simulation algorithms through a shared server.

Algorithms

  • QuickSampling (QS) (aka. Quantile Sampling) is a general-purpose pixel-based MPS algorithm that is designed to be robust, efficient, and run in constant time. QS was designed to adapt to your problem; it can be used to do (un)conditional simulation, gap filling, or even downscaling, using continuous or categorical variables or a combination of both. The code was developed without restrictions regarding the dimensionality of the data (e.g. 1D, 2D, 3D, nD).
  • Anchor Sampling (AS) is a location-anchored variant of QS for aligned training-image stacks. It preserves the same path-based simulation philosophy and neighborhood matching logic, but the admissible sampled center value is restricted to the same spatial coordinate across the TI stack. Pronounce it like the French as 🂡, or letter by letter as A, S.
  • Direct Sampling (DS) is a native CPU implementation of the Direct Sampling algorithm. It reuses the modern G2S simulation path and neighborhood infrastructure while using DS-style sequential TI scanning, threshold acceptance, best-so-far fallback, and optional local rotation/scale transforms on search-pattern offsets.
  • Narrow Distribution Selection (NDS) is an algorithm specifically targeted to simulate spectrally enhanced remote-sensed imagery. It requires an external variable (for example, a grayscale image) to control the simulation (of colors).
  • SNESIM is a categorical search-tree-based MPS algorithm with a dedicated multigrid workflow.
  • AutoQS is a calibration workflow used to explore QuickSampling settings.
  • pyDev lets you prototype a sequential simulation in Python: G2S handles the path, the neighbour search and the threads, and a Python class predicts each node. It is an optional build target that embeds Python 3.14 or later. See the pyDev tutorial for a first example.

The framework can be easily extended to handle most codes that use gridded data. Currently, any compiled code or Python code can be handled.