Reading and writing files

petrophys.io

Readers and writers for well-log interchange formats.

Well logs

read_las

Read LAS file and return Well object.

read_dlis

Read DLIS file and return Well object.

read_dlis_merged

Read scalar DLIS log frames, merge them, and return one Well.

read_csv

Read CSV file and return Well object.

read_csv_wells

Read a long-form multi-well CSV without mixing well identities.

read_ascii

Read ASCII well log file and return Well object.

Formations and lithology

read_formations

Read formation picks or bounded intervals into one canonical table.

read_lithology_intervals

Read validated CSV/TSV/Excel/DataFrame intervals, preserving rock labels.

read_lithology_codes

Read a codebook without confusing rock names with grouping columns.

Core analysis tables

read_core

Read a core analysis table into CoreData.

Deviation surveys and depth datums

read_survey

Read a deviation survey and compute its trajectory.

attach_survey

Add TVD and TVDSS curves to well from a deviation survey.

depth_reference_elevation

Elevation of the log's zero depth above sea level, in the well's depth unit.

minimum_curvature

True vertical depth and horizontal offsets by the minimum-curvature method.

Survey

A deviation survey with its minimum-curvature trajectory.

Export

export_las

Export Well to LAS file.

export_csv

Export Well to CSV file.

export_excel

Export Well to Excel file.

Reader classes

LASReader

Reader for LAS (Log ASCII Standard) files.

DLISReader

Reader for DLIS (Digital Log Interchange Standard) files.

More functions

read_excel

Read a log table from an Excel workbook and return Well object.