Skip to main content

PyIRoGlass

PyPI Build Status Documentation Status codecov Open In Colab Python 3.9 License: GPL v3 DOI DOI

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.

Manuscript

Find the PyIRoGlass manuscript published at Volcanica on for a more detailed description of the development and validation of the method. If you use this package in your work, please cite:

Shi, S., Towbin, W. H., Plank, T., Barth, A., Rasmussen, D., Moussallam, Y., Lee, H. J. and Menke, W. (2024) “PyIRoGlass: An open-source, Bayesian MCMC algorithm for fitting baselines to FTIR spectra of basaltic-andesitic glasses”, Volcanica, 7(2), pp. 471–501. doi: 10.30909/vol.07.02.471501.
@article{Shietal2024,
    doi       = {10.30909/vol.07.02.471501},
    url       = {https://doi.org/10.30909/vol.07.02.471501},
    year      = {2024},
    volume    = {7},
    number    = {2},
    pages     = {471-501},
    author    = {Shi, Sarah C. and Towbin, W. Henry and Plank, Terry and Barth, Anna and Rasmussen, Daniel and Moussallam, Yves and Lee, Hyun Joo and Menke, William},
    title     = {PyIRoGlass: An open-source, Bayesian MCMC algorithm for fitting baselines to FTIR spectra of basaltic-andesitic glasses},
    journal   = {Volcanica}
}

Documentation

Read the documentation for a run-through of the PyIRoGlass code.

Run on the Cloud

If you do not have Python installed locally or if you use a Windows computer (without Linux), please run PyIRoGlass on VICTOR (Volcanology Infrastructure for Computational Tools and Resources) or on Google Colab. We strongly recommend the use of VICTOR, for significantly faster processing.

To run PyIRoGlass on VICTOR, run the following commands in the VICTOR terminal:

victor setup
15 

This will create an instance of PyIRoGlass in your local working directory.

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 on Mac and Linux. 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

Metadata

Release files for pyIRoGlass 0.6.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyIRoGlass 0.6.8
File Size Uploaded
pyiroglass-0.6.8.tar.gz 87.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyIRoGlass 0.6.8
File Interpreter ABI Platform
pyiroglass-0.6.8-py3-none-any.whl Python 3 none any Details

Total release size: 174.2 kB

Release files / pyiroglass-0.6.8.tar.gz

Download URL pyiroglass-0.6.8.tar.gz
Size 87.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc31e4ff664f746589310ce129d4c44fd4bd0fa7c5c4f7e14fb0d8418afb1db5
BLAKE2b-256 checksum
How to use checksums
55a32cc23847767c89490bcb085cbe5d38e35fe9ac8343a92f7ce894f5bf919b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / pyiroglass-0.6.8-py3-none-any.whl

Download URL pyiroglass-0.6.8-py3-none-any.whl
Size 87.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8822f93fa56567fe64c689445cac0bda898fa36cb9d837b4c630574ced4439f
BLAKE2b-256 checksum
How to use checksums
f45f04a827376306f91315d2992267e402900b9c9dc31fcd88b5d2a54e35bef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.6.8 This release

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.1

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page