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.
Calculate temperature profile for a well. |
|
Formation temperature profile calculator. |
|
Estimate temperature gradient from BHT and TD. |
|
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 clay volume for a well. |
|
Calculate clay volume from gamma ray using specified method. |
|
Clay volume from the closed-form 3-point (Cl1, Cl2, Clay) neutron-density formulation, evaluated deterministically per sample. |
|
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 for a well. |
|
Calculate density porosity. |
|
Calculate effective porosity. |
|
Apply HC correction. |
Porosity reference · 16 functions · 2 classes
Lithology and minerals¶
petrophys.interpretation.lithology
Calculate lithology for a well. |
|
Multi-mineral solver: quartz, calcite, dolomite and anhydrite volumes. |
|
Prepare data for neutron-density crossplot. |
|
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 formation water resistivity. |
|
Calculate Rw from SP using the SSP equation. |
|
Calculate Rmf at formation temperature. |
|
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 water saturation. |
|
Calculate water saturation using Archie equation. |
|
Fit Sw = a*J^b (log-linear). |
|
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. |
|
Permeability estimation module. |
|
Core-derived porosity correction, with an optional poro-perm transform. |
|
Classify permeability values in mD ( |
Permeability reference · 11 functions · 2 classes · 1 constant
Rock physics¶
petrophys.interpretation.rock_physics
Elastic and rock-physics calculations.
Calculate dynamic elastic properties from density and sonic slowness. |
|
Convert sonic slowness in us/ft to velocity in m/s. |
|
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.
Eaton exponent that best fits measured pore pressures. |
|
Eaton pore pressure along a well from its logs and stated inputs. |
|
Eaton pore pressure from overburden, hydrostatic and observed/normal-trend log values. |
|
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.
NMR log data container. |
|
Result of calibrating NMR permeability against core plugs. |
|
Logarithmic mean T2 from a T2 bin distribution array. |
|
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 processed FMI image channels and navigation from a DLIS file. |
|
Map FMI pad/flap arrays onto a regular 0-360 degree azimuth grid. |
|
Apply sliding-window percentile equalization along the depth axis. |
|
Plot FMI image data with brown image-log colours (dark conductive, light resistive) and an azimuth axis; |
Borehole imaging reference · 13 functions · 1 class
Geochemistry¶
petrophys.interpretation.geochemistry
Core and borehole geochemical interpretation.
Interpret processed K-Th-U and spectral gamma-ray curves. |
|
Resolve processed elemental products and derive screening diagnostics. |
|
Linear clay index from thorium, which uranium cannot disturb. |
|
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.
Build |
|
Compare core porosity against a log porosity curve. |
|
Fit a porosity-permeability transform from core data. |
|
Find the depth shift that best ties core plugs to a log curve. |
Core analysis reference · 17 functions · 9 classes