Advanced Workflows

Move from individual equations to operational interpretation workflows. These lessons show how Petrophys selects methods, works across intervals and wells, combines conventional and specialist measurements, and records enough context to review the result.

Recommended preparation: complete the Foundations path or be comfortable with conventional porosity, saturation, permeability, and formation-evaluation terminology.

Optional dependencies

The workflow, formation, visualization, and context lessons need only the base install. Specialist lessons identify their own inputs and use these package extras where needed:

Extra

Install command

Used for

DLIS

pip install "petrophys[dlis]"

Native DLIS frames and borehole-image channels (lesson 16)

Machine learning

pip install "petrophys[ml]"

K-means electrofacies (lesson 12) and curve imputation (lesson 13)

MCP server

pip install "petrophys[mcp]"

The Petrophys MCP server for LLM agents (lesson 20); requires Python 3.10 or later

Note

The specialist lessons work on the bundled data and say what it lacks. Lesson 12 uses Epslog scanner data and a matching routine-core extract. Lesson 14 interprets the Daydream 1 CMR summary curves, which carry no T2 distribution, and lists the bundled Phillips NMR examples. Lesson 15 fits the COSTA mercury-injection capillary-pressure curves and reads the formation-pressure stations of 35/11-13 and 35/11-10 with read_formation_pressure; the station files carry no fluid labels, and infer_contacts finds an oil/water contact in the first well and reports the Fensfjord interval of the second as ambiguous, without a definite FWL. The contacts of the well reports are used only for comparison. The HW-3 saturation-height example fits log Sw above an assumed FWL. Collection READMEs list the calibration measurements and metadata each collection does not hold.

Course outline

Lesson

Topic

Work completed

10

Dynamic workflow glass box

Inspect routing, skip reasons, parameters, and warnings, then measure a controlled net-pay sensitivity over the reservoir interval.

11

Formation and interval analysis

Summarize pay per formation, keep overburden flags out of reservoir totals, and shade formations on depth plots.

12

Core calibration and digital core

Tie core plugs to logs, fit porosity and poro-perm transforms, and cluster wireline electrofacies over the cored interval; read spectral gamma (Th/U, thorium clay indicator) on 25/5-1 and test a transform against a second well’s core.

13

ML curve imputation

Rebuild missing curve samples with pp.impute, from the well itself or from other wells, and score the result against withheld data.

14

NMR petrophysics

Interpret a processed CMR summary log (no T2 bins): bound and free fluid, Swirr, and Timur-Coates permeability checked against the vendor.

15

Saturation height

Fit laboratory capillary-pressure curves and a Leverett J-function, find the free-water level from logs and from formation pressures, and predict saturation against height on a carbonate reservoir interval.

16

Borehole images and FMI

Read image arrays, orient and equalize data, assess coverage, and render images (needs the dlis extra; the 112 MB image file is downloaded on first use).

17

Visualization masterclass

Compose interpretation panels, specialist displays, crossplots, and analytics.

18

Multiwell field study

Run comparable interpretations across wells and screen field-scale results.

19

LLM context generation

Build compact, auditable JSON context from interpreted wells for any LLM client or review workflow.

20

Petrophys for LLM agents (MCP)

Let LLM agents load wells, interpret, summarize zones, plot, and export through the Petrophys MCP server.

21

Custom workflows

Build, check, save and share your own interpretation recipe, add your own steps around pp.interpret, and run it across the COSTA field.