pyrolite

pyrolite is a set of tools for making the most of your geochemical data.

The python package includes functions to work with compositional data, to transform geochemical variables (e.g. elements to oxides), functions for common plotting tasks (e.g. spiderplots, ternary diagrams, bivariate and ternary density diagrams), and numerous auxiliary utilities.

Why pyrolite?

The name pyrolite is an opportunistic repurposing of a term used to describe an early model mantle composition proposed by Ringwood [Ringwood1962], comprised principally of pyr-oxene & ol-ivine. While the model certainly hasn’t stood the test of time, the approach optimises the aphorism “All models are wrong, but some are useful” [Box1976]. It is with this mindset that pyrolite is built, to better enable you to make use of your geochemical data to build and test geological models.

[Ringwood1962]Ringwood, A.E. (1962). A model for the upper mantle. Journal of Geophysical Research (1896-1977) 67, 857–867. doi: 10.1029/JZ067i002p00857
[Box1976]Box, G.E.P. (1976). Science and Statistics. Journal of the American Statistical Association 71, 791–799. doi: 10.1080/01621459.1976.10480949

Note

This documentation is a work in progress and is updated regularly. Contact the maintainer with any specific questions/requests.