ThUEnvironment

petrophys.interpretation.geochemistry.ThUEnvironment

class ThUEnvironment(th_u_ratio, environment, uranium_floor_ppm, thresholds=(2.0, 7.0))[source]

Th/U ratio and depositional-environment class per sample.

Parameters:
th_u_ratio

Thorium / uranium, NaN where the sample is not rated (uranium below uranium_floor_ppm, negative thorium or a missing value).

Type:

ndarray

environment

One of TH_U_ENVIRONMENTS per rated sample, "" elsewhere.

Type:

ndarray of object

uranium_floor_ppm

Minimum uranium (ppm) for a sample to be rated.

Type:

float

thresholds

Class boundaries used (Th/U).

Type:

tuple of float

Attributes

rated

Boolean mask of the samples that received a class.

Methods

summary

Tabulate the environment classes, optionally for several groups.

property rated: ndarray

Boolean mask of the samples that received a class.

summary(groups=None)[source]

Tabulate the environment classes, optionally for several groups.

Parameters:

groups (mapping of str to boolean array, optional) – Named sample selections, e.g. {"reservoir": in_reservoir}. Only rated samples inside each selection count. Defaults to all samples.

Returns:

One row per group: samples (rated samples), median Th/U and the percentage of rated samples in each environment ("<environment> (%)").

Return type:

DataFrame