Data model and I/O

The objects every other module works on, the functions that read them from files and write them back, and the sample data that ships with the package.

Data model

petrophys.model

Wells, curves, intervals, core data, reference properties and class tables, and the depth utilities they use.

Well

Primary container for well log data and metadata.

Curve

Well log curve with data, units, and metadata.

FormationTops

Manager for a collection of formation/zone intervals.

CoreData

Container for core laboratory measurements.

Data model reference · 3 functions · 35 classes · 1 constant

Reading and writing files

petrophys.io

Readers and writers for well-log interchange formats.

read_las

Read LAS file and return Well object.

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.

export_las

Export Well to LAS file.

Reading and writing files reference · 18 functions · 3 classes

Datasets

petrophys.datasets

Repository datasets for examples, validation, and integration testing.

sample

Return the filesystem path to a bundled sample.

list_samples

List the names of bundled samples, without extensions.

integration_fixture

Return the path to a large native-format fixture, downloading it if needed.

list_integration_fixtures

List catalogued optional repository LAS/DLIS fixture filenames.

Datasets reference · 6 functions · 4 constants

Exceptions

petrophys.exceptions

Warning and exception classes raised by Petrophys.

DataQualityWarning

An input or calculated result is outside its expected physical domain.

Exceptions reference · 1 class