Skip to main content

PyIRoGlass

Project description

PyIRoGlass

PyPI Build Status Documentation Status codecov Open In Colab Python 3.8 License: GPL v3 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.

To run PyIRoGlass on VICTOR, use the victor setup command in the command line and select option 15 for PyIRoGlass. This will create an instance of PyIRoGlass in your local working directory. The VICTOR option will allow for more rapid processing than 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 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

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.6.5.tar.gz (80.8 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.6.5-py3-none-any.whl (80.7 kB view details)

Uploaded Python 3

File details

Details for the file pyiroglass-0.6.5.tar.gz.

File metadata

  • Download URL: pyiroglass-0.6.5.tar.gz
  • Upload date:
  • Size: 80.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyiroglass-0.6.5.tar.gz
Algorithm Hash digest
SHA256 e49576de7df217baffbad64db4e0f00359ca01e24af64080877ec994cbd1d052
MD5 9d66a1b13412f531d7ceb079f39e473a
BLAKE2b-256 b032e55802c3ce8f412b816edb7014dad3ebe8fbfaf797fa61982ac19e795bfb

See more details on using hashes here.

File details

Details for the file pyiroglass-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: pyiroglass-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 80.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyiroglass-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 43b854cc1fb0c6b195d0b09823e3e4443f4eed8f01a52b18e283c436ff162856
MD5 a03b10569cea456b59c4bd09d37af646
BLAKE2b-256 f2305c47292d12674adb893a93b986ad0d092a9d5c4c89e8fd48bd0061e34540

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