WashoutDetection

petrophys.preprocessing.quality.WashoutDetection

Also available as petrophys.preprocessing.WashoutDetection

class WashoutDetection(
cali_threshold=DefaultParameters.CALI_BS_THRESHOLD,
drho_threshold=DefaultParameters.DRHO_THRESHOLD,
rhob_min=DefaultParameters.RHOB_MIN,
pef_max=DefaultParameters.PEF_MAX,
pef_min=DefaultParameters.PEF_MIN,
large_hole_threshold=DefaultParameters.LARGE_HOLE_BS,
)[source]

Comprehensive washout and bad hole detection.

This class analyzes well log data to identify zones with poor borehole conditions that may affect log quality.

Parameters:
  • cali_threshold (float, optional) – CALI - BS threshold for washout (default: 1.5 inches)

  • drho_threshold (float, optional) – abs(DRHO) threshold for washout (default: 0.15 g/cm3)

  • rhob_min (float, optional) – Minimum valid RHOB (default: 2.1 g/cm³)

  • pef_max (float, optional) – Maximum valid PEF (default: 7)

  • pef_min (float, optional) – Minimum valid PEF (default: 0.5)

  • large_hole_threshold (float, optional) – Bit size above which the hole is flagged as large (default: 17.5 inches)

Examples

>>> detector = WashoutDetection()
>>> result = detector.detect(well)
>>> print(f"Washout: {result.statistics['washout_percent']:.1f}%")

Methods

add_flags_to_well

Add bad hole flags as curves to well.

detect

Detect washout and bad hole conditions.

detect(well, bit_size=None)[source]

Detect washout and bad hole conditions.

Parameters:
  • well (Well) – Well object to analyze

  • bit_size (float, optional) – Bit size override

Returns:

Detection results

Return type:

WashoutResult

add_flags_to_well(well, result=None, bit_size=None)[source]

Add bad hole flags as curves to well.

Parameters:
  • well (Well) – Well object

  • result (WashoutResult, optional) – Pre-computed result (will compute if not provided)

  • bit_size (float, optional) – Bit size override

Returns:

Well with flag curves added

Return type:

Well