Skip to main content

pyLogDigitizer

DOI License
Python versions PyPI version PyPI downloads conda-forge version conda downloads

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

From a scanned paper log to a LAS curve 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

Tracing in the app The guided app with a traced curve laid over the scan, ready for you to review and fix.

Digitized vs reference LAS A curve digitized with the assisted workflow, checked against the paired Kansas Geological Survey (KGS) LAS.

ML vs conventional cost map 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.3

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

Source distribution (sdist)

Source distribution for pylogdigitizer 0.1.3
File Size Uploaded Provenance Actions
pylogdigitizer-0.1.3.tar.gz 15.1 MB Without provenance Details for pylogdigitizer-0.1.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pylogdigitizer 0.1.3
File Actions
pylogdigitizer-0.1.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for pylogdigitizer-0.1.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.1.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for pylogdigitizer-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
pylogdigitizer-0.1.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for pylogdigitizer-0.1.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.1.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pylogdigitizer-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
pylogdigitizer-0.1.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for pylogdigitizer-0.1.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.1.3-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pylogdigitizer-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
pylogdigitizer-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pylogdigitizer-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.1.3-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for pylogdigitizer-0.1.3-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 138.4 MB

Release files / pylogdigitizer-0.1.3.tar.gz

Download URL pylogdigitizer-0.1.3.tar.gz
Size 15.1 MB
Tags Source
SHA-256 checksum
How to use checksums
a639fe73fe89c2082c89062065c81f561ff6596ae319309a359b7e7b9211f867
BLAKE2b-256 checksum
How to use checksums
32a6211e997e5b1621af02417791414fbba8e1b0e3219211238e0482bfa723d7
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.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.1.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 15.4 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d4f53a2169d16f60c2a434a5c23c01ed1977e7cb9b0e14506dbbd637d66cee0b
BLAKE2b-256 checksum
How to use checksums
78c8369f382cfeed4c5c1deee7d9d37a2934e68c93ac13fbee26db3d63913f21
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.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Size 15.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3dec4a5e4d64aca7214c81e2e32ce5b1c21126b91a8bda9b3fc4c0d7d9889d16
BLAKE2b-256 checksum
How to use checksums
a9b9fac8c881f1abb6c7ba922113bcee853307f2d1947fe46302d98535e4fee0
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.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.1.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 15.4 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7652bdccd77767231d48adf955a592da03df892e1d5b1ea1f9a271bab94d64cd
BLAKE2b-256 checksum
How to use checksums
d90853ee0ad8f931e5ee9120aa69686ecc6f0813d4a285dac976ee34e684fcc3
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.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Size 15.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
80e4571e2adc2c8c7fcde39a0ba3de08b7aecd41de174b329e6fee5deae75228
BLAKE2b-256 checksum
How to use checksums
310ec8b035f42a6cfceccabae3e3ff4e306d604ad52eae71feb2f77993feb653
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.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.1.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 15.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
950e6fb36d8b0c3f6b917c04ee8102f02ee1d2fe0de29892e5c7377dd3901d46
BLAKE2b-256 checksum
How to use checksums
8ec49d7761e53be7e1c5475524fdd1594294153056fdf345fdb1dd7b1a2a11dd
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.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Size 15.4 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
038a21a397bc61956c4342915056cc829675be84e8f74af76afd7ff5b611d733
BLAKE2b-256 checksum
How to use checksums
cac8fddf70df50cd60b18362d93a8f22d10b233fb9a17f41d55808023a43cbce
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.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 15.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e0a3a8618ad7a6986a177680655c59b17fce21e1fb07faa855f949fa206b6cfc
BLAKE2b-256 checksum
How to use checksums
55b1cf5d841fc5455ace6b84a2b4b252830df45c34046af1bb057cbd105097fd
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.3-cp310-cp310-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Size 15.4 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7eed1d888f4e083b40eb62b49b0794a7e396401491d19fb2fe5c6987f0f8b070
BLAKE2b-256 checksum
How to use checksums
62aa21187ec180386ea86c2d728b3c0ddf83c54ddbb6532e53f72f9bd0bfc323
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.3

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