InvasionModule

petrophys.interpretation.electrical.invasion.InvasionModule

Also available as petrophys.interpretation.electrical.InvasionModule

class InvasionModule(
rxo_curve='RXO',
rt_curve='RDEP',
medium_deep_proxy=True,
depthwise_curve_merge=True,
class_bands=None,
)[source]

Invasion profile characterization.

Analyzes the relationship between shallow (Rxo) and deep (Rt) resistivity to characterize invasion profile.

Parameters:
  • rxo_curve (str, optional) – The flushed-zone or shallow resistivity curve read first; the others of SHALLOW_RESISTIVITY_CURVES (RXO, RSHA, RESS) follow in that order. Default RXO, the flushed-zone reading.

  • rt_curve (str, optional) – Name of deep resistivity curve

  • medium_deep_proxy (bool, optional) – Where no flushed-zone or shallow curve has a value, use a medium resistivity curve (RMED, RESM) in its place, so the ratio is the medium/deep separation (default: True). When False those samples stay NaN.

  • depthwise_curve_merge (bool, optional) – Fill a curve’s missing samples from the next candidate curve, depth by depth (default: True). When False the first candidate curve present is used as it stands.

  • class_bands (Bands, optional) – The Rxo/Rt classes behind the conductive_percent, minimal_percent and resistive_percent statistics, labelled CONDUCTIVE_INVASION, MINIMAL_INVASION and RESISTIVE_INVASION. Default: the canonical table, CLASS_TABLES["RXO_RT"].

Examples

>>> invasion = InvasionModule()
>>> result = invasion.analyze(well)
>>> print(f"Mean ratio: {result.statistics['mean_ratio']:.2f}")

Attributes

medium_curves

The medium-resistivity proxy curves read after them (none without the proxy).

shallow_curves

The flushed-zone and shallow resistivity curves read, in order of preference.

medium_deep_proxy

Fill samples without a flushed/shallow curve from the medium/deep separation.

depthwise_curve_merge

Fill a curve's missing samples from the next candidate curve.

Methods

add_to_well

Add invasion ratio curve to well.

analyze

Analyze invasion profile.

medium_deep_proxy

Fill samples without a flushed/shallow curve from the medium/deep separation. When False those samples stay NaN.

depthwise_curve_merge

Fill a curve’s missing samples from the next candidate curve. When False the first candidate curve present is used as it stands.

property shallow_curves: list

The flushed-zone and shallow resistivity curves read, in order of preference.

property medium_curves: list

The medium-resistivity proxy curves read after them (none without the proxy).

analyze(well)[source]

Analyze invasion profile.

Parameters:

well (Well) – Well with resistivity curves

Returns:

Invasion analysis results

Return type:

InvasionResult

add_to_well(well, result=None)[source]

Add invasion ratio curve to well.

Parameters:
  • well (Well) – Well object

  • result (InvasionResult, optional) – Pre-computed result

Returns:

Well with invasion ratio curve

Return type:

Well