classify_clay_th_k¶
petrophys.interpretation.geochemistry.classify_clay_th_k
- classify_clay_th_k(
- thorium_ppm,
- potassium_percent,
- *,
- min_potassium=0.5,
- mask=None,
- thresholds=TH_K_CLAY_TYPES,
Classify samples by Th/K ratio.
- Parameters:
thorium_ppm (array-like) – Thorium in ppm and potassium in percent (not a fraction).
potassium_percent (array-like) – Thorium in ppm and potassium in percent (not a fraction).
min_potassium (float) – Samples with less potassium (%) are left unclassified: the ratio of two small numbers is noise. 0.5 % keeps shaly rock.
mask (array-like of bool, optional) – Classify only these samples, e.g.
vcl > 0.3.thresholds (sequence of (float, str)) – Th/K bands as (upper bound, band name), low to high;
TH_K_CLAY_TYPESby default.
- Returns:
Ratio, band name per sample (
"unclassified"where too little potassium, outsidemaskor missing data) and band shares of the classified samples.- Return type:
Examples
>>> result = classify_clay_th_k([12.0, 20.0, 1.0], [4.0, 1.0, 3.0]) >>> list(result.clay_type) ['illite', 'kaolinite', 'feldspar']