ReservoirQualityTable

petrophys.model.ReservoirQualityTable

class ReservoirQualityTable(name, quantities, units, base, grades, missing, families, source)[source]

The canonical reservoir-quality grades: effective porosity, permeability and clay volume, with limits per lithology family.

A sample where all three values are valid gets base, then each grade of grades (lowest first) whose limits it passes for its lithology family; later grades win. Each grade’s limits imply those of the grade before it, so a sample gets the highest grade it passes.

Parameters:
name

The property’s name, "RESERVOIR_QUALITY".

Type:

str

quantities

What the three curves are, in the order classify() takes them.

Type:

tuple of str

units

Units of the three curves.

Type:

tuple of str

base

Label of a sample that passes no grade.

Type:

str

grades

The grades, lowest first.

Type:

tuple of ReservoirGrade

missing

Label of a sample where any of the three curves has no valid value.

Type:

str

families

The lithology families the limits are given for.

Type:

tuple of str

source

Where the limits come from.

Type:

str

Examples

>>> table = CLASS_TABLES["RESERVOIR_QUALITY"]
>>> list(table.classify([0.06, 0.06, 0.2], [5.0, 5.0, 50.0], [0.1, 0.1, 0.1],
...                     ["clastic", "carbonate", "carbonate"]))
['NON_RESERVOIR', 'FAIR_RESERVOIR', 'EXCELLENT_RESERVOIR']

Attributes

labels

The labels from the lowest to the highest grade.

Methods

classify

The grade of every sample, missing where a value is not valid (default validity: all three finite).

describe

The grades as threshold text, for families (default, or empty: every family).

classify(
porosity,
permeability,
clay,
family='clastic',
valid=None,
)[source]

The grade of every sample, missing where a value is not valid (default validity: all three finite).

family is the lithology family of every sample, or of each sample.

Raises:

ValueError – If a family is not one of families.

Parameters:

valid (ndarray | None)

Return type:

ndarray

property labels: Tuple[str, ...]

The labels from the lowest to the highest grade.

describe(families=None)[source]

The grades as threshold text, for families (default, or empty: every family).

Raises:

ValueError – If a family is not one of families.

Parameters:

families (Sequence[str] | None)

Return type:

str