classify_sw¶
petrophys.interpretation.saturation.classify_sw
- classify_sw(sw, percent=False)[source]¶
Classify water saturation.
- Parameters:
sw (float or np.ndarray) – Water saturation, a fraction, or percent with
percent=Truepercent (bool, default False) – The values are percent. Without it, values above 2 are still read as fractions and raise a
DataQualityWarning.
- Returns:
Classification result;
Nonewhere the value is not finite. Thresholds: EXCELLENT_HC < 0.20 <= GOOD_HC < 0.40 <= FAIR_HC < 0.60 <= WATER_BEARING.- Return type:
HcSaturationClassification or np.ndarray