pyLogDigitizer
pyLogDigitizer turns scanned paper well logs (TIFF) into LAS files. Lots of older wells only exist as paper scans, and digitizing them by hand is slow and hard to check. So I built a tool that does the tedious parts (finding tracks and grids, reading depth labels, tracing curves) and gives you a local browser app to check and fix every step. Curves that run off the track and come back on a backup scale get unwrapped automatically. Everything runs on your own machine and nothing is uploaded.
Installation
pip install pylogdigitizer
From source (builds the Rust tracer, needs a Rust toolchain):
git clone https://github.com/GeoLarryLai/pyLogDigitizer && cd pyLogDigitizer
pip install .
Or conda env create -f environment.yml && conda activate pylogdigitizer, then maturin develop --release.
Without the Rust part everything still works, only slower.
Citation
Lai, L.S.-H. (2026) pyLogDigitizer. Zenodo, https://doi.org/10.5281/zenodo.23832013
The whole idea in one picture: a scanned paper log going in and a LAS curve coming out.
What it can do
- Find tracks and grids, deskew the scan, read depth labels (OCR) and calibrate scales, including backup-scale wraparound
- Trace curves with a fast dynamic-programming tracer (Rust, with a Python fallback)
- Fix a trace in the app: click the real curve to pin it, drag a pin, or re-trace just the part inside a cursor circle
- Nudge track edges, set a scale from two grid lines, and click any OCR word in the header to correct it (the scale is re-fitted)
- Optionally train a U-Net cost map on your own corrected traces; batch runs send low-confidence curves to review
- Compare results against a reference LAS and write LAS 2.0
- Work through one local browser app, the command line or Python
Examples
The guided app with a traced curve laid over the scan, ready for you to review and fix.
A curve digitized with the assisted workflow, checked against the paired Kansas Geological Survey (KGS) LAS.
On held-out Kansas wells, correlation and error against the reference LAS for the conventional and the ML cost map.
Notebooks: notebooks/01_conventional_vs_assisted.ipynb (one scan, step by step) and
notebooks/02_kansas_ml_train_batch.ipynb (train the cost map and batch-digitize). Example scans and LAS files are
from the Kansas Geological Survey (example_data/SOURCES.txt).
Quick start
pylogdigitizer info example_data/USA_A_16_15-055-20536/4342.tif # scan size and resolution
pylogdigitizer-app . # the app at http://127.0.0.1 (local only); `pylogdigitizer editor .` is an alias
The ML cost map (cost_mode="ml" or "blend") needs PyTorch (pip install torch) and a trained checkpoint. Without
them the tracer uses the conventional cost map.
The same from Python:
from pylogdigitizer import workflows as wf
R = wf.digitize_curve("example_data/USA_A_16_15-055-20536/4342.tif", track="track1", scale=(0, 150),
first_depth=1500, depth_range=(1500, 7030), backup=(150, 300))
R["depth"], R["value"], R["conf"] # then las_export.resample + write_las
backup=(150, 300) is the backup scale: when a curve runs off the edge of its track it is redrawn from the other
edge on a second scale, and the tracer unwraps it.
Third-party notices and data credits: NOTICE.
Metadata
Release files for pylogdigitizer 0.1.2
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 |
|---|---|---|---|---|
| pylogdigitizer-0.1.2.tar.gz | 216.7 kB | Without provenance | Details for pylogdigitizer-0.1.2.tar.gz |
Built distributions (wheels)
Total release size: 4.5 MB
Release files / pylogdigitizer-0.1.2.tar.gz
| Download URL | pylogdigitizer-0.1.2.tar.gz |
|---|---|
| Size | 216.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bbffae5dbb2c0f978b038d813d896eae0776a7df0c8284384ea4ba87dc63a3a
|
|
BLAKE2b-256 checksum How to use checksums |
f49f4aa475d50c17fc0e643429a16dfd929dd556d47d185bd76bdcf11d7ff32c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | pylogdigitizer-0.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 542.5 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6b6611c401248827f78c87e12df14f30481c049ff84c72596b502ae78e85a19c
|
|
BLAKE2b-256 checksum How to use checksums |
8fc670813365e213615b24f8780cd1d73219da10feffac67e56a3290aa45cf8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pylogdigitizer-0.1.2-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 526.5 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c33096b55e8d3c35912e1cdefadddcab29b06d8a6db8bd43857def8763c3a625
|
|
BLAKE2b-256 checksum How to use checksums |
640a80ec2d517c53fc15823ab4b58963646f4092ca2c666ae908f0e498933f91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | pylogdigitizer-0.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 542.8 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3ce75877600b456490a0e43722d4d0649d4ed4be5c85649802a1e613292af939
|
|
BLAKE2b-256 checksum How to use checksums |
7121a6b42408d934f8172a80bbde565a5f7584dac88f209162d17edab8a4f5c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pylogdigitizer-0.1.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 526.6 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7836a33f5cf471c39764464c9e52e85da33440930eda2d14b33f2c8a75eb0c28
|
|
BLAKE2b-256 checksum How to use checksums |
e683a8fb2c39522734cbdf2a1c9e2f7b5729dd531456384802c8b94079785829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | pylogdigitizer-0.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 542.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
38dd873d54e5b6d525302c67cf7942a9e3d2b499d02b8a296f09a0f3a11c9754
|
|
BLAKE2b-256 checksum How to use checksums |
b5da9712e4945d68afb5929deeb75d6e6f44abd702897c010649fb91c25c2ae2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pylogdigitizer-0.1.2-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 526.4 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b006bb27869283c7b05e285936593cd8c93f79bad69bd070458e585a537c1fc7
|
|
BLAKE2b-256 checksum How to use checksums |
f386060643781dbf4668766e41f8f6dd5f12c724f6bb9a1266a203f57ee0a310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | pylogdigitizer-0.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 542.1 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d7f16fc829632dfc9da739bd439978d54ca9098664a4ea2ce5f9c3a141d10fc1
|
|
BLAKE2b-256 checksum How to use checksums |
1df2d75dff540e729f0a18b6daca54d408f79807abde1c6e019619f5088430f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / pylogdigitizer-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | pylogdigitizer-0.1.2-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 526.9 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
db5794b24baeb0aaf26ea0ef111bb23be3a3ff77a519f3201101a82b90bd6ab7
|
|
BLAKE2b-256 checksum How to use checksums |
847e43057af58cd4ba50650b9a2c8cc9b634399753ef1c45e4540c572d973081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for pylogdigitizer 0.1.2
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.