Classify your own data
Routines to automatically classify a grain based on definitions in paper.
classify_sic_grain(c12_c13=None, n14_n15=None, d29si=None, d30si=None, al26_al27=None, rho_si=0, ret_probabilities=False)
Classify a measured grain according to the classification scheme.
This returns either a Tuple of grain type and subtype (if probabilities=False,
default case) or a dictionary of probabilities for each grain type
(if probabilities=True).
If multiple probabilities are the same for groups, the preference is given in the
following way: M, AB, Y, Z, X, N, C, D.
Measurement values can either be given as (value, uncertainty) or, in the case
of C and N, if asymmetric uncertainties are available, as
(value, (uncertainty_plus, uncertainty_minus)).
If no uncertainties are given (as None or np.nan), the uncertainty is
assumed to be the ratio divided by 10.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
c12_c13
|
Tuple[float, Union[float, Tuple[float, float]]]
|
Carbon 12/13 isotopic ratio and uncertainty. |
None
|
n14_n15
|
Tuple[float, Union[float, Tuple[float, float]]]
|
Nitrogen 14/15 isotopic ratio and uncertainty. |
None
|
d29si
|
Tuple[float, float]
|
Silicon 29/28 isotopic ratio as delta value in permil and uncertainty. |
None
|
d30si
|
Tuple[float, float]
|
Silicon 30/28 isotopic ratio as delta value in permil and uncertainty. |
None
|
al26_al27
|
Tuple[float, float]
|
Aluminium 26/27 isotopic ratio and uncertainty. |
None
|
rho_si
|
float
|
Silicon correlation coefficient between d30Si and d29Si. |
0
|
ret_probabilities
|
bool
|
Return probabilities for each grain type?
Defaults to |
False
|
Returns:
| Type | Description |
|---|---|
Union[Tuple[str, Union[str, None]], Dict[str, float]]
|
Tuple of grain type and subtype or dictionary of probabilities. |