Interpretation

Deterministic calculations that turn measurements into petrophysical properties. Most functions take and return NumPy arrays; the calculate_* functions and *Module classes work on a whole Well.

Temperature

petrophys.interpretation.temperature

Formation temperature profiles, geothermal gradients and temperature corrections.

temperature_profile

Calculate temperature profile for a well.

TemperatureProfile

Formation temperature profile calculator.

gradient_from_bht

Estimate temperature gradient from BHT and TD.

temperature_gradient

Calculate temperature gradient between two points.

Temperature reference · 7 functions · 1 class

Clay volume

petrophys.interpretation.clay_volume

Clay volume (VCL) from gamma ray, SP or neutron-density, and clay resistivity.

calculate_vcl

Calculate clay volume for a well.

vcl_from_gr

Calculate clay volume from gamma ray using specified method.

vcl_from_nd

Clay volume from the closed-form 3-point (Cl1, Cl2, Clay) neutron-density formulation, evaluated deterministically per sample.

calculate_rcl

Calculate clay resistivity from high-VCL zones.

Clay volume reference · 14 functions · 3 classes

Porosity

petrophys.interpretation.porosity

Density, neutron, sonic, total and effective porosity, with hydrocarbon corrections.

calculate_porosity

Calculate porosity for a well.

density_porosity

Calculate density porosity.

effective_porosity

Calculate effective porosity.

apply_hc_correction

Apply HC correction.

Porosity reference · 16 functions · 2 classes

Lithology and minerals

petrophys.interpretation.lithology

calculate_lithology

Calculate lithology for a well.

MultiMineralSolver

Multi-mineral solver: quartz, calcite, dolomite and anhydrite volumes.

nd_crossplot_data

Prepare data for neutron-density crossplot.

build_lithology_log

Create a per-depth lithology array from interval definitions.

Lithology and minerals reference · 20 functions · 3 classes · 3 constants

Electrical properties

petrophys.interpretation.electrical

Formation water and mud filtrate resistivity, invasion, and Archie cementation parameters.

calculate_rw

Calculate formation water resistivity.

rw_from_sp

Calculate Rw from SP using the SSP equation.

calculate_rmf

Calculate Rmf at formation temperature.

pickett_analysis

Perform Pickett plot analysis to determine Archie parameters.

Electrical properties reference · 23 functions · 8 classes · 4 constants

Water saturation

petrophys.interpretation.saturation

Saturation models, saturation height and formation pressures, and sonic saturation.

calculate_sw

Calculate water saturation.

archie

Calculate water saturation using Archie equation.

fit_j_function

Fit Sw = a*J^b (log-linear).

fit_pressure_fwl

Fit water/hydrocarbon pressure lines and return their intersection.

Water saturation reference · 44 functions · 20 classes · 6 constants

Permeability

petrophys.interpretation.permeability

Permeability from porosity and irreducible water saturation, or from core.

calculate_permeability

Calculate permeability.

PermeabilityModule

Permeability estimation module.

CorePermModel

Core-derived porosity correction, with an optional poro-perm transform.

classify_permeability

Classify permeability values in mD (None where a value is not finite).

Permeability reference · 11 functions · 2 classes · 1 constant

Rock physics

petrophys.interpretation.rock_physics

Elastic and rock-physics calculations.

elastic_properties

Calculate dynamic elastic properties from density and sonic slowness.

velocity_from_slowness_us_per_ft

Convert sonic slowness in us/ft to velocity in m/s.

ElasticProperties

Elastic properties calculated from RHOB, DTC, and DTS.

Rock physics reference · 2 functions · 1 class

Pore pressure

petrophys.interpretation.pore_pressure

Overburden and hydrostatic pressure, normal compaction trends and Eaton’s method.

calibrate_eaton_exponent

Eaton exponent that best fits measured pore pressures.

eaton_from_well

Eaton pore pressure along a well from its logs and stated inputs.

eaton_pore_pressure

Eaton pore pressure from overburden, hydrostatic and observed/normal-trend log values.

fit_normal_compaction_trend

Fit a normal compaction trend to shale sonic or resistivity.

Pore pressure reference · 7 functions · 2 classes · 1 constant

Specialist data

NMR, borehole images, geochemistry and core.

NMR

petrophys.interpretation.nmr

NMR (Nuclear Magnetic Resonance) log analysis.

NMRData

NMR log data container.

NMRCalibration

Result of calibrating NMR permeability against core plugs.

t2lm_from_bins

Logarithmic mean T2 from a T2 bin distribution array.

bvi_from_bins

Bulk Volume Irreducible from T2 bins at a given cutoff.

NMR reference · 6 functions · 2 classes · 3 constants

Borehole imaging

petrophys.interpretation.borehole_imaging

Borehole image (FMI) reading, navigation, orientation, equalization and display.

read_fmi_dlis

Read processed FMI image channels and navigation from a DLIS file.

orient_to_azimuth

Map FMI pad/flap arrays onto a regular 0-360 degree azimuth grid.

equalize_dynamic

Apply sliding-window percentile equalization along the depth axis.

plot_fmi

Plot FMI image data with brown image-log colours (dark conductive, light resistive) and an azimuth axis; top and bottom set the depth window.

Borehole imaging reference · 13 functions · 1 class

Geochemistry

petrophys.interpretation.geochemistry

Core and borehole geochemical interpretation.

interpret_spectral_gamma

Interpret processed K-Th-U and spectral gamma-ray curves.

interpret_elemental_spectroscopy

Resolve processed elemental products and derive screening diagnostics.

thorium_clay_index

Linear clay index from thorium, which uranium cannot disturb.

XRFData

XRF geochemistry measurements along a core depth.

Geochemistry reference · 10 functions · 7 classes · 5 constants

Core analysis

petrophys.interpretation.core_analysis

Core calibration and digital-core interpretation.

core_data

Build CoreData directly from well curves.

calibrate_porosity

Compare core porosity against a log porosity curve.

fit_poro_perm

Fit a porosity-permeability transform from core data.

find_core_depth_shift

Find the depth shift that best ties core plugs to a log curve.

Core analysis reference · 17 functions · 9 classes