welltest_pta.identify_flow_regimes

welltest_pta.identify_flow_regimes(dt, deriv, window_decades=0.4, slope_tol=0.10, min_segment_pts=3)[source]

Segment the Bourdet derivative into flow-regime intervals.

Parameters:
  • dt (ndarray) – Elapsed time array (hr) — the output of bourdet_derivative().

  • deriv (ndarray) – Bourdet derivative magnitude (psi).

  • window_decades (float) – Width of the moving-window slope estimator, in log decades. The window length in points is set so that it spans roughly this many decades on the log axis.

  • slope_tol (float) – Tolerance around the reference slope to call a match (e.g. 0.10 means slopes in [reference−0.10, reference+0.10]).

  • min_segment_pts (int) – Minimum contiguous points to accept a regime segment.

Return type:

list[dict]

Returns:

  • list of dicts, each with keys

  • regime, slope_mean, r2, dt_start, dt_end, n_pts.