Data model

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

Data structures

petrophys.model

Wells, curves, intervals, core data and the reference properties shared by the library.

Wells and curves

Well

Primary container for well log data and metadata.

Curve

Well log curve with data, units, and metadata.

DataType

Data type classification per I/O specification.

Intervals and formation tops

FormationTops

Manager for a collection of formation/zone intervals.

Formation

A geological formation interval.

Zone

A petrophysical zone within a formation.

SubZone

A sub-zone within a zone.

ManualInterval

A user-defined arbitrary depth interval.

Interval

Base class for all depth intervals.

IntervalKind

Type of geological/petrophysical interval.

label_depths

Label each depth with the name of the interval that contains it.

Core data

CoreData

Container for core laboratory measurements.

Units

UnitConverter

Comprehensive unit converter for petrophysical measurements.

UnitRegistry

Registry of unit definitions and conversion factors.

Reference rock and fluid properties

MatrixProperties

Reference matrix properties for common minerals.

FluidProperties

Reference fluid properties for petrophysical calculations.

ArchieCoefficients

Default Archie coefficients for a lithology.

ArchieParameterDefaults

Lithology-aware default Archie coefficients.

Class tables

ClassTable

The canonical classes of one property.

ReservoirQualityTable

The canonical reservoir-quality grades: effective porosity, permeability and clay volume, with limits per lithology family.

ReservoirGrade

The limits of one reservoir-quality grade.

Bands

A one-curve classification: base for every valid sample, then each (op, threshold, label) step in order (op one of >, >=, <, <=).

Classifications

VclClassification

Clay volume classification.

PorosityClassification

Porosity classification.

HcSaturationClassification

Hydrocarbon saturation classification based on water saturation.

PermeabilityClassification

Permeability classification.

RQIClassification

Reservoir Quality Index classification for RQI values in microns.

MhiClassification

Moveable Hydrocarbon Index (MHI) classification.

InvasionClassification

Invasion profile classification based on Rxo/Rt ratio.

Two-curve class tables, which no canonical table uses

TwoCurveClassTable

The canonical classes of a property graded from two curves.

TwoCurveBands

A two-curve classification: base for every sample where both curves are valid, then each (label, x_above, y_above) step in order where x > x_above and y > y_above; later steps win.

Constants

CLASS_TABLES: mappingproxy

The canonical class table of each property, keyed by its curve name: VCL, PHI (porosity), PERM, SW, BVW, RQI, FZI, MHI, RXO_RT (Rxo/Rt) and RESERVOIR_QUALITY (effective porosity, permeability and clay volume, with limits per lithology family).

Depth utilities

petrophys.model.log_data

Depth intervals, zone sets and depth-index helpers for log data.

Functions

create_depth_array

Create uniform depth array.

align_to_depth

Resample data to align with target depth.

Classes

DepthInterval

Represents a depth interval.

Zone

Represents a geological or petrophysical zone.

ZoneSet

Collection of zones for a well.

LogDataPoint

Single data point with depth and value.

DepthIndex

Utilities for working with depth-indexed data.