What Petrophys can do¶
You have interpreted a first well and read your own files. The guide continues from there, from interpretation and review to LLM agents; this page maps each part of the library to the page that covers it, then shows what the results look like.
At a glance¶
Area |
What you get |
Start with |
Covered in |
|---|---|---|---|
Prepare the data |
LAS, DLIS, CSV and Excel reading; standard names and units; range QC; bad-hole flags; normalization; ML gap filling |
|
Your own data, Data and depth, Implausible inputs and bad hole, Gap filling with machine learning |
Interpret the rock |
Temperature, clay volume, porosity, lithology and minerals, Rw, eight Sw models, permeability, rock physics |
|
|
Review the answer |
Warnings, the step-by-step trace, the cutoffs used, net pay per formation |
|
|
Your own recipe |
Built-in and custom steps, checked before they run, saved as JSON and run on many wells |
|
|
Plots and delivery |
Log viewer templates, crossplots, multi-well charts; LAS, JSON, CSV and Excel exports |
|
|
Core and specialist data |
Core calibration, NMR, spectral gamma, saturation-height, borehole images, formation pressures |
|
|
Further analyses |
Rock-quality and matrix indicators, shale distribution, heterogeneity, zonation, Monte Carlo, invasion, pore pressure |
|
|
Many wells |
Batch and zoned runs over a folder of wells |
|
|
LLMs |
Bounded JSON context files of interpreted wells; an MCP server that lets a model run Petrophys |
|
The complete tour runs every part of the library on real wells in one notebook.
What the results look like¶
Every figure below was computed from the bundled sample wells when these docs were built, by the call under it; the code is at the end of the page. Depth logs show one representative interval, so the curves can be read.
Prepare the data¶
Bad hole (shaded) from caliper against bit size and the density correction: gauge hole above 3060 m on 30/6-5, washed out below.
pp.plot(pp.interpret(well), curves=["GR", "CALI", "BS"])
The density of COSTA well HW-24 (red) against its prediction from the other logs (black), by a model trained on this well and the 16 other wells. Each measured depth is predicted by a model that did not learn from that fifth of the well: mean absolute error 0.035 g/cm3, R² 0.89 over 433 samples.
pp.impute(well, "RHOB", train_wells=[...]) · pp.plot(well, curves=["RHOB", "RHOB_PREDICTED"])
Interpret the rock¶
Neutron-density crossplot of the 30/6-5 Brent Group, with the matrix lines.
pp.crossplot(well, "NPHI", "RHOB")
The mineral solver splits the 15/9-14 chalk into porosity and mineral volumes, mostly calcite.
pp.plot(pp.interpret(well), template="minerals")
Check Rw and the Archie exponents against the 30/6-5 Statfjord water leg.
pp.crossplot(result, "PHIE", "RDEP")
Brent Group net pay under four saturation models, one setting apart.
pp.interpret(well, sw_model="simandoux")
Evaluate the reservoir¶
A poro-perm transform fitted to the 30/6-5 core plugs: permeability on a log scale against porosity, coloured by depth.
pp.crossplot(core, "PHIC", "KH_CORE")
The 30/6-5 core plugs grouped into hydraulic flow units by FZI.
pp.crossplot(core_data(well), "PHI_Z", "RQI")
Seventeen COSTA carbonate wells interpreted in one call, ranked by Kharaib-2 net pay.
pp.interpret(wells) · results.summary()
Core and specialist data¶
The bias and scatter of 30/6-5 density porosity against core.
calibration_plot(calibrate_porosity(well, core, log_curve="PHID"))
Timur-Coates permeability from the Daydream CMR, checked against the vendor’s.
NMRData.from_las(path) · nmr.permeability_coates()
Thorium and uranium on 25/5-1, with the uranium-dominated samples flagged.
interpret_spectral_gamma(well) · pp.crossplot(well, "URANIUM", "THORIUM")
A J-function fitted to the log Sw of HW-3 above an assumed free-water level (7991 ft, 1 ft below the deepest sample that has Sw) predicts Sw from height and rock quality; the fit is loose (R² 0.28).
fit_j_function_from_well(well, fwl_depth=7991).plot()
Borehole images (FMI) are oriented, equalized and displayed from DLIS or LAS arrays; they need petrophys[dlis] and a 112 MB file, so they are shown in Tutorial 16 and not built here.
What Petrophys does not do¶
No automatic depth matching between runs, or tool-depth correction.
DLIS: processed channels, not every raw acquisition product.
Borehole images: preparation and display, not dip or fracture picking.
NMR: delivered distributions or curves, not raw echo trains.
Empirical models still need local calibration and expert review.
How the gallery is built¶
Each card’s figure comes from the call under it.
Next¶
Workflows: interpret a well with pp.interpret, read its trace and review the answer.