Skip to main content

Jupyter Book Badge Binder PyPI PyPI - Downloads

GStatSim Office Hours

Drop in with quetions, debugging help, or ideas.

Upcoming sessions:

  • February 10 - 10-11 AM EST
  • March 27 - 3-4 PM EST
  • April 14 - 4-5 PM EST

Registration link: https://ufl.zoom.us/meeting/register/3A-x8K3CSmSmPYfCeIfDlA

Check back for future office hours postings!

GStatSim

GStatSim is a Python package specifically designed for geostatistical interpolation and simulation. It is inspired by open source geostatistical resources such as GeostatsPy and SciKit-GStat. The functions are intended to address the challenges of working with large data sets, non-linear trends, variability in measurement density, and non-stationarity. These tools are part of our ongoing effort to develop and adapt open-access geostatistical functions.

We have created Jupyter Book tutorials here: https://gatorglaciology.github.io/gstatsimbook/intro.html

See our paper here: https://doi.org/10.5194/gmd-16-3765-2023

In its current state, the demos focus on the geostatistical simulation of subglacial topography. However, these protocols could be applied to a number geoscientific topics.

We will continuously develop new tools and tutorials to address specific technical challenges in geostatistics. Do you have feedback or suggestions? Specific things that we should account for? Feel free to contact me at emackie@ufl.edu. Our goal is to create tools that are useful and accessible, so we welcome your thoughts and insight.

Features

Functions

Some of the tools in GStatSim:

  • skrige - Simple kriging
  • okrige - Ordinary kriging
  • skrige_sgs - Sequential Gaussian simulation using simple kriging
  • okrige_sgs - Sequential Gaussian simulation using ordinary kriging
  • cluster_sgs - Sequential Gaussian simulation where different variograms are used in different areas
  • cokrige_mm1 - Cokriging (kriging with a secondary constraint) under Markov assumptions
  • cosim_mm1 - Cosimulation under Markov assumptions

Demos

We have created tutorials that are designed to provide an intuitive understanding of geostatistical methods and to demonstrate how these methods are used. The current demos are:

  • 1_Experimental_Variogram.ipynb - Demonstration of experimental variogram calculation to quantify spatial relationships.
  • 2_Variogram_model.ipynb - A tutorial on fitting a variogram model to an experimental variogram.
  • 3_Simple_kriging_and_ordinary_kriging.ipynb - Demonstration of simple kriging and ordinary kriging interpolation.
  • 4_Sequential_Gaussian_Simulation.ipynb - An introduction to stochastic simulation.
  • 5_Variogram_interpolation_comparison.ipynb - A demonstration of kriging and SGS with different variogram models.
  • 6_interpolation_with_anisotropy.ipynb - A demonstration of kriging and SGS with anisotropy.
  • 7_non-stationary_SGS_example1.ipynb - A tutorial on SGS with multiple variograms. This demo uses k-means clustering to divide the conditioning data into groups that are each assigned their own variogram.
  • 8_non-stationary_SGS_example2.ipynb - SGS using multiple variograms where the clusters are determined automatically.
  • 9_interpolation_with_a_trend.ipynb - Kriging and SGS in the presence of a large-scale trend.
  • 10_cokriging_and_cosimulation_MM1.ipynb - Kriging and SGS using secondary constraints.

Contributors

(Emma) Mickey MacKie, University of Florida

Michael Field, University of Florida

Lijing Wang, Lawrence Berkeley National Laboratory

(Zhen) David Yin, Stanford University

Nathan Schoedl, University of Florida

Matthew Hibbs, University of Florida

Mirko Malicke, Karlsruhe Institute of Technology

Usage

Install GStatSim with pip install gstatsim

or

git clone https://github.com/GatorGlaciology/GStatSim

Package dependencies

  • Numpy
  • Pandas
  • Scipy
  • tqdm
  • Sklearn

Requirements for visualization and variogram analysis

  • Matplotlib
  • SciKit-GStat

These can all be installed using the command pip install (package name).

Educational use

GStatSim is well-suited for educational use. Please contact us if you plan on using GStatSim material in a course so we can track the impact of our work.

Cite as

MacKie, E. J., Field, M., Wang, L., Yin, Z., Schoedl, N., Hibbs, M., & Zhang, A. (2023). GStatSim V1. 0: a Python package for geostatistical interpolation and conditional simulation. Geoscientific Model Development, 16(13), 3765-3783.

or

@article{mackie2023gstatsim, title={GStatSim V1. 0: a Python package for geostatistical interpolation and conditional simulation}, author={MacKie, Emma J and Field, Michael and Wang, Lijing and Yin, Zhen and Schoedl, Nathan and Hibbs, Matthew and Zhang, Allan}, journal={Geoscientific Model Development}, volume={16}, number={13}, pages={3765--3783}, year={2023}, publisher={Copernicus Publications G{"o}ttingen, Germany} }

Datasets

The demos use radar bed measurements from the Center for the Remote Sensing of Ice Sheets (CReSIS, 2020).

CReSIS. 2020. Radar depth sounder, Lawrence, Kansas, USA. Digital Media. http://data.cresis.ku.edu/.

Metadata

Release files for gstatsim 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gstatsim 1.2.1
File Size Uploaded Provenance Actions
gstatsim-1.2.1.tar.gz 16.0 kB Without provenance Details for gstatsim-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gstatsim 1.2.1
File Interpreter ABI Platform Actions
gstatsim-1.2.1-py3-none-any.whl Python 3 none any Details for gstatsim-1.2.1-py3-none-any.whl

Total release size: 29.7 kB

Release files / gstatsim-1.2.1.tar.gz

Download URL gstatsim-1.2.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
10d381beca33e4a00d486c89a28ace69b6c2c6b1669bc047f2572799870cbcc3
BLAKE2b-256 checksum
How to use checksums
66d9071031bc88d178290319972069dfb79ef486ece71889beacd8ffd322d19c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.14

Release files / gstatsim-1.2.1-py3-none-any.whl

Download URL gstatsim-1.2.1-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
035f55bbf3cffb3b87e1651bd202acd0b93c4a61f9ee0d3d8952a47aad9495fc
BLAKE2b-256 checksum
How to use checksums
8a81d7adb345ad53e221a9408b2ad43f0dbd4bc8fc424e6e8e7d215e8c79739c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.14

Security for gstatsim 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page