lithovox-tools
CPT interpretation for LithoVox: read a CPT (GEF or BRO XML) and classify its samples with Lengkeek & Brinkgreve (2022), the refinement of Robertson's (2010) chart that splits his zone 2 into peat (2a), organic clay (2b) and clay with organic matter (2c).
from lithovox_tools import read_cpt
from lithovox_tools.cpt import Lengkeek
interpretation = Lengkeek(read_cpt("cpt.gef")) # or Lengkeek.from_gef("cpt.gef")
for layer in interpretation.layers:
print(f"{layer.top:7.2f} {layer.bottom:7.2f} {layer.zone.label}")
interpretation.plot("cpt.png")
interpretation.plot() of the BRO CPT in tests/data (CPT000000251174, 712 samples,
19 layers): qc in black, fs in blue, Rf in red, and the soil behaviour type column in the
zones' colours — peat (2a) between 6 and 8 m deep.
The method
Isbt = sqrt((3.47 - log10(qt / pa))^2 + (log10(Rf) + 1.22)^2)
A sample below an organic zone's curve lies in that zone (Eq. 1, Table 4):
qt/pa = a * (Rf - Rf,min)^b
peat a = 8.0 b = 0.50 Rf,min = 5.2 %
organic clay a = 5.2 b = 0.62 Rf,min = 2.3 %
clay with organic matter a = 4.7 b = 0.64 Rf,min = 0.60 %
No stress normalisation, on purpose (the paper, 3.1). Layers thinner than MIN_LAYER
merge into their thicker neighbour, then neighbours of the same zone into one. The same
method as the desktop app (lithovox-modelling/src/robertson.rs).
Literature
- Lengkeek, H.J. & Brinkgreve, R.B.J. (2022), CPT-based classification of soft organic clays and peat: researchgate.net/publication/361159159
Modules
lithovox_tools.cpt:Lengkeek(cpt).samples,.layers,.zone(q, rf, isbt)and.plot(path=None), plusZoneandLayer.lithovox_tools.gef: GEF files, with pygef.lithovox_tools.bro: BRO CPT XML (dscpt 1.1), with brodata — a file or a BRO URL, its metadata and its measurements as a pandas DataFrame.lithovox_tools.read_cpt(): either, sniffed.
Install and test
uv sync --extra plot # the plot needs matplotlib
uv run pytest
Metadata
Release files for lithovox-tools 0.1.0
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 |
|---|---|---|---|---|
| lithovox_tools-0.1.0.tar.gz | 9.5 kB | With provenance | Details for lithovox_tools-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lithovox_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lithovox_tools-0.1.0-py3-none-any.whl |
Total release size: 22.2 kB
Release files / lithovox_tools-0.1.0.tar.gz
| Download URL | lithovox_tools-0.1.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f3d383af59adb08c72379a9901cbbac032cf34a3e729cb8e6675c5054bb785d
|
|
BLAKE2b-256 checksum How to use checksums |
3929a0245f5863b89012e960dbe1b8305dc24f1d6c92fc28934ec20b3df9934c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logRelease files / lithovox_tools-0.1.0-py3-none-any.whl
| Download URL | lithovox_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a890d73472e6274a101ad863c37030d84dfd722e3b41ba9800d4b6fb3f283a1
|
|
BLAKE2b-256 checksum How to use checksums |
05467af7060f9a9e89e0738a1a5709d5fbf9bd6af286f8d654dc782f21f662a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logSecurity for lithovox-tools 0.1.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.
Attestation for lithovox_tools-0.1.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 Nov 10, 2026.
Transparency logA 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.