import petrophys as pp¶
The top-level petrophys package holds the functions that do a whole job
in one call, the sample data, the well and the interpretation settings.
Everything else is imported from its package. Each name links to its full
documentation.
Read, interpret, plot¶
Read a LAS, DLIS, CSV or TSV well and optionally attach formations and lithology |
|
Run the full interpretation; returns a
|
|
Multi-track log plot of a well, a result or a well file |
|
All interpretation settings; see Interpretation settings |
More plots¶
Any two curves, with the chart their pair calls for: density-neutron
( |
|
|
The same charts by name, each with its usual curves as defaults:
|
Specialist panels and the classic quick-look |
|
Core against log, and core points on log tracks |
|
Formation pressures, fluid contacts and pretests |
|
Net rock, reservoir and pay flags against depth |
|
|
Charts for comparisons and sensitivity studies |
Inputs¶
Paths of the bundled sample wells and input templates |
|
Formation tops or intervals from CSV, Excel or a DataFrame |
|
A well: curves on a shared depth index, header and parameters |
Context for LLMs and other tools¶
Compact JSON-ready summary of a well or result, returned as a dict or written to a file, or a multi-well context package written to disk |
Curve imputation¶
Requires the ml extra.
Reconstruct a curve’s missing samples with a model trained on the
well and any wells you pass; adds |
From their packages¶
|
Interpreted well, trace, warnings, summaries and exports |
|
Like |
|
Your own reusable sequence of steps: check it against a well, run it on one well or many, save it and share it; see Custom workflows |
|
Turn your own function into a workflow step |
Built-in steps: clay volume, porosity, Rw, saturation, permeability,
net pay, spectral gamma, the whole of |
|
|
Per-depth lithology intervals |
|
Lithology codebooks (canonical or Kingdom layout) |
|
Raised when a context would exceed its size limit |
|
The dataset context profiles; see Reproducing the benchmark packages |
|
One log curve with mnemonic, unit and values |
|
Curve categories |
|
Warning for unit, range and metadata problems found in the input |
Classification and diagnostics¶
Each property is graded into classes by one canonical table.
CLASS_TABLES, in petrophys.model,
holds the tables of clay volume, porosity, permeability,
water saturation, BVW, RQI, FZI, MHI, Rxo/Rt and reservoir quality, each with
the unit of its values, the label of a sample without a value (such as
NO_VCL_DATA) and the source of its edges. A one-curve table is a
ClassTable built on Bands.
Reservoir quality is a ReservoirQualityTable, whose
grades (ReservoirGrade) test effective porosity,
permeability and clay volume with limits per lithology family.
TwoCurveClassTable and
TwoCurveBands grade from two curves; no canonical
table uses them.
|
Class enumerations. Each classifies through its canonical table, as the analyzers do by default; a value that is not finite gets None |
|
Category analyses of an interpreted well. |
|
Numerical and statistical data-quality analysis |
|
Bad-hole detection from caliper roughness, with DRHO as a fallback |
|
Runs all of these analyses on a well and, by default, stores the
results on it; passes on |