change_point_zonation

petrophys.evaluation.zonation.change_point_zonation

Also available as petrophys.evaluation.change_point_zonation

change_point_zonation(
depth,
curves,
*,
min_thickness,
penalty=None,
penalty_factor=1.0,
log_curves=(),
max_zones=None,
)[source]

Zone a depth interval by shifts in the mean of one or more curves.

Parameters:
  • depth (array-like) – Sample depths, increasing.

  • curves (dict) – Curve name to samples (same length as depth), e.g. {"GR": gr, "RHOB": rhob}.

  • min_thickness (float) – Thinnest zone, in depth units (e.g. 2 m, above the tools’ resolution).

  • penalty (float, optional) – Cost of one boundary in standardised units; overrides the default penalty_factor * 2 * p * ln(n) (p curves, n samples).

  • penalty_factor (float) – Scales the default penalty: above 1 fewer zones, below 1 more.

  • log_curves (sequence of str) – Curves segmented as log10 (resistivity, permeability).

  • max_zones (int, optional) – Raise the penalty (bisection) until there are at most this many zones; the strongest boundaries are kept.

Returns:

Zones with top, bottom, thickness, sample count and curve means. Samples where any curve is missing are skipped (zones bridge them).

Return type:

Zonation