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=True

  • percent (bool, default False) – The values are percent. Without it, values above 2 are still read as fractions and raise a DataQualityWarning.

Returns:

Classification result; None where 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