PyIRoGlass
Project description
PyIRoGlass
PyIRoGlass is a Bayesian MCMC-founded Python algorithm, written in the open-source language Python3, for determining $\mathrm{H_2O}$ and $\mathrm{CO_2}$ species concentrations in the transmission FTIR spectra of basaltic to andesitic glasses. We leverage a database of naturally degassed melt inclusions and back-arc basin basalts to delineate the fundamental shape and variability of the baseline underlying the $\mathrm{CO_{3}^{2-}}$ and $\mathrm{H_2O_{m, 1635}}$ peaks, in the mid-infrared region. PyIRoGlass employs Bayesian inference and Markov Chain Monte Carlo sampling to fit all probable baselines and peaks, solving for best-fit parameters and capturing covariance to offer robust uncertainty estimates.
Preprint
Find the preprint on EarthArXiv on for a more detailed description of the development and validation of the method.
Documentation
Read the documentation for a run-through of the PyIRoGlass code.
Run on the Cloud
If you do not have Python installed locally, run PyIRoGlass on Google Colab.
Run and Install Locally
Obtain a version of Python between 3.8 and 3.12 if you do not already have it installed. PyIRoGlass can be installed with one line. Open terminal and type the following:
pip install PyIRoGlass
Make sure that you keep up with the latest version of PyIRoGlass. To upgrade to the latest version of PyIRoGlass, open terminal and type the following:
pip install PyIRoGlass --upgrade
Using Published FTIR Spectra
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PyIRoGlass-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ddf9e2bdd1ef27f6e50fb9870b0831ca3eda4d0d75fe2f207a9cf4d698e47b7 |
|
MD5 | 63d8f93c0b8c86a0b26f164a8854ed73 |
|
BLAKE2b-256 | dd3e6aa0ac80aa8c259d0ec4eb29e9cf0f1273d6d294f03a0634379ecaca0cb3 |