clean_curve_values

petrophys.preprocessing.quality.clean_curve_values

Also available as petrophys.preprocessing.clean_curve_values

clean_curve_values(mnemonic, data, rules=None, unit=None)[source]

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

unit is the curve’s unit: when it is a recognised unit of the rule family other than the rule’s own (see RULE_UNITS), the bounds are converted to it before screening and reported in it with a unit key.

Parameters:
Return type:

tuple[ndarray, dict[str, Any] | None]