washout_flag¶
petrophys.preprocessing.quality.washout_flag
- washout_flag(
- cali,
- bit_size,
- drho=None,
- cali_threshold=DefaultParameters.CALI_BS_THRESHOLD,
- drho_threshold=DefaultParameters.DRHO_THRESHOLD,
Generate washout flag based on caliper and density correction.
Washout is detected when:
CALI - BS > threshold (default 1.5 inches), OR
abs(DRHO) > threshold (default 0.15 g/cm3)
- Parameters:
cali (np.ndarray) – Caliper log values (inches)
bit_size (float or np.ndarray) – Bit size in inches. A per-depth BS curve may be supplied.
drho (np.ndarray, optional) – Density correction log
cali_threshold (float, optional) – Caliper-BS threshold (default: 1.5 inches)
drho_threshold (float, optional) – DRHO threshold (default: 0.15 g/cm³)
- Returns:
Boolean flag array (True = washout)
- Return type:
np.ndarray