Skip to main content

GeoCond

GeoCond is a Python library for support-aware spatial conditioning. Its scientific core separates observation geometry and sampling support from source-specific ingestion, web services and visualization.

pip install geocond            # Python 3.12+, NumPy and SciPy only
pip install "geocond[reference]"   # plus the independent references the tests compare against

Status

Version 0.03.000. Each capability below is implemented, tested against an independent reference, and documented; the rest of the planned core is listed after it and is not claimed.

Capability Module Checked against Documentation
Minimum-curvature trajectories from collar and survey stations geometry analytic endpoints API contract
Known sampling supports and Gauss-Legendre quadrature support analytic integrals API contract
Conservative interval compositing, continuous and categorical compositing exact conservation API contract
Nested covariance: exponential, spherical and Gaussian families, geometric anisotropy, the linear model of coregionalization with full-spectrum PSD checks, process nugget covariance R/gstat 2.1-6 evaluated LMC covariances (within 2e-10) Covariance models
Range conventions of gstat, PyKrige and GSTools conventions each library's own evaluated functions Covariance models
Experimental direct and cross variograms: directions, angle tolerance, bandwidth, downhole pairs, classical and Cressie-Hawkins estimators, seeded pair sampling, retained pairs variogram an all-pair enumeration and GSTools 1.7.0 (identical bins) Variograms and fitting
Bounded, deterministic multi-start variogram fitting, isotropic or three principal ranges variogram exact recovery of noise-free nested and anisotropic models Variograms and fitting
Simple, ordinary and universal kriging and coupled simple and ordinary cokriging on support-integrated covariance, with joint error covariance, measurement error, the continuous-support nugget convention, a condition limit and per-target diagnostics kriging R/gstat 2.1-6 (univariate, coupled, block, nugget and measurement-error cases, within 2e-10), PyKrige 1.7.3 and GSTools 1.7.0 Kriging and cokriging
Deterministic anisotropic neighbourhoods with per-variable and per-hole limits neighborhood stated selection rules Kriging and cokriging
Nearest-neighbour and inverse-distance baselines, with no implied variance baselines direct computation Kriging and cokriging

Planned and not yet claimed: LMC fitting; multiple-indicator CDFs; sequential Gaussian simulation; training-image Direct Sampling; the optional PyTorch CUDA kernels that retain the CPU algorithm's conditioning order. The contract for all of them is in docs/api-contract.md.

Scope

Source adapters, geological assumptions, grouped training splits, neural training, native SNESIM orchestration and application deployment belong to consuming products. No field datasets, credentials, personal information or infrastructure bindings are part of the library.

Development

python -m venv .venv
.venv/Scripts/python -m pip install -e ".[test,reference,dev]"   # .venv/bin/python elsewhere
.venv/Scripts/python -m pytest -q
.venv/Scripts/python scripts/figures/methods_figures.py          # rebuild the method figures

The reference fixture tests/reference/gstat_fixed_covariance.json holds authored inputs and the outputs R/gstat computed for them in an isolated container; it carries its attribution and no gstat code.

Licensed under Apache-2.0. Numerical methods do not by themselves establish resource classes, reserves or operational certification.

Metadata

Release files for geocond 0.3.0

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

Source distribution (sdist)

Source distribution for geocond 0.3.0
File Size Uploaded Provenance Actions
geocond-0.3.0.tar.gz 44.7 kB With provenance Details for geocond-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 80.4 kB

Release files / geocond-0.3.0.tar.gz

Download URL geocond-0.3.0.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0810e9c6d2c098ae8958739b31cccc61543df2d807cd3b60437d1b6039f43d12
BLAKE2b-256 checksum
How to use checksums
276815f1456009162234eb1656771ebaa60c2b7199800921aa16cef581998f83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Release files / geocond-0.3.0-py3-none-any.whl

Download URL geocond-0.3.0-py3-none-any.whl
Size 35.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51430ac177fac3c2166ae81e57171aec08415b43f25deca3fd1c77b30e912ec7
BLAKE2b-256 checksum
How to use checksums
e4f12ac3a9014150c45a9aaca5fb12ebc4c4a540a2b196ebfa1d2a1973430540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

Security for geocond 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geocond-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.

Transparency log

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