mescla.isotopes.linearize¶
- mescla.isotopes.linearize(table, pairs=None)[source]¶
Replace solute isotope ratios by \(\delta \times C\), which mixes linearly.
- Parameters:
- Returns:
ChemTable – With each isotope column replaced by its product with the carrier, and
unitsprefixed"linearised". The carrier column is kept – it is needed to convert predictions back, and it is usually a good tracer itself.- Return type:
Notes
Apply the same transform to end-members and samples, exactly as with standardisation. Delta values may be negative, which is fine: the product is still linear in the mixing ratios.
Examples
>>> linear = linearize(samples, {"d13C": "DIC"}) >>> em = linearize(endmembers, {"d13C": "DIC"}) >>> result = mixing_ratios(em, linear)