ClassTable

petrophys.model.ClassTable

class ClassTable(name, quantity, unit, bands, missing, source)[source]

The canonical classes of one property.

Parameters:
name

The property’s curve name, e.g. "VCL".

Type:

str

quantity

What the values are, e.g. "clay volume".

Type:

str

unit

Unit of the values ("" when dimensionless).

Type:

str

bands

The classes.

Type:

Bands

missing

Label of a sample without a valid value.

Type:

str

source

Where the edges come from.

Type:

str

Attributes

labels

The labels from the lowest to the highest values.

Methods

classify

The label of every sample, missing where the value is not valid (default validity: finite).

describe

The classes as threshold text; bands, a coarsening of the table, to describe that instead.

label_of

The label of one value (None when it is not finite).

classify(values, valid=None)[source]

The label of every sample, missing where the value is not valid (default validity: finite).

Parameters:

valid (ndarray | None)

Return type:

ndarray

label_of(value)[source]

The label of one value (None when it is not finite).

Parameters:

value (float)

Return type:

str | None

property labels: Tuple[str, ...]

The labels from the lowest to the highest values.

describe(bands=None)[source]

The classes as threshold text; bands, a coarsening of the table, to describe that instead.

Parameters:

bands (Bands | None)

Return type:

str