bad_hole_flags

petrophys.preprocessing.quality.bad_hole_flags

Also available as petrophys.preprocessing.bad_hole_flags

bad_hole_flags(
well,
bit_size=None,
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,
*,
drho_alone=False,
)[source]

Generate all bad hole flags for a well.

Parameters:
  • well (Well) – Well object with log curves

  • bit_size (float or np.ndarray, optional) – Bit size in inches. If not supplied, uses the depth-by-depth BS curve when the well has one, and the header value where the curve has no value or is absent, when it is a hole size in inches (3-36 in; a null such as -999.25 or a size in mm is ignored).

  • cali_threshold (float, optional) – Caliper-BS washout threshold

  • drho_threshold (float, optional) – DRHO washout threshold

  • rhob_min (float, optional) – Low density threshold

  • pef_max (float, optional) – Maximum valid PEF

  • pef_min (float, optional) – Minimum valid PEF

  • large_hole_threshold (float, optional) – Large hole BS threshold

  • drho_alone (bool, default False) – Also flag washout from |DRHO| alone when the caliper test cannot run: the well has no caliper curve, or no bit size. By default |DRHO| is tested only when the well has both.

Returns:

Dictionary of flag arrays: - ‘washout’: Washout flag - ‘large_hole’: Large hole flag - ‘low_density’: Low density screening flag - ‘pef_exclusion’: PEF exclusion flag - ‘bad_hole’: Combined bad hole flag

Return type:

dict