Skip to main content

Thermobar

Project description

PyPI Build Status codecov

Thermobar is a python tool for thermobarometry, chemometry and mineral equilibrium.

Thermobar is written in the open-source language Python3. Thermobar allows users to easily choose between more than 100 popular parameterizations involving liquid, olivine-liquid, olivine-spinel, pyroxene only, pyroxene-liquid, two pyroxene, feldspar-liquid, two feldspar, amphibole and amphibole-liquid, garnet and biotite equilibrium.

Thermobar is also the first open-source tool for assessing equilibrium, and calculating pressures and temperatures for all possible pairs of phases from a given sample/volcanic center (e.g., clinopyroxene-liquid, orthopyroxene-liquid, two-pyroxene, feldspar-liquid, two feldspar, amphibole-liquid). Thermobar also contains a number of functions allowing users to propagate errors using Monte-Carlo methods, plot mineral classification diagrams and assess mineral-melt equilibrium (e.g. olivine-melt Rhodes diagrams), calculate liquid viscosities, and convert between different measures for oxygen fugacity and Fe speciation. Finally, in order to perform its calculations, Thermobar contains a number of functions for calculating molar and cation fractions, cation site allocations, and mineral components. These can be leveraged alongside various statistical and machine learning packages in Python to easily produce new thermobarometry, hygrometry or chemometry calibration. Thermobar can be downloaded via pip, on Github (you are here!), and extensive documentation and example videos and Jupyter Notebooks are available at https://thermobar.readthedocs.io/en/latest/index.html

We hope to submit Thermobar in the fall, for now please cite my GSA abstract: Penny Wieser, Maurizio Petrelli, Jordan Lubbers, Eric Wieser, Adam Kent, Christy Till. Thermobar: A critical evaluation of mineral-melt thermobarometry and hygrometry in arc magmas using a new open-source Python3 tool. Geological Society of America Abstracts with Programs. Vol 53, No. 6. https://doi.org/10.1130/abs/2021AM-367080.


Want your model in Thermobar?


Getting your model into Thermobar will hopefully help to increase usage. I am happy to help you with this. You will need to supply me with your scripts or excel spreadsheet showing how the model works, your calibration dataset, and some example calculations for benchmarking.

For Machine Learning models, please see the read the docs page.

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

Thermobar-1.0.4.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

Thermobar-1.0.4-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

Details for the file Thermobar-1.0.4.tar.gz.

File metadata

  • Download URL: Thermobar-1.0.4.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for Thermobar-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ea48e8be433b0b2859c1da67c1028be0ed3af14a5bd9f779206920b7b58b52be
MD5 0e510ee2c7a117768f28349f7403487a
BLAKE2b-256 70821e8114d114d07da9f41a91a5a16f080c58e4c5003da45c34ba0885549f91

See more details on using hashes here.

File details

Details for the file Thermobar-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: Thermobar-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for Thermobar-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae9bbaba8a8c801c59ffb7a07891447ddd845bec4f1f3ac3a1c18d1b67a2a0a
MD5 93775b3ccf45e0c0f8263f2c4981660f
BLAKE2b-256 e273e0d7e325cad3a56894ea5d8cbe6e33f71055b5781ad1844d0f04e4a8bd7b

See more details on using hashes here.

Supported by

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