Skip to main content

pyLogDigitizer

pyLogDigitizer

PyPI version pepy downloads DOI License: AGPL-3.0-or-later

v0.1.0

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); click anchors to re-trace just one part
  • 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 a guided browser app, a web editor, 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 .                        # guided app at http://127.0.0.1 (local only)
pylogdigitizer editor . --open              # web editor

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.1

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.1
File Size Uploaded Provenance Actions
pylogdigitizer-0.1.1.tar.gz 216.9 kB Without provenance Details for pylogdigitizer-0.1.1.tar.gz

Built distributions (wheels)

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

Total release size: 4.5 MB

Release files / pylogdigitizer-0.1.1.tar.gz

Download URL pylogdigitizer-0.1.1.tar.gz
Size 216.9 kB
Tags Source
SHA-256 checksum
How to use checksums
883fd2291ee9efc0093d6bea1ccbc846b1bc08231fb9aa4e68b8272cf4435de6
BLAKE2b-256 checksum
How to use checksums
ffd7d792d51bb6e627489133c909fc7dc0b4b453c77ce9fceda76b284c8f5917
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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pylogdigitizer-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 544.0 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e38e89d988181c77f2b01fbc8b0449bb54f5ebdd1cb97297e94169cae09adbb7
BLAKE2b-256 checksum
How to use checksums
e2af1bb74b04cc83451292d2ac8776fb21ade31ccd6e93d0f66ca98ef68b9c9a
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.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Size 528.4 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c8ecf5d22334da0e60f96381832e65697d08e2bebbc6ece07a7352f9b5550caf
BLAKE2b-256 checksum
How to use checksums
d3d12e9a1a53131ab39af67e317cb0841ba1106f28af6df3073671d4a554f58f
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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pylogdigitizer-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 544.3 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9bf5daadadaf4dcb1d4c37cfcc245efe46f635f7cd29484762ed319ce0848f4f
BLAKE2b-256 checksum
How to use checksums
70319fb5ced0086a149ac2ee831d9f1d684dc1c64a42a7104677d89b717f79b3
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.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Size 528.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
512656881ed7ee55bae8961afa7860124807a252468f47fdefa409a196c7b885
BLAKE2b-256 checksum
How to use checksums
d13536de0e7f9a4c698707957ec7e25be555ef600a1111f0969fc078f1e014c9
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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pylogdigitizer-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 543.4 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5b1b9c51707fd790aaa22142c7c5be9f45ea9f55ea0d81e0039b2d1e5f132d4f
BLAKE2b-256 checksum
How to use checksums
7797160c5f23f28d66dcf6f23a10a7996e80a6f5789ee975c0b9badfb988a40e
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.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Size 528.4 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2c7c411278a7f2c2db09e9ce8f6ee603256574febb9bdee73d43e3caf7207ef0
BLAKE2b-256 checksum
How to use checksums
ffdef6dbefdae44d98920280998e1ba55b65bdda9c6aba3dbdd1558f6d964703
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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pylogdigitizer-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 543.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
23706323af9b281c0218604d05e95cc6a976ec8cf76b98ac86397bff4b711695
BLAKE2b-256 checksum
How to use checksums
4f5670a7a739fa0bbe9e79a7e27b0adf2596eeac808b725d4219c68a395c1da0
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.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Size 528.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
30c5bc69e4e6bda39c28806fa2f403317c86a8be8e6103680246ca02d68f1074
BLAKE2b-256 checksum
How to use checksums
6fdfdc5b862d03e0e16003318b59a039c458f10aa88aaa64cffadab628a32e35
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.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.

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