This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.1 instead.
Reason given by maintainers: Superseded by 0.2.1
SubsurfiX
v0.1.1
SubsurfiX takes you from a folder of well logs to a checked, correlated log set and a 3D property model you can run flow and heat simulations on. I built it because these steps usually live in separate tools, and every hand-off (cleaning logs, filling gaps, correlating wells, gridding, simulating) is where things get lost or quietly changed. Here it's one project file and one run: every filled value carries a provenance code, so you always know what was measured and what was filled. The engine is in Rust, and you drive it from Python or the command line.
Installation
pip install subsurfix
Prebuilt wheels are for macOS arm64; elsewhere pip builds from source, which needs Rust (stable), Python 3.12+, a C/C++ compiler and libclang (for the LightGBM build). To build from a clone:
git clone https://github.com/GeoLarryLai/SubsurfiX subsurfix && cd subsurfix
python -m venv .venv && . .venv/bin/activate
pip install -r requirements-dev.txt # maturin, pytest and notebook tools
maturin develop -r # builds subsurfix._native and installs the dependencies
Tests: cargo test --workspace, then maturin develop -r --features testing and python -m pytest tests/python -q.
The MODFLOW 6 bridges (examples 09 and 10) need the mf6 program. FloPy installs it with:
get-modflow :flopy
Citation
Lai, L.S.-H. (2026) SubsurfiX. Zenodo, https://doi.org/10.5281/zenodo.23832007
A 3D porosity model built from 60 Kansas wells, the end product of the whole workflow.
What it can do
- Read LAS files and surveys, mask bad intervals, and fill gaps (rules + LightGBM), tagging every value with a provenance code
- Correlate wells with DTW between neighbouring wells, solved as one network for all wells (Wheeler and Hale, 2014; Sylvester, 2023; Samant et al., 2025)
- Build regular or corner-point (GRDECL) grids, upscale, and estimate properties by kriging, SGS, SIS or ML (P10/P50/P90);
method="ember"adds embedded kriging, well conditioning and spatially correlated realizations, with blocked spatial cross-validation (ember_cv) - Score how many lithology classes the logs separate and interpret facies (sandstone, shale, limestone, dolomite, cherty carbonate) from cutoffs or a mineral-mixing solve (
subsurfix.facies) - Run pressure, tracer, two-phase water/oil and heat transport, and export to OpenGeoSys (
.vtu) - Cross-check flow and heat runs against MODFLOW 6 (GWF and GWE) through FloPy
- Exchange grids and properties with Leapfrog through OMF files (experimental)
- Experimental fully implicit multiphase engine (operator-based linearization): water–oil, oil–gas (black oil), CO₂–brine and thermal runs
- Run from Python (
sx.Project(...).run()) or the command line (subsurfix run --config project.toml), with a built-in synthetic demo project that needs no data
Examples
One Kansas well, showing the raw log (grey), what QC kept (black) and the filled samples (red), so you can see exactly what was touched.
A west–east section with GR plotted on elevation (left) and on correlated layer time (right). On the right, the beds line up.
Porosity in one layer mapped four ways (kriging, SGS, SIS and ML propagation), side by side for comparison.
A heat transport check against the Ogata–Banks solution, plus the cold front of an injector–producer doublet moving through time.
A geothermal doublet solved with SubsurfiX's heat model on a small layered block model (10 × 10 × 12 cells of 500 × 500 × 5 m, four units with porosity 0.06–0.22 and permeability 0.5–80 mD): 30 °C water injected into an 80 °C reservoir over 30 years, with a corner cut away to show the cold front through the layers.
Experimental fully implicit run on the same block model: water injected into dead oil for 40 years, showing water saturation.
Experimental fully implicit run on the same block model: gas injected into a black oil (synthetic PVT table) for 40 years, showing gas saturation (including gas coming out of solution near the producer).
Experimental fully implicit run on the same block model: CO₂ injected into brine at 50 °C for 40 years, showing CO₂ saturation.
One executed notebook per step on open data (Kansas Geological Survey, FORCE 2020): see
examples/README.md. scripts/ fetches the data.
Quick start
import subsurfix as sx
toml = sx.write_demo_project("sx_demo") # small synthetic project, no data needed
sx.prepare_edges(toml) # headers, tops, surveys -> tables
p = sx.Project(toml)
p.run() # ingest -> QC -> align -> normalize -> fill -> correlate -> export
print(p.status().to_pandas())
logs, tops = p.logs(well=1), p.tops()
Your own data: sx.init_project("my_project", crs="EPSG:32614", las_dirs=["las"]) writes a commented
project.toml; sx.template_toml() lists every setting. Command line: python -m subsurfix.edges project.toml,
then subsurfix run --config project.toml.
Acknowledgements
Log workflow: Gonzalez et al. (2023).
ml_propagation: Daly (2021),
Daly (2022), Meinshausen (2006).
Flow and heat: open-DARTS, OpenGeoSys,
OPM. The experimental fully implicit multiphase engine follows methods described by
open-DARTS (operator-based linearization) and
OpenGeoSys; it has not been validated as equivalent to either code.
MODFLOW 6 and FloPy: USGS. Data credits are in NOTICE.
Third-party notices: NOTICE.
Metadata
Release files for subsurfix 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| subsurfix-0.1.1.tar.gz | 1.1 MB | Without provenance | Details for subsurfix-0.1.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subsurfix-0.1.1-cp313-cp313-macosx_11_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 11.0+ ARM64 | Details for subsurfix-0.1.1-cp313-cp313-macosx_11_0_arm64.whl |
| subsurfix-0.1.1-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details for subsurfix-0.1.1-cp312-cp312-macosx_11_0_arm64.whl |
Total release size: 17.8 MB
Release files / subsurfix-0.1.1.tar.gz
| Download URL | subsurfix-0.1.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
283e8dbaae0a21986973e80243ed05bd7c05ac1e498d09077cde2f277d3597a3
|
|
BLAKE2b-256 checksum How to use checksums |
407ae1ff4b3f069ed461314dbdeda973748c848c5a80701eeaa494132e932444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / subsurfix-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | subsurfix-0.1.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
48719c331625db97a710871deb460a58e890cdf9b84fdebc257d064eecde3a47
|
|
BLAKE2b-256 checksum How to use checksums |
bc3f9e250f0827ab4d24ec6ee8d518ae3be540beb27ac75783c0d4cfd5e19adc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / subsurfix-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | subsurfix-0.1.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
94f66b1c8a37d613475929b7e0434095ed2380fc65d09f69f395f520cac7b3e1
|
|
BLAKE2b-256 checksum How to use checksums |
cbd93b9f717b6e65d3bc2f6f09aac300e8d853620d89d8784bd1d23736ae15fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for subsurfix 0.1.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.