mask_bad_hole_curves¶
petrophys.preprocessing.quality.mask_bad_hole_curves
- mask_bad_hole_curves(
- well,
- bad_hole_flag,
- curves_to_mask=None,
- mask_value=np.nan,
- inplace=False,
Mask curves in bad hole zones.
For bad hole/washout intervals, shallow curves (RHOB, PEF, NPHI) are typically unreliable and should be masked.
- Parameters:
well (Well) – Well object
bad_hole_flag (np.ndarray) – Boolean array indicating bad hole zones
curves_to_mask (list of str, optional) – Curves to mask (default: SHALLOW_CURVES)
mask_value (float, optional) – Value to use for masked data (default: NaN)
inplace (bool, optional) – Modify well in place (default: False)
- Returns:
Well with masked curves
- Return type: