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) and digital-print (vector) PDF logs 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)
  • Separate curve ink from grid and text with a small bundled ONNX segmenter (scan_seg_v2, default; scan_seg_overflow opt-in), or train your own with notebooks/03_train_scan_segmenter.ipynb (writes to your own folder, never over the bundled model)
  • Read digital-print PDF logs straight from their vector paths (pylogdigitizer.pdf_vector.digitize_pdf), no rasterizing
  • Overlay QA images: grid, track edges and traced curves drawn on the original scan or page
  • Fix a trace in the app: click the real curve to pin it, drag a pin, re-trace just the part inside a cursor circle, or drop a node (D) that snaps to the ink and reconnects instantly
  • 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.2.0

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.2.0
File Size Uploaded Provenance Actions
pylogdigitizer-0.2.0.tar.gz 19.0 MB Without provenance Details for pylogdigitizer-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pylogdigitizer 0.2.0
File Actions
pylogdigitizer-0.2.0-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.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.2.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for pylogdigitizer-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
pylogdigitizer-0.2.0-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.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.2.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pylogdigitizer-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
pylogdigitizer-0.2.0-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.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.2.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pylogdigitizer-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
pylogdigitizer-0.2.0-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.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pylogdigitizer-0.2.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for pylogdigitizer-0.2.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 173.3 MB

Release files / pylogdigitizer-0.2.0.tar.gz

Download URL pylogdigitizer-0.2.0.tar.gz
Size 19.0 MB
Tags Source
SHA-256 checksum
How to use checksums
aa4405f846d5649278767d5626b5b3decda5345a0c6177824705f0e0aca62897
BLAKE2b-256 checksum
How to use checksums
515c46d75669116d8aac7b309ab8eb1e96b15e8a2b57bab4832b04faaf353b28
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.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 19.3 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6ac03b5f1fb19e2c62cf5090f1b5100635791eea9e2bd2b2d2a8281379d99388
BLAKE2b-256 checksum
How to use checksums
5f1516bf794382c0443189c724ab6b6e81823b5f2e61337ab37b7fa1af8cef2a
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.2.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Size 19.3 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
138a75f9c03ee0d44828b87fc773cb8cb6beea974d3dc73a1dbae829659474ab
BLAKE2b-256 checksum
How to use checksums
3e59caedc52d27406a47a702c79da7e5a1595db3ef4aa3ed50f57216305b4ba3
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.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 19.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f7d13e1dc1718614a91601c8c9f09f73f9c4264a7fba0d1c9f7d34aa897cabd0
BLAKE2b-256 checksum
How to use checksums
a9cf20b742ec64bed639c13b74f52774743e95b89910a9cbafeaff5e5687dab1
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.2.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Size 19.3 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a6b414dbc9b1f62eb10db40187d89534c0efff4ed0007222087c38bd6939b4b4
BLAKE2b-256 checksum
How to use checksums
d2ab900358410146fb49fdc41720f043847807dcf01f3990ed059111d0ec92d9
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.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 19.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4e0a29af537356b7968d11746b68d67db9527ab8e7c01950796dd7046d206576
BLAKE2b-256 checksum
How to use checksums
782829ce6d2c6936979283600dc4786233c80d9cdb8cbacb082b04eed866567f
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.2.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Size 19.3 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
10342b3791cef64732e6218ee8cb4aa8b66044661bf88883b0743e073e672835
BLAKE2b-256 checksum
How to use checksums
c97d6fdaa8ca879e800644989845adba7b703fb2cf75ccaba84ef57a68a194b7
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.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pylogdigitizer-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 19.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e3e2c521b187acc9983b14ab6d31f23a50b92ac86535b296c474612a3fa7693c
BLAKE2b-256 checksum
How to use checksums
1d52247579dd6fecf9266d16d67577e560ec308a5e67102fdf01a977b9a5ed11
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.2.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL pylogdigitizer-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Size 19.3 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4f4b86ed0f0c33c2783d45784837c8b2e193746df9149c284155d62cecde33a9
BLAKE2b-256 checksum
How to use checksums
989a98d891f6285dcf6794be1772f2a3a4b5e137d4c9db3eee8710763e1a7b26
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.2.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.

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