Tutorials

Learn Petrophys through complete, browser-based lessons. Every tutorial is rendered directly into this documentation with its explanations, equations, Python code, tables, and saved figures. To rerun or modify a lesson, open it in Google Colab from the button at its top, or in Jupyter on your own computer.

The curriculum uses public well data bundled with the package: North Sea GeoLink wells (chiefly 30/6-5, with 15/9-14, 16/7-1 and 25/5-1), 17 wells from the COSTA carbonate benchmark (each file covers only the Kharaib-2 reservoir interval), and Daydream 1 NMR logs. The borehole-image lesson uses a 112 MB Daydream 1 DLIS file that is downloaded on first use.

Choose a path

New to Petrophys? The Quickstart and Your own data pages run one well, then your own files; the lessons below go deeper.

Complete tour

Every part of the library in one notebook: loading and QC, each interpretation step, the full workflow, four-well comparison, core calibration, sensitivity analysis and a gallery of every plot type.

A complete tour of Petrophys
Foundations

Build the conventional formation-evaluation chain one physical quantity at a time, from input inspection and QC through net pay.

Foundations
Advanced workflows

Work with workflow orchestration, formation intervals, core calibration, imputation, NMR, saturation height, borehole images, visualization, multiwell analysis, LLM context export, LLM agents over MCP, and your own reusable custom workflows.

Advanced Workflows
Case studies

Answer realistic asset questions using end-to-end interpretations, public ground truth, incomplete inputs, and sensitivity analysis.

Case Studies

How the curriculum works

01 Observe Inspect curves, units, metadata, depth coverage, and quality.
02 Calculate Apply explicit petrophysical methods and inspect intermediate curves.
03 Route Use available inputs to build a traceable interpretation path.
04 Evaluate Interpret intervals, compare evidence, and deliver reproducible results.

Each page can be read without running code. To experiment, install Petrophys with the relevant optional extras and open the source lesson from the page toolbar. Saved outputs let the online lesson retain its plots and numerical results without executing code during the documentation build.

Most lessons need only the base install and the bundled samples. Lessons 12 (electrofacies) and 13 (curve imputation) and case study 4 need the ml extra, lesson 16 (borehole images) needs the dlis extra and downloads its image file on first use, and lesson 20 needs the mcp extra (Python 3.10 or later); see Installation.

Note

Tutorial parameters are study assumptions for the supplied public data. They are visible in the lesson and should be reviewed before applying the workflow to another field or formation.