PorosityClassification

petrophys.model.PorosityClassification

class PorosityClassification(value)[source]

Bases: Enum

Porosity classification.

EXCELLENT

Porosity > 20%

Type:

str

GOOD

12% < Porosity <= 20%

Type:

str

FAIR

6% < Porosity <= 12%

Type:

str

POOR

Porosity <= 6%

Type:

str

Methods

classify

Classify porosity value(s) with CLASS_TABLES["PHI"].

classmethod classify(porosity, percent=False)[source]

Classify porosity value(s) with CLASS_TABLES["PHI"].

Parameters:
  • porosity (float or array-like) – Porosity, a fraction (0-1), or percent (0-100) with percent=True

  • percent (bool, default False) – The values are percent. Fractions above 1 raise a DataQualityWarning, since they usually are percent.

Returns:

Classification result(s); None where the value is not finite

Return type:

PorosityClassification or np.ndarray