Tools for parsing geotechnical test-pit and borehole PDFs.
Project description
Parseplot
A specialized Python toolkit for extracting geotechnical data from PDF reports into clean, long-format CSVs. This suite is designed to integrate into the MaplyticX ecosystem for geospatial and geological visualization. Features
- Borehole Parser (parse-plot)
Specifically engineered for dotPLOT and hotPLOT formats. It processes PDFs where each page represents a single borehole and generates two distinct long-format outputs:
Lithology Intervals: Extracts material descriptions, depth boundaries, and water levels.
Drilling Runs: Captures per-run data including drilling method, RQD, core recovery, and SPT-N values.
- Test Pit Parser (parse-testpit)
Designed for tabular geotechnical reports. It extracts:
Lab Results: Processes tables containing grading (GM) and plasticity (LL, PI, LS) data.
Lithologies: Maps material descriptions to their specific depth intervals.
Installation
This suite requires Python 3.12.3 or higher. Bash
pip install parseplot
Usage Parsing Borehole Logs
To parse a dotPLOT PDF into lithology and drilling CSVs: Bash
parse-borehole report.pdf --out-dir ./output_folder
Parsing Test Pit Tables
To extract lab results and material intervals from a test pit table: Bash
parse-testpit testpit_report.pdf output.csv
Data Structure
The tool outputs long-format CSVs compatible with standard geological modeling software. Column Description borehole_id Normalized ID (e.g., BH-01 or TP-01). depth_top Starting depth of the interval. material Canonical material description with bracketed lab data. y_position Latitude (Decimal Degrees). x_position Longitude (Decimal Degrees). Development & Environment
The suite is developed primarily for Linux environments using Python 3.12.3. It relies on pdfplumber for robust coordinate-based text extraction. Local Setup
Clone the repository.
Ensure Python 3.12.3 is active.
Install dependencies:
Bash
pip install pdfplumber
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parseplot-0.2.1.tar.gz.
File metadata
- Download URL: parseplot-0.2.1.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a9975546e263296a1e79ccddf88fd36d8afd9a79cf8f5d8c2245fb19dc94f5d
|
|
| MD5 |
00a9bbe2e6185c5222f9aa3d9f253434
|
|
| BLAKE2b-256 |
fd936da1176d6bab3e31a7f70dde4667a0140ee03112eb7601d8d3ba9bd22691
|
File details
Details for the file parseplot-0.2.1-py3-none-any.whl.
File metadata
- Download URL: parseplot-0.2.1-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59a1e35484858ea2852cb6aef89ef7c5f6cec96409e4f32cde153646c26b60be
|
|
| MD5 |
56180011e9b0ff6df07c0e116d48721e
|
|
| BLAKE2b-256 |
49b22f189e4f93982d68749acfb1f0f03bd6d8ff02da6d18e994c50f0d50b19f
|