Calculate pressures and temperatures of melting for basaltic rocks and fit with melting models.
Project description
meltPT
meltPT is a Python package for whole-rock major-element themormobarometric analyses of basaltic (mafic) rocks. It contains modules for:
- Correcting sample compositions for effects of olivine crystallisation
- Estimating pressures and temperatures at which samples were last in equilibrium with the mantle
- Estimating melt fractions and potential temperatures on an individual basis or for a suite of samples
Installation
Linux/Mac
To avoid incompatibility issues with other packages you may have installed, we recommend running meltPT in a virtual environment. Start a terminal and enter:
$ # Create virtual environment.
$ # Replace /path/to/virtual/environment with your desired path.
$ python3 -m venv /path/to/virtual/environment
$ # Activate new virtual environment.
$ source /path/to/virtual/environment/bin/activate
Next, download the code. Navigate to your desired location and type:
git clone git@github.com:fmcnab/meltPT.git
You should now have a directory called "meltPT". To install the package, enter this directory and run the setup script. Depending on how you plan to use meltPT, you have some different options.
$ cd meltPT
$
$ # Basic install - recommended for those who want to use meltPT as it is.
$ pip install .
$
$ # "Editable" mode - recommended for those actively developing meltPT.
$ pip install -e .
$
$ # Including extra dependencies -
$ # required for those who wish to compile documentation locally.
$ pip install .[docs]
$ pip install -e .[docs] # (editable)
This will take a minute or two and print lots of stuff. If it completes successfully, you are now ready to use meltPT!
Windows
Unfortunately, we don't know much about using Python on a Windows system. But we plan to find out!
Using meltPT
Under ./Examples/Tutorials, you will find some exaple scripts to help you get started.
For more information, the meltPT ReadtheDocs page has full documentation for the codebase, a series of informative tutorials, information about contributing and our liscence.
Citing meltPT
If you use our code, please cite us. Currently each meltPT release is archived in our Zenodo repository:
- McNab, F. and Ball, P. W. (2022), meltPT, version 0.0.9-alpha, Zenodo, doi: 10.5281/zenodo.6948030.
Please be sure to include the version number of the code you used, so that others can reproduce your results. We are working on an accompanying publication which we hope will be available soon.
We also urge you to cite the original literature on which our code is based.
The sample backtracking method is based on that of
Lee et al. (2009, EPSL). For
a list of themormobarometric schemes available in meltPT, and links to the
original papers, see the
Thermobarometers
section of our documentation.
If you use our melt-path fitting routines you should also cite:
- pyMelt: Matthews et al. (in rev., Volcanica)
- melting model for our examples: Katz et al. (2003, G-cubed)
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
File details
Details for the file meltPT-0.0.9a0.tar.gz
.
File metadata
- Download URL: meltPT-0.0.9a0.tar.gz
- Upload date:
- Size: 38.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ecfde44a03f2e538b48e3f01e17336f54d00e2afce840750235dc6565055eab |
|
MD5 | 3c081eee912f3fc05650c0f6622983aa |
|
BLAKE2b-256 | 77f8f723184bd48ede461d2a0a6bb277a5f56b822cd6a4d1c2528bca71749dbd |
File details
Details for the file meltPT-0.0.9a0-py3-none-any.whl
.
File metadata
- Download URL: meltPT-0.0.9a0-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b700687910dc611dc59ccc0d65a3204b757d4ef97075504cb0b29ee5db74d83b |
|
MD5 | 94a7e953476ec64c50739313b8b85fff |
|
BLAKE2b-256 | c02596360906517601bbb38d99d242df91c04d064a47dddbac63a6d9024ed14e |