Quality control

petrophys.preprocessing.quality

Quality checks and borehole-condition diagnostics.

Bad hole and washout

bad_hole_flags

Generate all bad hole flags for a well.

washout_flag

Generate washout flag based on caliper and density correction.

large_hole_flag

Generate large hole flag.

low_density_flag

Generate low density flag.

pef_exclusion_flag

Generate PEF exclusion flag.

mask_bad_hole_curves

Mask curves in bad hole zones.

apply_quality_flags

Apply quality flags to mask unreliable data.

detect_washout

Convenience function for washout detection.

WashoutDetection

Comprehensive washout and bad hole detection.

WellboreQC

Bad-hole detection using caliper roughness, washout and DRHO fallback.

Held readings

find_held_readings

Find held (stuck or padded) readings in the curves of a well.

held_reading_mask

Flag samples that repeat the reading above them in a long run.

HeldReadings

Held-reading flags for several curves of one well.

Value ranges

apply_value_range_qc

Apply configured value-range QC to curves in a well.

clean_curve_values

Clean one curve array with its configured value-range rule.

value_range_qc_note

Build a compact human-readable value QC note.

More functions

depth_match

Match curve to reference in depth, the shift free to vary with depth.

find_log_depth_shift

Find the depth shift that lines curve up with reference.

shift_curves

Return a copy of well with curves moved by shift.

More classes

Constants

VALUE_RANGE_RULES: dict

Plausible range of each standard curve, and what happens to values outside it.

VALUE_RANGE_QC_PARAMETER: str = 'VALUE_RANGE_QC_REPORT'

Well parameter that stores the value-range QC report.