Skip to main content

PyIRoGlass

Project description

PyIRoGlass

PyIRoGlass is a Bayesian MCMC-founded Python algorithm for determining volatile concentrations and speciation for $\mathrm{H_2O_{t, 3550}}$, $\mathrm{H_2O_{m, 1635}}$, $\mathrm{CO_{3, 1515}^{2-}}$, $\mathrm{CO_{3, 1430}^{2-}}$, $\mathrm{H_2O_{m, 5200}}$, and $\mathrm{OH_{4500}}$ from basaltic to andesitic transmission FTIR spectra. PyIRoGlass is written in the open-source language Python3 with the $MC^3$ package, allowing for the proper sampling of parameter space and the determination of volatile concentrations with uncertainties.

Quantifying concentrations of volatiles in magmas is critical for estimating the conditions of magma storage, assessing phase equilibria, and understanding eruption. We develop and present PyIRoGlass, a new open-source Python package implementing a Bayesian method with Markov Chain Monte Carlo sampling, to process the transmission FTIR spectra of basaltic to andesitic glasses and to quantify volatile concentrations with uncertainties for all H$_2$O and CO$2$ species in basaltic to andesitic glasses, when devolatilized baselines are not readily available. We utilize spectra of natural, devolatilized melt inclusions from the Aleutians to determine the fundamental shapes and variability of the baseline in the mid-IR region, in which the $\mathrm{CO_3^{2-}}$ doublets and $\mathrm{H_2O{m, 1635}}$ peaks are found. The shape of the baseline and that of the peaks varies across samples, dependent on the chemistry of samples and concentration of volatiles. All parameters within the Beer-Lambert Law — including the baseline, molar absorptivity, thickness, and density — are closely examined to quantify the associated uncertainties. Molar absorptivity is recalibrated as a function of compositional parameters by applying a Newtonian inversion, allowing for the quantification of the uncertainty of the inversion and of the uncertainty in composition. PyIRoGlass further provides functions for processing reflectance FTIR spectra to determine sample wafer thickness. Development of this Bayesian method with MCMC sampling allows for the sampling of all possible baselines and peaks to iteratively solve for the best-fit parameters, presenting a promising method forward for robustly estimating uncertainty and accounting for covariance within fit parameters within a unified framework to confidently process transmission FTIR spectra to determine volatile concentrations with uncertainties. The open-source nature of the Python package allows for continuous evolution as more data become available.

Binder

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyIRoGlass-0.0.0.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyIRoGlass-0.0.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file PyIRoGlass-0.0.0.tar.gz.

File metadata

  • Download URL: PyIRoGlass-0.0.0.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for PyIRoGlass-0.0.0.tar.gz
Algorithm Hash digest
SHA256 8701503f8cb65a6a6397c791836c7092c882d245050f008f3c896cda7fcdb63b
MD5 da95273fbebfd2c580118ef4fc40aac4
BLAKE2b-256 55110362f9aab1408e7d46260c345ce33a13aa4cd103701431e0148c31ad69f7

See more details on using hashes here.

File details

Details for the file PyIRoGlass-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyIRoGlass-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for PyIRoGlass-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a75538a773938068d2f781a1e7f3a77a10793a677d101cc871dd1e71b28a2360
MD5 af72cbbd02f7cf34f21ba2d6fdd0c77c
BLAKE2b-256 c5ab36fccfb3909b7b978b73ab6deb363a7b463216084b4863d030ba56e3a9be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page