invert_step_profile¶
petrophys.interpretation.electrical.invasion.invert_step_profile
- invert_step_profile(
- readings,
- tools,
- *,
- rxo=None,
- di_range=(8.5, 120.0),
- n_diameters=200,
- noise=0.02,
Invert resistivity readings for Rt, Rxo and invasion diameter, sample by sample.
- Parameters:
readings (mapping) – Apparent resistivity (ohm.m) per tool name, e.g.
{"RSHA": ..., "RMED": ..., "RDEP": ...}; the names matchtools.tools (sequence of ToolResponse) – Response of each reading.
rxo (array-like, optional) – Measured flushed-zone resistivity (e.g. MSFL). It fixes Rxo, so two readings suffice.
di_range ((float, float)) – Invasion diameters to search, inches.
n_diameters (int) – Grid size (geometric spacing).
noise (float) – Relative reading error (0.02 = 2 %). Solutions whose RMS relative misfit is within it are equally valid; their span is reported as
rt_low-rt_highanddi_low-di_high. Whennoiseis the standard error of the readings the range is roughly a one-standard-deviation interval.
- Returns:
Rt, Rxo, di (inches), misfit, a flag where the answer is at the edge of
di_range(the readings do not constrain it there) and the deepest reading’s flushed-zone share. Samples with a missing or non-positive reading are NaN. Where Rxo is close to Rt the diameter is not determined (any di fits).- Return type: