{
"cells": [
{
"cell_type": "markdown",
"id": "f14e6532-a513-46b1-a3f0-a2ca0d2ba1be",
"metadata": {},
"source": [
"# Amphibole-only and Amphibole-Liquid\n",
"- This workbook demonstrates how to use the various amphibole-only, and amphibole-liquid functions"
]
},
{
"cell_type": "markdown",
"id": "4376a858-f0b6-4bbd-ab2e-987ff6a29d5b",
"metadata": {},
"source": [
"- You need to install Thermobar once on your machine, if you haven't done this yet, uncomment the line below (remove the #)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "a4f28cf1-3896-4d8c-a3b2-f73ff98ca12d",
"metadata": {},
"outputs": [],
"source": [
"#!pip install Thermobar"
]
},
{
"cell_type": "markdown",
"id": "4c9a0348-3cc9-4c20-a608-358b57c93834",
"metadata": {},
"source": [
"## Load python things"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "ab1e4ba2-d2d8-4082-bf81-b803d7c16fce",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import Thermobar as pt\n",
"pd.options.display.max_columns = None"
]
},
{
"cell_type": "markdown",
"id": "ab04c6fa-e684-42c4-9997-e4f11c354f7e",
"metadata": {},
"source": [
"## Load data"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "833ae94f-687b-46c4-8f47-cd1c0d67a266",
"metadata": {},
"outputs": [],
"source": [
"out=pt.import_excel('Amphibole_Liquids.xlsx', sheet_name=\"Amp-Liq\")\n",
"my_input=out['my_input']\n",
"Amps=out['Amps']\n",
"Liqs=out['Liqs']"
]
},
{
"cell_type": "markdown",
"id": "cfe03415-e1b3-4c06-806f-d12cb98cf58d",
"metadata": {},
"source": [
"## Checking data read in correctly (check no columns are full of zeros that you think you inputted)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "b0a41043-c300-4461-9329-4ff3e3982c43",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" SiO2_Amp \n",
" TiO2_Amp \n",
" Al2O3_Amp \n",
" FeOt_Amp \n",
" MnO_Amp \n",
" MgO_Amp \n",
" CaO_Amp \n",
" Na2O_Amp \n",
" K2O_Amp \n",
" Cr2O3_Amp \n",
" F_Amp \n",
" Cl_Amp \n",
" Sample_ID_Amp \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 40.57 \n",
" 2.45 \n",
" 12.82 \n",
" 13.11 \n",
" 0.26 \n",
" 13.02 \n",
" 11.63 \n",
" 2.20 \n",
" 0.92 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe1 \n",
" \n",
" \n",
" 1 \n",
" 39.45 \n",
" 1.88 \n",
" 10.80 \n",
" 11.85 \n",
" 0.00 \n",
" 11.32 \n",
" 10.94 \n",
" 2.04 \n",
" 0.75 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe2 \n",
" \n",
" \n",
" 2 \n",
" 42.88 \n",
" 3.46 \n",
" 14.28 \n",
" 15.99 \n",
" 0.54 \n",
" 14.25 \n",
" 12.12 \n",
" 2.43 \n",
" 1.18 \n",
" 0.03 \n",
" 0.0 \n",
" 0.0 \n",
" probe3 \n",
" \n",
" \n",
" 3 \n",
" 42.20 \n",
" 2.75 \n",
" 11.10 \n",
" 13.10 \n",
" 0.39 \n",
" 13.55 \n",
" 11.07 \n",
" 2.27 \n",
" 0.95 \n",
" 0.01 \n",
" 0.0 \n",
" 0.0 \n",
" probe4 \n",
" \n",
" \n",
" 4 \n",
" 40.37 \n",
" 2.28 \n",
" 10.06 \n",
" 11.76 \n",
" 0.19 \n",
" 12.41 \n",
" 10.40 \n",
" 2.09 \n",
" 0.82 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe5 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Amp TiO2_Amp Al2O3_Amp FeOt_Amp MnO_Amp MgO_Amp CaO_Amp \\\n",
"0 40.57 2.45 12.82 13.11 0.26 13.02 11.63 \n",
"1 39.45 1.88 10.80 11.85 0.00 11.32 10.94 \n",
"2 42.88 3.46 14.28 15.99 0.54 14.25 12.12 \n",
"3 42.20 2.75 11.10 13.10 0.39 13.55 11.07 \n",
"4 40.37 2.28 10.06 11.76 0.19 12.41 10.40 \n",
"\n",
" Na2O_Amp K2O_Amp Cr2O3_Amp F_Amp Cl_Amp Sample_ID_Amp \n",
"0 2.20 0.92 0.00 0.0 0.0 probe1 \n",
"1 2.04 0.75 0.00 0.0 0.0 probe2 \n",
"2 2.43 1.18 0.03 0.0 0.0 probe3 \n",
"3 2.27 0.95 0.01 0.0 0.0 probe4 \n",
"4 2.09 0.82 0.00 0.0 0.0 probe5 "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" SiO2_Liq \n",
" TiO2_Liq \n",
" Al2O3_Liq \n",
" FeOt_Liq \n",
" MnO_Liq \n",
" MgO_Liq \n",
" CaO_Liq \n",
" Na2O_Liq \n",
" K2O_Liq \n",
" Cr2O3_Liq \n",
" P2O5_Liq \n",
" H2O_Liq \n",
" Fe3Fet_Liq \n",
" NiO_Liq \n",
" CoO_Liq \n",
" CO2_Liq \n",
" Sample_ID_Liq \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 62.317403 \n",
" 0.592583 \n",
" 17.015042 \n",
" 5.578974 \n",
" 0.147384 \n",
" 1.493784 \n",
" 5.199067 \n",
" 3.799517 \n",
" 3.840125 \n",
" 0 \n",
" 0.320967 \n",
" 5 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" probe_s2_1 \n",
" \n",
" \n",
" 1 \n",
" 63.410655 \n",
" 0.567627 \n",
" 16.682223 \n",
" 5.211648 \n",
" 0.139473 \n",
" 1.343074 \n",
" 4.680291 \n",
" 3.797226 \n",
" 4.118336 \n",
" 0 \n",
" 0.320854 \n",
" 5 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" probe_s2_2 \n",
" \n",
" \n",
" 2 \n",
" 64.978351 \n",
" 0.531840 \n",
" 16.204967 \n",
" 4.684912 \n",
" 0.128130 \n",
" 1.126960 \n",
" 3.936379 \n",
" 3.793940 \n",
" 4.517285 \n",
" 0 \n",
" 0.320691 \n",
" 5 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" probe_s2_3 \n",
" \n",
" \n",
" 3 \n",
" 60.953715 \n",
" 0.623712 \n",
" 17.430191 \n",
" 6.037164 \n",
" 0.157251 \n",
" 1.681775 \n",
" 5.846172 \n",
" 3.802375 \n",
" 3.493093 \n",
" 0 \n",
" 0.321109 \n",
" 5 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" probe_s2_4 \n",
" \n",
" \n",
" 4 \n",
" 60.188394 \n",
" 0.641183 \n",
" 17.663178 \n",
" 6.294307 \n",
" 0.162789 \n",
" 1.787278 \n",
" 6.209337 \n",
" 3.803979 \n",
" 3.298333 \n",
" 0 \n",
" 0.321189 \n",
" 5 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" 0.0 \n",
" probe_s2_5 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Liq TiO2_Liq Al2O3_Liq FeOt_Liq MnO_Liq MgO_Liq CaO_Liq \\\n",
"0 62.317403 0.592583 17.015042 5.578974 0.147384 1.493784 5.199067 \n",
"1 63.410655 0.567627 16.682223 5.211648 0.139473 1.343074 4.680291 \n",
"2 64.978351 0.531840 16.204967 4.684912 0.128130 1.126960 3.936379 \n",
"3 60.953715 0.623712 17.430191 6.037164 0.157251 1.681775 5.846172 \n",
"4 60.188394 0.641183 17.663178 6.294307 0.162789 1.787278 6.209337 \n",
"\n",
" Na2O_Liq K2O_Liq Cr2O3_Liq P2O5_Liq H2O_Liq Fe3Fet_Liq NiO_Liq \\\n",
"0 3.799517 3.840125 0 0.320967 5 0.0 0.0 \n",
"1 3.797226 4.118336 0 0.320854 5 0.0 0.0 \n",
"2 3.793940 4.517285 0 0.320691 5 0.0 0.0 \n",
"3 3.802375 3.493093 0 0.321109 5 0.0 0.0 \n",
"4 3.803979 3.298333 0 0.321189 5 0.0 0.0 \n",
"\n",
" CoO_Liq CO2_Liq Sample_ID_Liq \n",
"0 0.0 0.0 probe_s2_1 \n",
"1 0.0 0.0 probe_s2_2 \n",
"2 0.0 0.0 probe_s2_3 \n",
"3 0.0 0.0 probe_s2_4 \n",
"4 0.0 0.0 probe_s2_5 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"display(Amps.head())\n",
"display(Liqs.head())"
]
},
{
"cell_type": "markdown",
"id": "f0e72ca0-74be-4d31-a238-03096df72a74",
"metadata": {},
"source": [
"## Example 1 - Amphibole-only pressure\n",
"- can use help to see equation options"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "f5a8b891-670f-4232-b6d4-970798ada276",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Help on function calculate_amp_only_press in module Thermobar.amphibole:\n",
"\n",
"calculate_amp_only_press(amp_comps=None, equationP=None, T=None, deltaNNO=None, classification=False, Ridolfi_Filter=True)\n",
" Amphibole-only barometry, returns pressure in kbar.\n",
" \n",
" Parameters\n",
" -----------\n",
" \n",
" amp_comps: pandas.DataFrame\n",
" Amphibole compositions with column headings SiO2_Amp, MgO_Amp etc.\n",
" \n",
" \n",
" EquationP: str\n",
" | P_Mutch2016 (T-independent)\n",
" | P_Ridolfi2012_1a (T-independent)\n",
" | P_Ridolfi2012_1b (T-independent)\n",
" | P_Ridolfi2012_1c (T-independent)\n",
" | P_Ridolfi2012_1d (T-independent)\n",
" | P_Ridolfi2012_1e (T-independent)\n",
" | P_Ridolfi2021 - (T-independent)- Uses new algorithm in 2021 paper to\n",
" select pressures from equations 1a-e.\n",
" \n",
" | P_Ridolfi2010 (T-independent)\n",
" | P_Hammarstrom1986_eq1 (T-independent)\n",
" | P_Hammarstrom1986_eq2 (T-independent)\n",
" | P_Hammarstrom1986_eq3 (T-independent)\n",
" | P_Hollister1987 (T-independent)\n",
" | P_Johnson1989 (T-independent)\n",
" | P_Blundy1990 (T-independent)\n",
" | P_Schmidt1992 (T-independent)\n",
" | P_Anderson1995 (*T-dependent*)\n",
" \n",
" T: float, int, pandas.Series, str (\"Solve\")\n",
" Temperature in Kelvin\n",
" Only needed for T-sensitive barometers.\n",
" If enter T=\"Solve\", returns a partial function\n",
" Else, enter an integer, float, or panda series\n",
" \n",
" Returns\n",
" -------\n",
" pandas series\n",
" Pressure in kbar\n",
"\n"
]
}
],
"source": [
"help(pt.calculate_amp_only_press)"
]
},
{
"cell_type": "markdown",
"id": "e3000341-a48b-4eb0-93d4-ae26ab84ac67",
"metadata": {},
"source": [
"### Ridolfi 2021 - Minerals - algorithm\n",
"- here, we specify equationP=\"P_Ridolfi2021\", which combines equations 1a-1e from Ridolfi 2012 and chooses the \"correct\" equation using a number of filters (see Ridolfi 2021, Minerals)\n",
"- The output dataframe shows the calulated pressure, as well as the equation selected\n",
"- The code also prints a warning that some of the rows have oxide sums <90, so a Nan is returned for these following Ridolfi 2021 supplement"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "8ca0733c-9cbd-4004-a609-f7f26642e719",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" Input_Check \n",
" Fail Msg \n",
" classification \n",
" equation \n",
" H2O_calc \n",
" Fe2O3_calc \n",
" FeO_calc \n",
" Total_recalc \n",
" Sum_input \n",
" SiO2_Amp_cat_prop \n",
" MgO_Amp_cat_prop \n",
" FeOt_Amp_cat_prop \n",
" CaO_Amp_cat_prop \n",
" Al2O3_Amp_cat_prop \n",
" Na2O_Amp_cat_prop \n",
" K2O_Amp_cat_prop \n",
" MnO_Amp_cat_prop \n",
" TiO2_Amp_cat_prop \n",
" Cr2O3_Amp_cat_prop \n",
" F_Amp_cat_prop \n",
" Cl_Amp_cat_prop \n",
" Si_Amp_13_cat \n",
" Mg_Amp_13_cat \n",
" Fet_Amp_13_cat \n",
" Ca_Amp_13_cat \n",
" Al_Amp_13_cat \n",
" Na_Amp_13_cat \n",
" K_Amp_13_cat \n",
" Mn_Amp_13_cat \n",
" Ti_Amp_13_cat \n",
" Cr_Amp_13_cat \n",
" F_Amp_13_cat \n",
" Cl_Amp_13_cat \n",
" cation_sum_Si_Mg \n",
" Si_T \n",
" Al_IV_T \n",
" Ti_T \n",
" Cr_C \n",
" Fe3_C \n",
" Mg_C \n",
" Fe2_C \n",
" Mn_C \n",
" Ca_B \n",
" Na_B \n",
" Na_A \n",
" K_A \n",
" Al_VI_C \n",
" Ti_C \n",
" Charge \n",
" Fe3_calc \n",
" Fe2_calc \n",
" O=F,Cl \n",
" Total \n",
" Mgno_Fe2 \n",
" Mgno_FeT \n",
" Na_calc \n",
" B_Sum \n",
" A_Sum \n",
" class \n",
" APE \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.572174 \n",
" True \n",
" \n",
" Mg-hastingsite \n",
" (1b+1c)/2 \n",
" 1.917780 \n",
" 7.000433 \n",
" 6.810921 \n",
" 99.599134 \n",
" 96.98 \n",
" 0.675221 \n",
" 0.323045 \n",
" 0.182474 \n",
" 0.207386 \n",
" 0.251469 \n",
" 0.070992 \n",
" 0.019534 \n",
" 0.003665 \n",
" 0.030664 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 5.985442 \n",
" 2.863604 \n",
" 1.617522 \n",
" 1.838356 \n",
" 2.229123 \n",
" 0.629301 \n",
" 0.173157 \n",
" 0.032490 \n",
" 0.271819 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 1.466538 \n",
" 5.985442 \n",
" 2.014558 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.777185 \n",
" 2.863604 \n",
" 0.840337 \n",
" 0.032490 \n",
" 1.838356 \n",
" 0.161644 \n",
" 0.467656 \n",
" 0.173157 \n",
" 0.214565 \n",
" 0.271819 \n",
" 45.222815 \n",
" 0.777185 \n",
" 0.840337 \n",
" -0.0 \n",
" NaN \n",
" 0.773124 \n",
" 0.639037 \n",
" 0.161644 \n",
" 2.0 \n",
" 0.640813 \n",
" N/A \n",
" 28.333126 \n",
" \n",
" \n",
" 1 \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Pargasite \n",
" 1b \n",
" 0.000000 \n",
" 0.000000 \n",
" 10.836615 \n",
" 88.016615 \n",
" 89.03 \n",
" 0.656581 \n",
" 0.280865 \n",
" 0.164936 \n",
" 0.195082 \n",
" 0.211846 \n",
" 0.065829 \n",
" 0.015924 \n",
" 0.000000 \n",
" 0.023530 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 6.380489 \n",
" 2.729380 \n",
" 1.602808 \n",
" 1.895758 \n",
" 2.058664 \n",
" 0.639707 \n",
" 0.154749 \n",
" 0.000000 \n",
" 0.228659 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 1.337758 \n",
" 6.380489 \n",
" 1.619511 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.137068 \n",
" 2.729380 \n",
" 1.465740 \n",
" 0.000000 \n",
" 1.895758 \n",
" 0.104242 \n",
" 0.535465 \n",
" 0.154749 \n",
" 0.439153 \n",
" 0.228659 \n",
" 45.862932 \n",
" 0.137068 \n",
" 1.465740 \n",
" 0.0 \n",
" 0.0 \n",
" 0.650608 \n",
" 0.630023 \n",
" 0.104242 \n",
" 2.0 \n",
" 0.690215 \n",
" N/A \n",
" NaN \n",
" \n",
" \n",
" 2 \n",
" NaN \n",
" False \n",
" Recalc Total>102 \n",
" Mg-hastingsite \n",
" 1c+1d \n",
" 2.120043 \n",
" 13.095088 \n",
" 4.206872 \n",
" 110.592004 \n",
" 107.16 \n",
" 0.713668 \n",
" 0.353563 \n",
" 0.222559 \n",
" 0.216124 \n",
" 0.280107 \n",
" 0.078414 \n",
" 0.025054 \n",
" 0.007612 \n",
" 0.043305 \n",
" 0.000395 \n",
" 0.0 \n",
" 0.0 \n",
" 5.722690 \n",
" 2.835117 \n",
" 1.784638 \n",
" 1.733032 \n",
" 2.246096 \n",
" 0.628776 \n",
" 0.200904 \n",
" 0.061042 \n",
" 0.347252 \n",
" 0.003165 \n",
" 0.0 \n",
" 0.0 \n",
" 1.621209 \n",
" 5.722690 \n",
" 2.246096 \n",
" 0.031214 \n",
" 0.003165 \n",
" 1.315111 \n",
" 2.835117 \n",
" 0.469527 \n",
" 0.061042 \n",
" 1.733032 \n",
" 0.266968 \n",
" 0.361808 \n",
" 0.200904 \n",
" 0.000000 \n",
" 0.316038 \n",
" 44.684889 \n",
" 1.315111 \n",
" 0.469527 \n",
" -0.0 \n",
" NaN \n",
" 0.857919 \n",
" 0.613694 \n",
" 0.266968 \n",
" 2.0 \n",
" 0.562712 \n",
" N/A \n",
" 53.674852 \n",
" \n",
" \n",
" 3 \n",
" NaN \n",
" False \n",
" APE >60 \n",
" Mg-hastingsite \n",
" 1b \n",
" 1.933630 \n",
" 7.604246 \n",
" 6.257602 \n",
" 100.085478 \n",
" 97.39 \n",
" 0.702350 \n",
" 0.336195 \n",
" 0.182334 \n",
" 0.197400 \n",
" 0.217730 \n",
" 0.073251 \n",
" 0.020171 \n",
" 0.005498 \n",
" 0.034419 \n",
" 0.000132 \n",
" 0.0 \n",
" 0.0 \n",
" 6.174890 \n",
" 2.955744 \n",
" 1.603040 \n",
" 1.735493 \n",
" 1.914232 \n",
" 0.644002 \n",
" 0.177338 \n",
" 0.048336 \n",
" 0.302602 \n",
" 0.001157 \n",
" 0.0 \n",
" 0.0 \n",
" 1.478658 \n",
" 6.174890 \n",
" 1.825110 \n",
" 0.000000 \n",
" 0.001157 \n",
" 0.837300 \n",
" 2.955744 \n",
" 0.765739 \n",
" 0.048336 \n",
" 1.735493 \n",
" 0.264507 \n",
" 0.379495 \n",
" 0.177338 \n",
" 0.089122 \n",
" 0.302602 \n",
" 45.162700 \n",
" 0.837300 \n",
" 0.765739 \n",
" -0.0 \n",
" NaN \n",
" 0.794238 \n",
" 0.648362 \n",
" 0.264507 \n",
" 2.0 \n",
" 0.556833 \n",
" N/A \n",
" 60.173092 \n",
" \n",
" \n",
" 4 \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Mg-hastingsite \n",
" 1b \n",
" 1.794195 \n",
" 4.540852 \n",
" 7.674083 \n",
" 92.629130 \n",
" 90.38 \n",
" 0.671893 \n",
" 0.307910 \n",
" 0.163683 \n",
" 0.185453 \n",
" 0.197330 \n",
" 0.067442 \n",
" 0.017411 \n",
" 0.002678 \n",
" 0.028536 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 6.366185 \n",
" 2.917447 \n",
" 1.550901 \n",
" 1.757165 \n",
" 1.869706 \n",
" 0.639015 \n",
" 0.164966 \n",
" 0.025378 \n",
" 0.270382 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 1.372031 \n",
" 6.366185 \n",
" 1.633815 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.538848 \n",
" 2.917447 \n",
" 1.012053 \n",
" 0.025378 \n",
" 1.757165 \n",
" 0.242835 \n",
" 0.396180 \n",
" 0.164966 \n",
" 0.235891 \n",
" 0.270382 \n",
" 45.461152 \n",
" 0.538848 \n",
" 1.012053 \n",
" -0.0 \n",
" NaN \n",
" 0.742447 \n",
" 0.652914 \n",
" 0.242835 \n",
" 2.0 \n",
" 0.561146 \n",
" N/A \n",
" 36.692839 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc Input_Check Fail Msg classification equation \\\n",
"0 4.572174 True Mg-hastingsite (1b+1c)/2 \n",
"1 NaN False Recalc Total<98.5 Pargasite 1b \n",
"2 NaN False Recalc Total>102 Mg-hastingsite 1c+1d \n",
"3 NaN False APE >60 Mg-hastingsite 1b \n",
"4 NaN False Recalc Total<98.5 Mg-hastingsite 1b \n",
"\n",
" H2O_calc Fe2O3_calc FeO_calc Total_recalc Sum_input \\\n",
"0 1.917780 7.000433 6.810921 99.599134 96.98 \n",
"1 0.000000 0.000000 10.836615 88.016615 89.03 \n",
"2 2.120043 13.095088 4.206872 110.592004 107.16 \n",
"3 1.933630 7.604246 6.257602 100.085478 97.39 \n",
"4 1.794195 4.540852 7.674083 92.629130 90.38 \n",
"\n",
" SiO2_Amp_cat_prop MgO_Amp_cat_prop FeOt_Amp_cat_prop CaO_Amp_cat_prop \\\n",
"0 0.675221 0.323045 0.182474 0.207386 \n",
"1 0.656581 0.280865 0.164936 0.195082 \n",
"2 0.713668 0.353563 0.222559 0.216124 \n",
"3 0.702350 0.336195 0.182334 0.197400 \n",
"4 0.671893 0.307910 0.163683 0.185453 \n",
"\n",
" Al2O3_Amp_cat_prop Na2O_Amp_cat_prop K2O_Amp_cat_prop MnO_Amp_cat_prop \\\n",
"0 0.251469 0.070992 0.019534 0.003665 \n",
"1 0.211846 0.065829 0.015924 0.000000 \n",
"2 0.280107 0.078414 0.025054 0.007612 \n",
"3 0.217730 0.073251 0.020171 0.005498 \n",
"4 0.197330 0.067442 0.017411 0.002678 \n",
"\n",
" TiO2_Amp_cat_prop Cr2O3_Amp_cat_prop F_Amp_cat_prop Cl_Amp_cat_prop \\\n",
"0 0.030664 0.000000 0.0 0.0 \n",
"1 0.023530 0.000000 0.0 0.0 \n",
"2 0.043305 0.000395 0.0 0.0 \n",
"3 0.034419 0.000132 0.0 0.0 \n",
"4 0.028536 0.000000 0.0 0.0 \n",
"\n",
" Si_Amp_13_cat Mg_Amp_13_cat Fet_Amp_13_cat Ca_Amp_13_cat Al_Amp_13_cat \\\n",
"0 5.985442 2.863604 1.617522 1.838356 2.229123 \n",
"1 6.380489 2.729380 1.602808 1.895758 2.058664 \n",
"2 5.722690 2.835117 1.784638 1.733032 2.246096 \n",
"3 6.174890 2.955744 1.603040 1.735493 1.914232 \n",
"4 6.366185 2.917447 1.550901 1.757165 1.869706 \n",
"\n",
" Na_Amp_13_cat K_Amp_13_cat Mn_Amp_13_cat Ti_Amp_13_cat Cr_Amp_13_cat \\\n",
"0 0.629301 0.173157 0.032490 0.271819 0.000000 \n",
"1 0.639707 0.154749 0.000000 0.228659 0.000000 \n",
"2 0.628776 0.200904 0.061042 0.347252 0.003165 \n",
"3 0.644002 0.177338 0.048336 0.302602 0.001157 \n",
"4 0.639015 0.164966 0.025378 0.270382 0.000000 \n",
"\n",
" F_Amp_13_cat Cl_Amp_13_cat cation_sum_Si_Mg Si_T Al_IV_T \\\n",
"0 0.0 0.0 1.466538 5.985442 2.014558 \n",
"1 0.0 0.0 1.337758 6.380489 1.619511 \n",
"2 0.0 0.0 1.621209 5.722690 2.246096 \n",
"3 0.0 0.0 1.478658 6.174890 1.825110 \n",
"4 0.0 0.0 1.372031 6.366185 1.633815 \n",
"\n",
" Ti_T Cr_C Fe3_C Mg_C Fe2_C Mn_C Ca_B \\\n",
"0 0.000000 0.000000 0.777185 2.863604 0.840337 0.032490 1.838356 \n",
"1 0.000000 0.000000 0.137068 2.729380 1.465740 0.000000 1.895758 \n",
"2 0.031214 0.003165 1.315111 2.835117 0.469527 0.061042 1.733032 \n",
"3 0.000000 0.001157 0.837300 2.955744 0.765739 0.048336 1.735493 \n",
"4 0.000000 0.000000 0.538848 2.917447 1.012053 0.025378 1.757165 \n",
"\n",
" Na_B Na_A K_A Al_VI_C Ti_C Charge Fe3_calc \\\n",
"0 0.161644 0.467656 0.173157 0.214565 0.271819 45.222815 0.777185 \n",
"1 0.104242 0.535465 0.154749 0.439153 0.228659 45.862932 0.137068 \n",
"2 0.266968 0.361808 0.200904 0.000000 0.316038 44.684889 1.315111 \n",
"3 0.264507 0.379495 0.177338 0.089122 0.302602 45.162700 0.837300 \n",
"4 0.242835 0.396180 0.164966 0.235891 0.270382 45.461152 0.538848 \n",
"\n",
" Fe2_calc O=F,Cl Total Mgno_Fe2 Mgno_FeT Na_calc B_Sum A_Sum \\\n",
"0 0.840337 -0.0 NaN 0.773124 0.639037 0.161644 2.0 0.640813 \n",
"1 1.465740 0.0 0.0 0.650608 0.630023 0.104242 2.0 0.690215 \n",
"2 0.469527 -0.0 NaN 0.857919 0.613694 0.266968 2.0 0.562712 \n",
"3 0.765739 -0.0 NaN 0.794238 0.648362 0.264507 2.0 0.556833 \n",
"4 1.012053 -0.0 NaN 0.742447 0.652914 0.242835 2.0 0.561146 \n",
"\n",
" class APE \n",
"0 N/A 28.333126 \n",
"1 N/A NaN \n",
"2 N/A 53.674852 \n",
"3 N/A 60.173092 \n",
"4 N/A 36.692839 "
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Ridolfi2021=pt.calculate_amp_only_press(amp_comps=Amps, equationP=\"P_Ridolfi2021\")\n",
"P_Ridolfi2021.head()"
]
},
{
"cell_type": "markdown",
"id": "083c5650-d087-4b91-8e00-c940338b5077",
"metadata": {},
"source": [
"#### Without quality filters\n",
"- If you want to use the pressures which yield \"input errors\", you can specify \"Ridolfi_Filter=False\"\n",
"- This is more for looking at what ones it has discarded, we don't necessarily recomend this, we just have it as a feature you can use at your peril. "
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "effba148-b577-4ef1-b481-0f7d56cb12f3",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" Input_Check \n",
" Fail Msg \n",
" classification \n",
" equation \n",
" H2O_calc \n",
" Fe2O3_calc \n",
" FeO_calc \n",
" Total_recalc \n",
" Sum_input \n",
" SiO2_Amp_cat_prop \n",
" MgO_Amp_cat_prop \n",
" FeOt_Amp_cat_prop \n",
" CaO_Amp_cat_prop \n",
" Al2O3_Amp_cat_prop \n",
" Na2O_Amp_cat_prop \n",
" K2O_Amp_cat_prop \n",
" MnO_Amp_cat_prop \n",
" TiO2_Amp_cat_prop \n",
" Cr2O3_Amp_cat_prop \n",
" F_Amp_cat_prop \n",
" Cl_Amp_cat_prop \n",
" Si_Amp_13_cat \n",
" Mg_Amp_13_cat \n",
" Fet_Amp_13_cat \n",
" Ca_Amp_13_cat \n",
" Al_Amp_13_cat \n",
" Na_Amp_13_cat \n",
" K_Amp_13_cat \n",
" Mn_Amp_13_cat \n",
" Ti_Amp_13_cat \n",
" Cr_Amp_13_cat \n",
" F_Amp_13_cat \n",
" Cl_Amp_13_cat \n",
" cation_sum_Si_Mg \n",
" Si_T \n",
" Al_IV_T \n",
" Ti_T \n",
" Cr_C \n",
" Fe3_C \n",
" Mg_C \n",
" Fe2_C \n",
" Mn_C \n",
" Ca_B \n",
" Na_B \n",
" Na_A \n",
" K_A \n",
" Al_VI_C \n",
" Ti_C \n",
" Charge \n",
" Fe3_calc \n",
" Fe2_calc \n",
" O=F,Cl \n",
" Total \n",
" Mgno_Fe2 \n",
" Mgno_FeT \n",
" Na_calc \n",
" B_Sum \n",
" A_Sum \n",
" class \n",
" APE \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.572174 \n",
" True \n",
" \n",
" Mg-hastingsite \n",
" (1b+1c)/2 \n",
" 1.917780 \n",
" 7.000433 \n",
" 6.810921 \n",
" 99.599134 \n",
" 96.98 \n",
" 0.675221 \n",
" 0.323045 \n",
" 0.182474 \n",
" 0.207386 \n",
" 0.251469 \n",
" 0.070992 \n",
" 0.019534 \n",
" 0.003665 \n",
" 0.030664 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 5.985442 \n",
" 2.863604 \n",
" 1.617522 \n",
" 1.838356 \n",
" 2.229123 \n",
" 0.629301 \n",
" 0.173157 \n",
" 0.032490 \n",
" 0.271819 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 1.466538 \n",
" 5.985442 \n",
" 2.014558 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.777185 \n",
" 2.863604 \n",
" 0.840337 \n",
" 0.032490 \n",
" 1.838356 \n",
" 0.161644 \n",
" 0.467656 \n",
" 0.173157 \n",
" 0.214565 \n",
" 0.271819 \n",
" 45.222815 \n",
" 0.777185 \n",
" 0.840337 \n",
" -0.0 \n",
" NaN \n",
" 0.773124 \n",
" 0.639037 \n",
" 0.161644 \n",
" 2.0 \n",
" 0.640813 \n",
" N/A \n",
" 28.333126 \n",
" \n",
" \n",
" 1 \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Pargasite \n",
" 1b \n",
" 0.000000 \n",
" 0.000000 \n",
" 10.836615 \n",
" 88.016615 \n",
" 89.03 \n",
" 0.656581 \n",
" 0.280865 \n",
" 0.164936 \n",
" 0.195082 \n",
" 0.211846 \n",
" 0.065829 \n",
" 0.015924 \n",
" 0.000000 \n",
" 0.023530 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 6.380489 \n",
" 2.729380 \n",
" 1.602808 \n",
" 1.895758 \n",
" 2.058664 \n",
" 0.639707 \n",
" 0.154749 \n",
" 0.000000 \n",
" 0.228659 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 1.337758 \n",
" 6.380489 \n",
" 1.619511 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.137068 \n",
" 2.729380 \n",
" 1.465740 \n",
" 0.000000 \n",
" 1.895758 \n",
" 0.104242 \n",
" 0.535465 \n",
" 0.154749 \n",
" 0.439153 \n",
" 0.228659 \n",
" 45.862932 \n",
" 0.137068 \n",
" 1.465740 \n",
" 0.0 \n",
" 0.0 \n",
" 0.650608 \n",
" 0.630023 \n",
" 0.104242 \n",
" 2.0 \n",
" 0.690215 \n",
" N/A \n",
" NaN \n",
" \n",
" \n",
" 2 \n",
" 6.203253 \n",
" False \n",
" Recalc Total>102 \n",
" Mg-hastingsite \n",
" 1c+1d \n",
" 2.120043 \n",
" 13.095088 \n",
" 4.206872 \n",
" 110.592004 \n",
" 107.16 \n",
" 0.713668 \n",
" 0.353563 \n",
" 0.222559 \n",
" 0.216124 \n",
" 0.280107 \n",
" 0.078414 \n",
" 0.025054 \n",
" 0.007612 \n",
" 0.043305 \n",
" 0.000395 \n",
" 0.0 \n",
" 0.0 \n",
" 5.722690 \n",
" 2.835117 \n",
" 1.784638 \n",
" 1.733032 \n",
" 2.246096 \n",
" 0.628776 \n",
" 0.200904 \n",
" 0.061042 \n",
" 0.347252 \n",
" 0.003165 \n",
" 0.0 \n",
" 0.0 \n",
" 1.621209 \n",
" 5.722690 \n",
" 2.246096 \n",
" 0.031214 \n",
" 0.003165 \n",
" 1.315111 \n",
" 2.835117 \n",
" 0.469527 \n",
" 0.061042 \n",
" 1.733032 \n",
" 0.266968 \n",
" 0.361808 \n",
" 0.200904 \n",
" 0.000000 \n",
" 0.316038 \n",
" 44.684889 \n",
" 1.315111 \n",
" 0.469527 \n",
" -0.0 \n",
" NaN \n",
" 0.857919 \n",
" 0.613694 \n",
" 0.266968 \n",
" 2.0 \n",
" 0.562712 \n",
" N/A \n",
" 53.674852 \n",
" \n",
" \n",
" 3 \n",
" 3.228704 \n",
" False \n",
" APE >60 \n",
" Mg-hastingsite \n",
" 1b \n",
" 1.933630 \n",
" 7.604246 \n",
" 6.257602 \n",
" 100.085478 \n",
" 97.39 \n",
" 0.702350 \n",
" 0.336195 \n",
" 0.182334 \n",
" 0.197400 \n",
" 0.217730 \n",
" 0.073251 \n",
" 0.020171 \n",
" 0.005498 \n",
" 0.034419 \n",
" 0.000132 \n",
" 0.0 \n",
" 0.0 \n",
" 6.174890 \n",
" 2.955744 \n",
" 1.603040 \n",
" 1.735493 \n",
" 1.914232 \n",
" 0.644002 \n",
" 0.177338 \n",
" 0.048336 \n",
" 0.302602 \n",
" 0.001157 \n",
" 0.0 \n",
" 0.0 \n",
" 1.478658 \n",
" 6.174890 \n",
" 1.825110 \n",
" 0.000000 \n",
" 0.001157 \n",
" 0.837300 \n",
" 2.955744 \n",
" 0.765739 \n",
" 0.048336 \n",
" 1.735493 \n",
" 0.264507 \n",
" 0.379495 \n",
" 0.177338 \n",
" 0.089122 \n",
" 0.302602 \n",
" 45.162700 \n",
" 0.837300 \n",
" 0.765739 \n",
" -0.0 \n",
" NaN \n",
" 0.794238 \n",
" 0.648362 \n",
" 0.264507 \n",
" 2.0 \n",
" 0.556833 \n",
" N/A \n",
" 60.173092 \n",
" \n",
" \n",
" 4 \n",
" 2.761702 \n",
" False \n",
" Recalc Total<98.5 \n",
" Mg-hastingsite \n",
" 1b \n",
" 1.794195 \n",
" 4.540852 \n",
" 7.674083 \n",
" 92.629130 \n",
" 90.38 \n",
" 0.671893 \n",
" 0.307910 \n",
" 0.163683 \n",
" 0.185453 \n",
" 0.197330 \n",
" 0.067442 \n",
" 0.017411 \n",
" 0.002678 \n",
" 0.028536 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 6.366185 \n",
" 2.917447 \n",
" 1.550901 \n",
" 1.757165 \n",
" 1.869706 \n",
" 0.639015 \n",
" 0.164966 \n",
" 0.025378 \n",
" 0.270382 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.0 \n",
" 1.372031 \n",
" 6.366185 \n",
" 1.633815 \n",
" 0.000000 \n",
" 0.000000 \n",
" 0.538848 \n",
" 2.917447 \n",
" 1.012053 \n",
" 0.025378 \n",
" 1.757165 \n",
" 0.242835 \n",
" 0.396180 \n",
" 0.164966 \n",
" 0.235891 \n",
" 0.270382 \n",
" 45.461152 \n",
" 0.538848 \n",
" 1.012053 \n",
" -0.0 \n",
" NaN \n",
" 0.742447 \n",
" 0.652914 \n",
" 0.242835 \n",
" 2.0 \n",
" 0.561146 \n",
" N/A \n",
" 36.692839 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc Input_Check Fail Msg classification equation \\\n",
"0 4.572174 True Mg-hastingsite (1b+1c)/2 \n",
"1 NaN False Recalc Total<98.5 Pargasite 1b \n",
"2 6.203253 False Recalc Total>102 Mg-hastingsite 1c+1d \n",
"3 3.228704 False APE >60 Mg-hastingsite 1b \n",
"4 2.761702 False Recalc Total<98.5 Mg-hastingsite 1b \n",
"\n",
" H2O_calc Fe2O3_calc FeO_calc Total_recalc Sum_input \\\n",
"0 1.917780 7.000433 6.810921 99.599134 96.98 \n",
"1 0.000000 0.000000 10.836615 88.016615 89.03 \n",
"2 2.120043 13.095088 4.206872 110.592004 107.16 \n",
"3 1.933630 7.604246 6.257602 100.085478 97.39 \n",
"4 1.794195 4.540852 7.674083 92.629130 90.38 \n",
"\n",
" SiO2_Amp_cat_prop MgO_Amp_cat_prop FeOt_Amp_cat_prop CaO_Amp_cat_prop \\\n",
"0 0.675221 0.323045 0.182474 0.207386 \n",
"1 0.656581 0.280865 0.164936 0.195082 \n",
"2 0.713668 0.353563 0.222559 0.216124 \n",
"3 0.702350 0.336195 0.182334 0.197400 \n",
"4 0.671893 0.307910 0.163683 0.185453 \n",
"\n",
" Al2O3_Amp_cat_prop Na2O_Amp_cat_prop K2O_Amp_cat_prop MnO_Amp_cat_prop \\\n",
"0 0.251469 0.070992 0.019534 0.003665 \n",
"1 0.211846 0.065829 0.015924 0.000000 \n",
"2 0.280107 0.078414 0.025054 0.007612 \n",
"3 0.217730 0.073251 0.020171 0.005498 \n",
"4 0.197330 0.067442 0.017411 0.002678 \n",
"\n",
" TiO2_Amp_cat_prop Cr2O3_Amp_cat_prop F_Amp_cat_prop Cl_Amp_cat_prop \\\n",
"0 0.030664 0.000000 0.0 0.0 \n",
"1 0.023530 0.000000 0.0 0.0 \n",
"2 0.043305 0.000395 0.0 0.0 \n",
"3 0.034419 0.000132 0.0 0.0 \n",
"4 0.028536 0.000000 0.0 0.0 \n",
"\n",
" Si_Amp_13_cat Mg_Amp_13_cat Fet_Amp_13_cat Ca_Amp_13_cat Al_Amp_13_cat \\\n",
"0 5.985442 2.863604 1.617522 1.838356 2.229123 \n",
"1 6.380489 2.729380 1.602808 1.895758 2.058664 \n",
"2 5.722690 2.835117 1.784638 1.733032 2.246096 \n",
"3 6.174890 2.955744 1.603040 1.735493 1.914232 \n",
"4 6.366185 2.917447 1.550901 1.757165 1.869706 \n",
"\n",
" Na_Amp_13_cat K_Amp_13_cat Mn_Amp_13_cat Ti_Amp_13_cat Cr_Amp_13_cat \\\n",
"0 0.629301 0.173157 0.032490 0.271819 0.000000 \n",
"1 0.639707 0.154749 0.000000 0.228659 0.000000 \n",
"2 0.628776 0.200904 0.061042 0.347252 0.003165 \n",
"3 0.644002 0.177338 0.048336 0.302602 0.001157 \n",
"4 0.639015 0.164966 0.025378 0.270382 0.000000 \n",
"\n",
" F_Amp_13_cat Cl_Amp_13_cat cation_sum_Si_Mg Si_T Al_IV_T \\\n",
"0 0.0 0.0 1.466538 5.985442 2.014558 \n",
"1 0.0 0.0 1.337758 6.380489 1.619511 \n",
"2 0.0 0.0 1.621209 5.722690 2.246096 \n",
"3 0.0 0.0 1.478658 6.174890 1.825110 \n",
"4 0.0 0.0 1.372031 6.366185 1.633815 \n",
"\n",
" Ti_T Cr_C Fe3_C Mg_C Fe2_C Mn_C Ca_B \\\n",
"0 0.000000 0.000000 0.777185 2.863604 0.840337 0.032490 1.838356 \n",
"1 0.000000 0.000000 0.137068 2.729380 1.465740 0.000000 1.895758 \n",
"2 0.031214 0.003165 1.315111 2.835117 0.469527 0.061042 1.733032 \n",
"3 0.000000 0.001157 0.837300 2.955744 0.765739 0.048336 1.735493 \n",
"4 0.000000 0.000000 0.538848 2.917447 1.012053 0.025378 1.757165 \n",
"\n",
" Na_B Na_A K_A Al_VI_C Ti_C Charge Fe3_calc \\\n",
"0 0.161644 0.467656 0.173157 0.214565 0.271819 45.222815 0.777185 \n",
"1 0.104242 0.535465 0.154749 0.439153 0.228659 45.862932 0.137068 \n",
"2 0.266968 0.361808 0.200904 0.000000 0.316038 44.684889 1.315111 \n",
"3 0.264507 0.379495 0.177338 0.089122 0.302602 45.162700 0.837300 \n",
"4 0.242835 0.396180 0.164966 0.235891 0.270382 45.461152 0.538848 \n",
"\n",
" Fe2_calc O=F,Cl Total Mgno_Fe2 Mgno_FeT Na_calc B_Sum A_Sum \\\n",
"0 0.840337 -0.0 NaN 0.773124 0.639037 0.161644 2.0 0.640813 \n",
"1 1.465740 0.0 0.0 0.650608 0.630023 0.104242 2.0 0.690215 \n",
"2 0.469527 -0.0 NaN 0.857919 0.613694 0.266968 2.0 0.562712 \n",
"3 0.765739 -0.0 NaN 0.794238 0.648362 0.264507 2.0 0.556833 \n",
"4 1.012053 -0.0 NaN 0.742447 0.652914 0.242835 2.0 0.561146 \n",
"\n",
" class APE \n",
"0 N/A 28.333126 \n",
"1 N/A NaN \n",
"2 N/A 53.674852 \n",
"3 N/A 60.173092 \n",
"4 N/A 36.692839 "
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Ridolfi2021=pt.calculate_amp_only_press(amp_comps=Amps, equationP=\"P_Ridolfi2021\", \n",
" Ridolfi_Filter=False)\n",
"P_Ridolfi2021.head()"
]
},
{
"cell_type": "markdown",
"id": "1d2c5945-28cb-4634-b1e0-fa389f10af66",
"metadata": {},
"source": [
"### Mutch et al. (2016)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "08c12f00-92a5-4e2b-8ee6-7169adbf2728",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" Si_T \n",
" Al_T \n",
" Al_C \n",
" Ti_C \n",
" Mg_C \n",
" Fe3_C \n",
" Fe2_C \n",
" Mn_C \n",
" Cr_C \n",
" Mg_B \n",
" Fe2_B \n",
" Mn_B \n",
" Na_B \n",
" Ca_B \n",
" Na_A \n",
" K_A \n",
" Al_tot \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 6.252577 \n",
" 6.025054 \n",
" 1.974946 \n",
" 0.268940 \n",
" 0.273685 \n",
" 2.882541 \n",
" 0.477503 \n",
" 1.097331 \n",
" 0.000000e+00 \n",
" 0.00000 \n",
" 0.0 \n",
" 0.053392 \n",
" 0.032705 \n",
" 0.063319 \n",
" 1.850584 \n",
" 0.570150 \n",
" 0.174302 \n",
" 2.243886 \n",
" \n",
" \n",
" 1 \n",
" 5.416489 \n",
" 6.393160 \n",
" 1.606840 \n",
" 0.455922 \n",
" 0.229169 \n",
" 2.734787 \n",
" 0.045632 \n",
" 1.534490 \n",
" 0.000000e+00 \n",
" 0.00000 \n",
" 0.0 \n",
" 0.025869 \n",
" 0.000000 \n",
" 0.074545 \n",
" 1.899586 \n",
" 0.566437 \n",
" 0.155056 \n",
" 2.062763 \n",
" \n",
" \n",
" 2 \n",
" 6.380755 \n",
" 5.784745 \n",
" 2.215255 \n",
" 0.055209 \n",
" 0.351103 \n",
" 2.865846 \n",
" 0.830090 \n",
" 0.894551 \n",
" 0.000000e+00 \n",
" 0.00320 \n",
" 0.0 \n",
" 0.079348 \n",
" 0.061703 \n",
" 0.107065 \n",
" 1.751884 \n",
" 0.528533 \n",
" 0.203081 \n",
" 2.270464 \n",
" \n",
" \n",
" 3 \n",
" 4.867111 \n",
" 6.242718 \n",
" 1.757282 \n",
" 0.177987 \n",
" 0.306001 \n",
" 2.988196 \n",
" 0.340790 \n",
" 1.185856 \n",
" -8.881784e-16 \n",
" 0.00117 \n",
" 0.0 \n",
" 0.094001 \n",
" 0.048866 \n",
" 0.102516 \n",
" 1.754616 \n",
" 0.548564 \n",
" 0.179285 \n",
" 1.935268 \n",
" \n",
" \n",
" 4 \n",
" 4.662231 \n",
" 6.420595 \n",
" 1.579405 \n",
" 0.306290 \n",
" 0.272760 \n",
" 2.942367 \n",
" 0.149918 \n",
" 1.328664 \n",
" 0.000000e+00 \n",
" 0.00000 \n",
" 0.0 \n",
" 0.085573 \n",
" 0.025595 \n",
" 0.116590 \n",
" 1.772242 \n",
" 0.527891 \n",
" 0.166375 \n",
" 1.885695 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc Si_T Al_T Al_C Ti_C Mg_C Fe3_C \\\n",
"0 6.252577 6.025054 1.974946 0.268940 0.273685 2.882541 0.477503 \n",
"1 5.416489 6.393160 1.606840 0.455922 0.229169 2.734787 0.045632 \n",
"2 6.380755 5.784745 2.215255 0.055209 0.351103 2.865846 0.830090 \n",
"3 4.867111 6.242718 1.757282 0.177987 0.306001 2.988196 0.340790 \n",
"4 4.662231 6.420595 1.579405 0.306290 0.272760 2.942367 0.149918 \n",
"\n",
" Fe2_C Mn_C Cr_C Mg_B Fe2_B Mn_B Na_B \\\n",
"0 1.097331 0.000000e+00 0.00000 0.0 0.053392 0.032705 0.063319 \n",
"1 1.534490 0.000000e+00 0.00000 0.0 0.025869 0.000000 0.074545 \n",
"2 0.894551 0.000000e+00 0.00320 0.0 0.079348 0.061703 0.107065 \n",
"3 1.185856 -8.881784e-16 0.00117 0.0 0.094001 0.048866 0.102516 \n",
"4 1.328664 0.000000e+00 0.00000 0.0 0.085573 0.025595 0.116590 \n",
"\n",
" Ca_B Na_A K_A Al_tot \n",
"0 1.850584 0.570150 0.174302 2.243886 \n",
"1 1.899586 0.566437 0.155056 2.062763 \n",
"2 1.751884 0.528533 0.203081 2.270464 \n",
"3 1.754616 0.548564 0.179285 1.935268 \n",
"4 1.772242 0.527891 0.166375 1.885695 "
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Mutch2016=pt.calculate_amp_only_press(amp_comps=Amps, equationP=\"P_Mutch2016\")\n",
"P_Mutch2016.head()"
]
},
{
"cell_type": "markdown",
"id": "d6721df3-ccd7-4b7f-a468-330b93ae957b",
"metadata": {},
"source": [
"## Example 2 - Amphibole-only temperatures\n",
"- Unlike pressures, some thermometers are sensitive to P\n",
"- here, we calculate tempeatures for P=5 kbar"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "433d663f-72a2-4433-b815-4cdbbcd31d0c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 1222.719936\n",
"1 1182.392756\n",
"2 1243.702036\n",
"3 1205.288448\n",
"4 1186.384118\n",
"dtype: float64"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Put2016_5kbar=pt.calculate_amp_only_temp(amp_comps=Amps, equationT=\"T_Put2016_eq6\", P=5)\n",
"P_Put2016_5kbar.head()"
]
},
{
"cell_type": "markdown",
"id": "e81e43ef-a874-4ae0-8ede-cc3bbac758af",
"metadata": {},
"source": [
"## Example 3 - Iterating P and T\n",
"- We can also iterate pressure and temperature - most barometers are actually T-insensitive, so it isn't actually iterating, but instead calculates the pressure first, then uses this to calculate the temperature (which does depend on P)."
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "557fd5be-4777-407b-9256-c321cf2ec372",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" SiO2_Amp \n",
" TiO2_Amp \n",
" Al2O3_Amp \n",
" FeOt_Amp \n",
" MnO_Amp \n",
" MgO_Amp \n",
" CaO_Amp \n",
" Na2O_Amp \n",
" K2O_Amp \n",
" Cr2O3_Amp \n",
" F_Amp \n",
" Cl_Amp \n",
" Sample_ID_Amp \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 6.252577 \n",
" 1225.530720 \n",
" 40.57 \n",
" 2.45 \n",
" 12.82 \n",
" 13.11 \n",
" 0.26 \n",
" 13.02 \n",
" 11.63 \n",
" 2.20 \n",
" 0.92 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe1 \n",
" \n",
" \n",
" 1 \n",
" 5.416489 \n",
" 1183.327357 \n",
" 39.45 \n",
" 1.88 \n",
" 10.80 \n",
" 11.85 \n",
" 0.00 \n",
" 11.32 \n",
" 10.94 \n",
" 2.04 \n",
" 0.75 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe2 \n",
" \n",
" \n",
" 2 \n",
" 6.380755 \n",
" 1246.800450 \n",
" 42.88 \n",
" 3.46 \n",
" 14.28 \n",
" 15.99 \n",
" 0.54 \n",
" 14.25 \n",
" 12.12 \n",
" 2.43 \n",
" 1.18 \n",
" 0.03 \n",
" 0.0 \n",
" 0.0 \n",
" probe3 \n",
" \n",
" \n",
" 3 \n",
" 4.867111 \n",
" 1204.990244 \n",
" 42.20 \n",
" 2.75 \n",
" 11.10 \n",
" 13.10 \n",
" 0.39 \n",
" 13.55 \n",
" 11.07 \n",
" 2.27 \n",
" 0.95 \n",
" 0.01 \n",
" 0.0 \n",
" 0.0 \n",
" probe4 \n",
" \n",
" \n",
" 4 \n",
" 4.662231 \n",
" 1185.626165 \n",
" 40.37 \n",
" 2.28 \n",
" 10.06 \n",
" 11.76 \n",
" 0.19 \n",
" 12.41 \n",
" 10.40 \n",
" 2.09 \n",
" 0.82 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe5 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc SiO2_Amp TiO2_Amp Al2O3_Amp FeOt_Amp MnO_Amp \\\n",
"0 6.252577 1225.530720 40.57 2.45 12.82 13.11 0.26 \n",
"1 5.416489 1183.327357 39.45 1.88 10.80 11.85 0.00 \n",
"2 6.380755 1246.800450 42.88 3.46 14.28 15.99 0.54 \n",
"3 4.867111 1204.990244 42.20 2.75 11.10 13.10 0.39 \n",
"4 4.662231 1185.626165 40.37 2.28 10.06 11.76 0.19 \n",
"\n",
" MgO_Amp CaO_Amp Na2O_Amp K2O_Amp Cr2O3_Amp F_Amp Cl_Amp Sample_ID_Amp \n",
"0 13.02 11.63 2.20 0.92 0.00 0.0 0.0 probe1 \n",
"1 11.32 10.94 2.04 0.75 0.00 0.0 0.0 probe2 \n",
"2 14.25 12.12 2.43 1.18 0.03 0.0 0.0 probe3 \n",
"3 13.55 11.07 2.27 0.95 0.01 0.0 0.0 probe4 \n",
"4 12.41 10.40 2.09 0.82 0.00 0.0 0.0 probe5 "
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"PT_Mutch=pt.calculate_amp_only_press_temp(amp_comps=Amps, equationT=\"T_Put2016_eq6\", \n",
" equationP=\"P_Mutch2016\")\n",
"PT_Mutch.head()"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "e37c82b9-2f5f-4139-955b-36ed8a979b06",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" Input_Check \n",
" Fail Msg \n",
" classification \n",
" equation \n",
" SiO2_Amp \n",
" TiO2_Amp \n",
" Al2O3_Amp \n",
" FeOt_Amp \n",
" MnO_Amp \n",
" MgO_Amp \n",
" CaO_Amp \n",
" Na2O_Amp \n",
" K2O_Amp \n",
" Cr2O3_Amp \n",
" F_Amp \n",
" Cl_Amp \n",
" Sample_ID_Amp \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.572174 \n",
" 1214.531361 \n",
" True \n",
" \n",
" Mg-hastingsite \n",
" (1b+1c)/2 \n",
" 40.57 \n",
" 2.45 \n",
" 12.82 \n",
" 13.11 \n",
" 0.26 \n",
" 13.02 \n",
" 11.63 \n",
" 2.20 \n",
" 0.92 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe1 \n",
" \n",
" \n",
" 1 \n",
" NaN \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Pargasite \n",
" 1b \n",
" 39.45 \n",
" 1.88 \n",
" 10.80 \n",
" 11.85 \n",
" 0.00 \n",
" 11.32 \n",
" 10.94 \n",
" 2.04 \n",
" 0.75 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe2 \n",
" \n",
" \n",
" 2 \n",
" NaN \n",
" NaN \n",
" False \n",
" Recalc Total>102 \n",
" Mg-hastingsite \n",
" 1c+1d \n",
" 42.88 \n",
" 3.46 \n",
" 14.28 \n",
" 15.99 \n",
" 0.54 \n",
" 14.25 \n",
" 12.12 \n",
" 2.43 \n",
" 1.18 \n",
" 0.03 \n",
" 0.0 \n",
" 0.0 \n",
" probe3 \n",
" \n",
" \n",
" 3 \n",
" NaN \n",
" NaN \n",
" False \n",
" APE >60 \n",
" Mg-hastingsite \n",
" 1b \n",
" 42.20 \n",
" 2.75 \n",
" 11.10 \n",
" 13.10 \n",
" 0.39 \n",
" 13.55 \n",
" 11.07 \n",
" 2.27 \n",
" 0.95 \n",
" 0.01 \n",
" 0.0 \n",
" 0.0 \n",
" probe4 \n",
" \n",
" \n",
" 4 \n",
" NaN \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Mg-hastingsite \n",
" 1b \n",
" 40.37 \n",
" 2.28 \n",
" 10.06 \n",
" 11.76 \n",
" 0.19 \n",
" 12.41 \n",
" 10.40 \n",
" 2.09 \n",
" 0.82 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe5 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc Input_Check Fail Msg classification \\\n",
"0 4.572174 1214.531361 True Mg-hastingsite \n",
"1 NaN NaN False Recalc Total<98.5 Pargasite \n",
"2 NaN NaN False Recalc Total>102 Mg-hastingsite \n",
"3 NaN NaN False APE >60 Mg-hastingsite \n",
"4 NaN NaN False Recalc Total<98.5 Mg-hastingsite \n",
"\n",
" equation SiO2_Amp TiO2_Amp Al2O3_Amp FeOt_Amp MnO_Amp MgO_Amp \\\n",
"0 (1b+1c)/2 40.57 2.45 12.82 13.11 0.26 13.02 \n",
"1 1b 39.45 1.88 10.80 11.85 0.00 11.32 \n",
"2 1c+1d 42.88 3.46 14.28 15.99 0.54 14.25 \n",
"3 1b 42.20 2.75 11.10 13.10 0.39 13.55 \n",
"4 1b 40.37 2.28 10.06 11.76 0.19 12.41 \n",
"\n",
" CaO_Amp Na2O_Amp K2O_Amp Cr2O3_Amp F_Amp Cl_Amp Sample_ID_Amp \n",
"0 11.63 2.20 0.92 0.00 0.0 0.0 probe1 \n",
"1 10.94 2.04 0.75 0.00 0.0 0.0 probe2 \n",
"2 12.12 2.43 1.18 0.03 0.0 0.0 probe3 \n",
"3 11.07 2.27 0.95 0.01 0.0 0.0 probe4 \n",
"4 10.40 2.09 0.82 0.00 0.0 0.0 probe5 "
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"PT_Ridolfi=pt.calculate_amp_only_press_temp(amp_comps=Amps, equationT=\"T_Ridolfi2012\", \n",
" equationP=\"P_Ridolfi2021\")\n",
"PT_Ridolfi.head()"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "8c71efc6-1926-4292-8d25-2a8403d1707c",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" Input_Check \n",
" Fail Msg \n",
" classification \n",
" equation \n",
" SiO2_Amp \n",
" TiO2_Amp \n",
" Al2O3_Amp \n",
" FeOt_Amp \n",
" MnO_Amp \n",
" MgO_Amp \n",
" CaO_Amp \n",
" Na2O_Amp \n",
" K2O_Amp \n",
" Cr2O3_Amp \n",
" F_Amp \n",
" Cl_Amp \n",
" Sample_ID_Amp \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.572174 \n",
" 1214.531361 \n",
" True \n",
" \n",
" Mg-hastingsite \n",
" (1b+1c)/2 \n",
" 40.57 \n",
" 2.45 \n",
" 12.82 \n",
" 13.11 \n",
" 0.26 \n",
" 13.02 \n",
" 11.63 \n",
" 2.20 \n",
" 0.92 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe1 \n",
" \n",
" \n",
" 1 \n",
" NaN \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Pargasite \n",
" 1b \n",
" 39.45 \n",
" 1.88 \n",
" 10.80 \n",
" 11.85 \n",
" 0.00 \n",
" 11.32 \n",
" 10.94 \n",
" 2.04 \n",
" 0.75 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe2 \n",
" \n",
" \n",
" 2 \n",
" 6.203253 \n",
" 1289.245454 \n",
" False \n",
" Recalc Total>102 \n",
" Mg-hastingsite \n",
" 1c+1d \n",
" 42.88 \n",
" 3.46 \n",
" 14.28 \n",
" 15.99 \n",
" 0.54 \n",
" 14.25 \n",
" 12.12 \n",
" 2.43 \n",
" 1.18 \n",
" 0.03 \n",
" 0.0 \n",
" 0.0 \n",
" probe3 \n",
" \n",
" \n",
" 3 \n",
" 3.228704 \n",
" 1212.306099 \n",
" False \n",
" APE >60 \n",
" Mg-hastingsite \n",
" 1b \n",
" 42.20 \n",
" 2.75 \n",
" 11.10 \n",
" 13.10 \n",
" 0.39 \n",
" 13.55 \n",
" 11.07 \n",
" 2.27 \n",
" 0.95 \n",
" 0.01 \n",
" 0.0 \n",
" 0.0 \n",
" probe4 \n",
" \n",
" \n",
" 4 \n",
" 2.761702 \n",
" 1165.913034 \n",
" False \n",
" Recalc Total<98.5 \n",
" Mg-hastingsite \n",
" 1b \n",
" 40.37 \n",
" 2.28 \n",
" 10.06 \n",
" 11.76 \n",
" 0.19 \n",
" 12.41 \n",
" 10.40 \n",
" 2.09 \n",
" 0.82 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe5 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc Input_Check Fail Msg classification \\\n",
"0 4.572174 1214.531361 True Mg-hastingsite \n",
"1 NaN NaN False Recalc Total<98.5 Pargasite \n",
"2 6.203253 1289.245454 False Recalc Total>102 Mg-hastingsite \n",
"3 3.228704 1212.306099 False APE >60 Mg-hastingsite \n",
"4 2.761702 1165.913034 False Recalc Total<98.5 Mg-hastingsite \n",
"\n",
" equation SiO2_Amp TiO2_Amp Al2O3_Amp FeOt_Amp MnO_Amp MgO_Amp \\\n",
"0 (1b+1c)/2 40.57 2.45 12.82 13.11 0.26 13.02 \n",
"1 1b 39.45 1.88 10.80 11.85 0.00 11.32 \n",
"2 1c+1d 42.88 3.46 14.28 15.99 0.54 14.25 \n",
"3 1b 42.20 2.75 11.10 13.10 0.39 13.55 \n",
"4 1b 40.37 2.28 10.06 11.76 0.19 12.41 \n",
"\n",
" CaO_Amp Na2O_Amp K2O_Amp Cr2O3_Amp F_Amp Cl_Amp Sample_ID_Amp \n",
"0 11.63 2.20 0.92 0.00 0.0 0.0 probe1 \n",
"1 10.94 2.04 0.75 0.00 0.0 0.0 probe2 \n",
"2 12.12 2.43 1.18 0.03 0.0 0.0 probe3 \n",
"3 11.07 2.27 0.95 0.01 0.0 0.0 probe4 \n",
"4 10.40 2.09 0.82 0.00 0.0 0.0 probe5 "
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"PT_Ridolfi=pt.calculate_amp_only_press_temp(amp_comps=Amps, equationT=\"T_Ridolfi2012\", \n",
" equationP=\"P_Ridolfi2021\", Ridolfi_Filter=False)\n",
"PT_Ridolfi.head()"
]
},
{
"cell_type": "markdown",
"id": "9a054fdc-b3c7-4623-a82c-0c5c2c2e1f66",
"metadata": {},
"source": [
"## Example 4 - Amphibole-liquid thermometry\n",
"- as for Amp-only, except also specify liquid composition\n",
"- help function details your options"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "002185cf-9a85-4652-a853-6cd3de0e2814",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Help on function calculate_amp_liq_temp in module Thermobar.amphibole:\n",
"\n",
"calculate_amp_liq_temp(*, amp_comps=None, liq_comps=None, meltmatch=None, equationT=None, P=None, H2O_Liq=None, eq_tests=False)\n",
" Amphibole-liquid thermometers. Returns temperature in Kelvin.\n",
" \n",
" Parameters\n",
" -------\n",
" \n",
" amp_comps: pandas DataFrame\n",
" amphibole compositions (SiO2_Amp, TiO2_Amp etc.)\n",
" \n",
" liq_comps: pandas DataFrame\n",
" liquid compositions (SiO2_Liq, TiO2_Liq etc.)\n",
" \n",
" equationT: str\n",
" T_Put2016_eq4a_amp_sat (P-independent, H2O-dep through hydrous fractions)\n",
" T_Put2016_eq4b (P-independent, H2O-dep)\n",
" T_Put2016_eq9 (P-independent, H2O-dep through hydrous fractions)\n",
" \n",
" P: float, int, pandas.Series, str (\"Solve\")\n",
" Pressure in kbar\n",
" Only needed for P-sensitive thermometers.\n",
" If enter P=\"Solve\", returns a partial function\n",
" Else, enter an integer, float, or panda series\n",
" \n",
" eq_tests: bool. Default False\n",
" If True, also calcualtes Kd Fe-Mg, which Putirka (2016) suggest\n",
" as an equilibrium test.\n",
" \n",
" \n",
" Returns\n",
" -------\n",
" pandas.core.series.Series\n",
" Temperature in Kelvin\n",
"\n"
]
}
],
"source": [
"help(pt.calculate_amp_liq_temp)"
]
},
{
"cell_type": "markdown",
"id": "70aad809-9dbd-4445-b5d5-22af6258a564",
"metadata": {},
"source": [
"### Using T_Put2016_eq4a_amp_sat. \n",
"- Note, this calculates the temperature at which a liquid is saturated in amphibole, not the temperature of the liquid"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "811c2b0f-0b09-42a4-8cac-457ce62a6522",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 1228.795223\n",
"1 1226.300156\n",
"2 1221.844038\n",
"3 1233.595436\n",
"4 1233.106477\n",
"dtype: float64"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq4a_T=pt.calculate_amp_liq_temp(liq_comps=Liqs, amp_comps=Amps, equationT=\"T_Put2016_eq4a_amp_sat\")\n",
"eq4a_T.head()"
]
},
{
"cell_type": "markdown",
"id": "55d55fc3-5a7b-4173-94f2-fa1d504e803b",
"metadata": {},
"source": [
"### eq_tests=True\n",
"- As for other functions, you can also specify eq_tests=True, to get the Kd Fe-Mg value Putirka suggest may be a useful equilibrium test (+0.28+-0.11)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "20146a0c-a434-4df8-9274-335f587a26b5",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" T_K_calc \n",
" Kd-Fe-Mg \n",
" Eq Putirka 2016? \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 1228.795223 \n",
" 0.269594 \n",
" Y \n",
" \n",
" \n",
" 1 \n",
" 1226.300156 \n",
" 0.269763 \n",
" Y \n",
" \n",
" \n",
" 2 \n",
" 1221.844038 \n",
" 0.269914 \n",
" Y \n",
" \n",
" \n",
" 3 \n",
" 1233.595436 \n",
" 0.269310 \n",
" Y \n",
" \n",
" \n",
" 4 \n",
" 1233.106477 \n",
" 0.269070 \n",
" Y \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" T_K_calc Kd-Fe-Mg Eq Putirka 2016?\n",
"0 1228.795223 0.269594 Y\n",
"1 1226.300156 0.269763 Y\n",
"2 1221.844038 0.269914 Y\n",
"3 1233.595436 0.269310 Y\n",
"4 1233.106477 0.269070 Y"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq4a_T_EqTest=pt.calculate_amp_liq_temp(liq_comps=Liqs, amp_comps=Amps, equationT=\"T_Put2016_eq4a_amp_sat\", \n",
" eq_tests=True)\n",
"eq4a_T_EqTest.head()"
]
},
{
"cell_type": "markdown",
"id": "fde4ae25-ee5e-4f7c-8fa6-f0d0098fe4c9",
"metadata": {},
"source": [
"### Overwriting H2O_Liq.\n",
"- These equations are a little sensitive to melt H2O, because they are parameterized in terms of hydrous fractions, and some contain a separate T term too. You can overwrite the H2O_Liq value in the entered spreadsheet"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "58e27bd3-a55c-4a2a-a60a-33ee0baf9b7e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 1229.395340\n",
"1 1229.204834\n",
"2 1228.025620\n",
"3 1231.299927\n",
"4 1229.196688\n",
"dtype: float64"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq4a_T_1H2O=pt.calculate_amp_liq_temp(liq_comps=Liqs, amp_comps=Amps, equationT=\"T_Put2016_eq4a_amp_sat\", H2O_Liq=1)\n",
"eq4a_T_1H2O.head()"
]
},
{
"cell_type": "markdown",
"id": "111bbfa3-e94d-4b41-aa5c-2ff90fcd6e28",
"metadata": {},
"source": [
"## Example 5 - Amphibole-Liquid barometry"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "02f1baca-caf9-4e5d-9815-fe80c7b38a15",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 4.328014\n",
"1 2.960536\n",
"2 5.182170\n",
"3 3.167717\n",
"4 2.728212\n",
"dtype: float64"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq7a_T_1H2O=pt.calculate_amp_liq_press(liq_comps=Liqs, amp_comps=Amps, equationP=\"P_Put2016_eq7a\", H2O_Liq=1)\n",
"eq7a_T_1H2O.head()"
]
},
{
"cell_type": "markdown",
"id": "0aa2fda8-70f1-4510-8f73-c6747f980710",
"metadata": {},
"source": [
"## Example 6 - Iterating equations for Pressure and temperature for amphibole liquid\n",
"- The function prints to tell you actually you selected 2 functions independent of P and T, so only 1 iterative step is being done."
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "b8c90d28-e153-4d6e-9ef7-920c7d2a39cf",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Youve selected a P-independent function\n",
"Youve selected a T-independent function\n"
]
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 6.168027 \n",
" 1202.507284 \n",
" \n",
" \n",
" 1 \n",
" 4.801223 \n",
" 1189.376371 \n",
" \n",
" \n",
" 2 \n",
" 7.023825 \n",
" 1185.097051 \n",
" \n",
" \n",
" 3 \n",
" 5.006890 \n",
" 1216.975219 \n",
" \n",
" \n",
" 4 \n",
" 4.566914 \n",
" 1219.944334 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc\n",
"0 6.168027 1202.507284\n",
"1 4.801223 1189.376371\n",
"2 7.023825 1185.097051\n",
"3 5.006890 1216.975219\n",
"4 4.566914 1219.944334"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq7a_eq4b=pt.calculate_amp_liq_press_temp(liq_comps=Liqs, amp_comps=Amps, equationP=\"P_Put2016_eq7a\", \n",
" equationT=\"T_Put2016_eq4b\")\n",
"eq7a_eq4b.head()"
]
},
{
"cell_type": "markdown",
"id": "6530d3c9-a1c8-4ceb-86a6-00326cdb95d3",
"metadata": {},
"source": [
"### Both are actually pretty sensitive to water. "
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "06e19ef2-a314-4fef-9c93-d9786e6b8864",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Youve selected a P-independent function\n",
"Youve selected a T-independent function\n"
]
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.328014 \n",
" 1192.934086 \n",
" \n",
" \n",
" 1 \n",
" 2.960536 \n",
" 1180.068037 \n",
" \n",
" \n",
" 2 \n",
" 5.182170 \n",
" 1175.871630 \n",
" \n",
" \n",
" 3 \n",
" 3.167717 \n",
" 1207.106379 \n",
" \n",
" \n",
" 4 \n",
" 2.728212 \n",
" 1210.015416 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc\n",
"0 4.328014 1192.934086\n",
"1 2.960536 1180.068037\n",
"2 5.182170 1175.871630\n",
"3 3.167717 1207.106379\n",
"4 2.728212 1210.015416"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq7a_eq4b_1H2O=pt.calculate_amp_liq_press_temp(liq_comps=Liqs, amp_comps=Amps, equationP=\"P_Put2016_eq7a\", \n",
" equationT=\"T_Put2016_eq4b\", H2O_Liq=1)\n",
"eq7a_eq4b_1H2O.head()"
]
},
{
"cell_type": "markdown",
"id": "5a71266f-b3df-4c25-81b0-39740ad5c697",
"metadata": {},
"source": [
"### can also specify eq_tests=True, and it calculates Kd Fe-Mg, and then classifies within this is within the suggested range of Putirka (2008)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "aff62dc7-c8cb-41e7-b763-578c29da1007",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Youve selected a P-independent function\n",
"Youve selected a T-independent function\n"
]
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" Kd-Fe-Mg \n",
" Eq Putirka 2016? \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.328014 \n",
" 1192.934086 \n",
" 0.269594 \n",
" Y \n",
" \n",
" \n",
" 1 \n",
" 2.960536 \n",
" 1180.068037 \n",
" 0.269763 \n",
" Y \n",
" \n",
" \n",
" 2 \n",
" 5.182170 \n",
" 1175.871630 \n",
" 0.269914 \n",
" Y \n",
" \n",
" \n",
" 3 \n",
" 3.167717 \n",
" 1207.106379 \n",
" 0.269310 \n",
" Y \n",
" \n",
" \n",
" 4 \n",
" 2.728212 \n",
" 1210.015416 \n",
" 0.269070 \n",
" Y \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc Kd-Fe-Mg Eq Putirka 2016?\n",
"0 4.328014 1192.934086 0.269594 Y\n",
"1 2.960536 1180.068037 0.269763 Y\n",
"2 5.182170 1175.871630 0.269914 Y\n",
"3 3.167717 1207.106379 0.269310 Y\n",
"4 2.728212 1210.015416 0.269070 Y"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"eq7a_eq4b_1H2O_EqTests=pt.calculate_amp_liq_press_temp(liq_comps=Liqs, amp_comps=Amps, equationP=\"P_Put2016_eq7a\", \n",
" equationT=\"T_Put2016_eq4b\", H2O_Liq=1, eq_tests=True)\n",
"eq7a_eq4b_1H2O_EqTests.head()"
]
},
{
"cell_type": "markdown",
"id": "e4cdb7af-d3bc-4437-814c-0c00976bc2a1",
"metadata": {},
"source": [
"## Example 8 - Calculating melt compositions from amphibole compositions.\n",
"- You need to specify amphibole compositions.\n",
"- For some equations, e.g., equation 3 and 5 from Zhang, Putirka (2016) SiO2 content you also need to specify temperature. \n",
"- If you don't, it returns a warning telling you that you won't get results for 3 equations unless you enter a T."
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "ca1c3fed-7097-498e-b94b-4a8959ea87e6",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"c:\\users\\penny\\onedrive - oregon state university\\postdoc\\pymme\\mybarometers\\thermobar_outer\\src\\Thermobar\\amphibole.py:229: UserWarning: You must enter a value for T in Kelvin to get results from equation3 and 5 from Zhang, and SiO2 from Putrka (2016)\n",
" w.warn('You must enter a value for T in Kelvin to get results from equation3 and 5 from Zhang, and SiO2 from Putrka (2016)')\n"
]
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" SiO2_Eq1_Zhang17 \n",
" SiO2_Eq2_Zhang17 \n",
" SiO2_Eq4_Zhang17 \n",
" TiO2_Eq6_Zhang17 \n",
" FeO_Eq7_Zhang17 \n",
" MgO_Eq9_Zhang17 \n",
" CaO_Eq10_Zhang17 \n",
" CaO_Eq11_Zhang17 \n",
" K2O_Eq12_Zhang17 \n",
" K2O_Eq13_Zhang17 \n",
" Al2O3_Eq14_Zhang17 \n",
" H2O_Ridolfi21 \n",
" deltaNNO_Ridolfi21 \n",
" Si_Amp_cat_23ox \n",
" Mg_Amp_cat_23ox \n",
" Fet_Amp_cat_23ox \n",
" Ca_Amp_cat_23ox \n",
" Al_Amp_cat_23ox \n",
" Na_Amp_cat_23ox \n",
" K_Amp_cat_23ox \n",
" Mn_Amp_cat_23ox \n",
" Ti_Amp_cat_23ox \n",
" Cr_Amp_cat_23ox \n",
" oxy_renorm_factor \n",
" cation_sum_Si_Mg \n",
" cation_sum_Si_Ca \n",
" cation_sum_All \n",
" Mgno_Amp \n",
" Si_T \n",
" Al_T \n",
" Al_C \n",
" Ti_C \n",
" Mg_C \n",
" Fe_C \n",
" Mn_C \n",
" Cr_C \n",
" Mg_B \n",
" Fe_B \n",
" Mn_B \n",
" Na_B \n",
" Ca_B \n",
" Na_A \n",
" K_A \n",
" Sum_T \n",
" Sum_C \n",
" Sum_B \n",
" Sum_A \n",
" factor_8SiAl \n",
" factor_15eK \n",
" factor_13eCNK \n",
" All ferric \n",
" 8Si_Min \n",
" 16CAT_Min \n",
" 15eNK_Min \n",
" Min_MinFactor \n",
" Min_factor \n",
" Max_factor \n",
" Av_factor \n",
" Si_T_ideal \n",
" Al_IV_T_ideal \n",
" Ti_T_ideal \n",
" Al_VI_C_ideal \n",
" Ti_C_ideal \n",
" Cr_C_ideal \n",
" Fe3_C_ideal \n",
" Mg_C_ideal \n",
" Fe2_C_ideal \n",
" Mn_C_ideal \n",
" Mg_B_ideal \n",
" Fe2_B_ideal \n",
" Mn_B_ideal \n",
" Ca_B_ideal \n",
" Na_B_ideal \n",
" Na_A_ideal \n",
" K_A_ideal \n",
" FeO_Eq8_Zhang17 \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 59.333654 \n",
" 60.645146 \n",
" 56.117080 \n",
" 0.685874 \n",
" 5.586412 \n",
" 2.128936 \n",
" 6.437242 \n",
" 4.935349 \n",
" 2.378780 \n",
" 2.334718 \n",
" 17.886312 \n",
" 6.221705 \n",
" 2.781062 \n",
" 6.088253 \n",
" 2.912777 \n",
" 1.645305 \n",
" 1.869995 \n",
" 2.267423 \n",
" 0.640114 \n",
" 0.176130 \n",
" 0.033048 \n",
" 0.276556 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.223362 \n",
" 15.093357 \n",
" 15.909602 \n",
" 0.639036 \n",
" 6.088253 \n",
" 1.911747 \n",
" 0.355676 \n",
" 0.276556 \n",
" 2.912777 \n",
" 1.454991 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.190314 \n",
" 0.033048 \n",
" 0.000000 \n",
" 1.869995 \n",
" 0.640114 \n",
" 0.176130 \n",
" 8.0 \n",
" 4.723444 \n",
" 2.093357 \n",
" 0.816245 \n",
" 0.957433 \n",
" 0.953381 \n",
" 0.861306 \n",
" 0.965468 \n",
" 1.314006 \n",
" 1.005682 \n",
" 0.993815 \n",
" 0.993815 \n",
" 0.993815 \n",
" 0.965468 \n",
" 0.979641 \n",
" 5.964303 \n",
" 2.035697 \n",
" 0 \n",
" 0.185564 \n",
" 0.270926 \n",
" 0.000000 \n",
" 0.936506 \n",
" 2.853476 \n",
" 0.675302 \n",
" 0.032375 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.831924 \n",
" 0.168076 \n",
" 0.459007 \n",
" 0.172544 \n",
" 5.949181 \n",
" \n",
" \n",
" 1 \n",
" 70.902522 \n",
" 70.515408 \n",
" 66.223315 \n",
" 0.273132 \n",
" 2.250664 \n",
" 0.846023 \n",
" 3.285068 \n",
" 3.603327 \n",
" 1.974113 \n",
" 2.730521 \n",
" 17.962779 \n",
" 9.282463 \n",
" 1.956064 \n",
" 6.399508 \n",
" 2.737503 \n",
" 1.607585 \n",
" 1.901472 \n",
" 2.064811 \n",
" 0.641619 \n",
" 0.155210 \n",
" 0.000000 \n",
" 0.229397 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.038803 \n",
" 14.940276 \n",
" 15.737104 \n",
" 0.630022 \n",
" 6.399508 \n",
" 1.600492 \n",
" 0.464319 \n",
" 0.229397 \n",
" 2.737503 \n",
" 1.568782 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.038803 \n",
" 0.000000 \n",
" 0.059724 \n",
" 1.901472 \n",
" 0.581894 \n",
" 0.155210 \n",
" 8.0 \n",
" 4.770603 \n",
" 2.000000 \n",
" 0.737104 \n",
" 0.945144 \n",
" 0.962656 \n",
" 0.870131 \n",
" 0.966233 \n",
" 1.250096 \n",
" 1.016705 \n",
" 1.003998 \n",
" 1.003998 \n",
" 1.000000 \n",
" 0.966233 \n",
" 0.983116 \n",
" 6.291461 \n",
" 1.708539 \n",
" 0 \n",
" 0.321410 \n",
" 0.225524 \n",
" 0.000000 \n",
" 0.776650 \n",
" 2.691284 \n",
" 0.803792 \n",
" 0.000000 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.869369 \n",
" 0.130631 \n",
" 0.500154 \n",
" 0.152589 \n",
" 2.686836 \n",
" \n",
" \n",
" 2 \n",
" 51.363763 \n",
" 52.107144 \n",
" 50.932554 \n",
" 1.245742 \n",
" 11.372546 \n",
" 3.023436 \n",
" 7.405270 \n",
" 5.178338 \n",
" 2.916734 \n",
" 2.438641 \n",
" 17.480366 \n",
" 4.148120 \n",
" 2.869497 \n",
" 5.891052 \n",
" 2.918512 \n",
" 1.837141 \n",
" 1.784078 \n",
" 2.312188 \n",
" 0.647279 \n",
" 0.206813 \n",
" 0.062837 \n",
" 0.357556 \n",
" 0.003258 \n",
" 0.0 \n",
" 13.382545 \n",
" 15.166623 \n",
" 16.020715 \n",
" 0.613693 \n",
" 5.891052 \n",
" 2.108948 \n",
" 0.203240 \n",
" 0.357556 \n",
" 2.918512 \n",
" 1.517434 \n",
" 0 \n",
" 0.003258 \n",
" 0.0 \n",
" 0.319708 \n",
" 0.062837 \n",
" 0.000000 \n",
" 1.784078 \n",
" 0.647279 \n",
" 0.206813 \n",
" 8.0 \n",
" 4.642444 \n",
" 2.166623 \n",
" 0.854092 \n",
" 0.975224 \n",
" 0.948533 \n",
" 0.857145 \n",
" 0.961596 \n",
" 1.357992 \n",
" 0.998707 \n",
" 0.989014 \n",
" 0.989014 \n",
" 0.989014 \n",
" 0.975224 \n",
" 0.982119 \n",
" 5.785715 \n",
" 2.214285 \n",
" 0 \n",
" 0.056559 \n",
" 0.351162 \n",
" 0.003200 \n",
" 0.822521 \n",
" 2.866326 \n",
" 0.900231 \n",
" 0.000000 \n",
" 0 \n",
" 0.08154 \n",
" 0.061714 \n",
" 1.752177 \n",
" 0.104570 \n",
" 0.531135 \n",
" 0.203115 \n",
" 9.665180 \n",
" \n",
" \n",
" 3 \n",
" 60.687647 \n",
" 62.268993 \n",
" 61.703644 \n",
" 0.690791 \n",
" 4.614921 \n",
" 1.239917 \n",
" 5.309611 \n",
" 3.706322 \n",
" 3.330558 \n",
" 2.619149 \n",
" 16.370036 \n",
" 4.303575 \n",
" 2.046019 \n",
" 6.289313 \n",
" 3.010500 \n",
" 1.632744 \n",
" 1.767712 \n",
" 1.949713 \n",
" 0.655939 \n",
" 0.180623 \n",
" 0.049231 \n",
" 0.308285 \n",
" 0.001178 \n",
" 0.0 \n",
" 13.240963 \n",
" 15.008675 \n",
" 15.845238 \n",
" 0.648361 \n",
" 6.289313 \n",
" 1.710687 \n",
" 0.239025 \n",
" 0.308285 \n",
" 3.010500 \n",
" 1.441011 \n",
" 0 \n",
" 0.001178 \n",
" 0.0 \n",
" 0.191732 \n",
" 0.049231 \n",
" 0.000000 \n",
" 1.767712 \n",
" 0.655939 \n",
" 0.180623 \n",
" 8.0 \n",
" 4.691715 \n",
" 2.008675 \n",
" 0.836562 \n",
" 0.970989 \n",
" 0.957572 \n",
" 0.866166 \n",
" 0.965722 \n",
" 1.271999 \n",
" 1.009767 \n",
" 0.999422 \n",
" 0.999422 \n",
" 0.999422 \n",
" 0.970989 \n",
" 0.985205 \n",
" 6.196264 \n",
" 1.803736 \n",
" 0 \n",
" 0.117131 \n",
" 0.303724 \n",
" 0.001161 \n",
" 0.680556 \n",
" 2.965960 \n",
" 0.928032 \n",
" 0.003435 \n",
" 0 \n",
" 0.00000 \n",
" 0.045067 \n",
" 1.741559 \n",
" 0.213373 \n",
" 0.432862 \n",
" 0.177951 \n",
" 4.298402 \n",
" \n",
" \n",
" 4 \n",
" 66.494122 \n",
" 68.100781 \n",
" 65.870371 \n",
" 0.454822 \n",
" 2.915419 \n",
" 0.863156 \n",
" 4.323992 \n",
" 3.348260 \n",
" 2.908677 \n",
" 2.620235 \n",
" 16.658488 \n",
" 5.642425 \n",
" 1.799559 \n",
" 6.441589 \n",
" 2.951988 \n",
" 1.569270 \n",
" 1.778037 \n",
" 1.891861 \n",
" 0.646588 \n",
" 0.166919 \n",
" 0.025679 \n",
" 0.273652 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.154038 \n",
" 14.932075 \n",
" 15.745582 \n",
" 0.652913 \n",
" 6.441589 \n",
" 1.558411 \n",
" 0.333450 \n",
" 0.273652 \n",
" 2.951988 \n",
" 1.440910 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.128359 \n",
" 0.025679 \n",
" 0.067925 \n",
" 1.778037 \n",
" 0.578663 \n",
" 0.166919 \n",
" 8.0 \n",
" 4.726348 \n",
" 2.000000 \n",
" 0.745582 \n",
" 0.959987 \n",
" 0.962855 \n",
" 0.870609 \n",
" 0.967011 \n",
" 1.241930 \n",
" 1.016158 \n",
" 1.004549 \n",
" 1.004549 \n",
" 1.000000 \n",
" 0.967011 \n",
" 0.983505 \n",
" 6.335338 \n",
" 1.664662 \n",
" 0 \n",
" 0.195993 \n",
" 0.269138 \n",
" 0.000000 \n",
" 0.758750 \n",
" 2.903296 \n",
" 0.784635 \n",
" 0.025255 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.748709 \n",
" 0.251291 \n",
" 0.384632 \n",
" 0.164166 \n",
" 3.109003 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Eq1_Zhang17 SiO2_Eq2_Zhang17 SiO2_Eq4_Zhang17 TiO2_Eq6_Zhang17 \\\n",
"0 59.333654 60.645146 56.117080 0.685874 \n",
"1 70.902522 70.515408 66.223315 0.273132 \n",
"2 51.363763 52.107144 50.932554 1.245742 \n",
"3 60.687647 62.268993 61.703644 0.690791 \n",
"4 66.494122 68.100781 65.870371 0.454822 \n",
"\n",
" FeO_Eq7_Zhang17 MgO_Eq9_Zhang17 CaO_Eq10_Zhang17 CaO_Eq11_Zhang17 \\\n",
"0 5.586412 2.128936 6.437242 4.935349 \n",
"1 2.250664 0.846023 3.285068 3.603327 \n",
"2 11.372546 3.023436 7.405270 5.178338 \n",
"3 4.614921 1.239917 5.309611 3.706322 \n",
"4 2.915419 0.863156 4.323992 3.348260 \n",
"\n",
" K2O_Eq12_Zhang17 K2O_Eq13_Zhang17 Al2O3_Eq14_Zhang17 H2O_Ridolfi21 \\\n",
"0 2.378780 2.334718 17.886312 6.221705 \n",
"1 1.974113 2.730521 17.962779 9.282463 \n",
"2 2.916734 2.438641 17.480366 4.148120 \n",
"3 3.330558 2.619149 16.370036 4.303575 \n",
"4 2.908677 2.620235 16.658488 5.642425 \n",
"\n",
" deltaNNO_Ridolfi21 Si_Amp_cat_23ox Mg_Amp_cat_23ox Fet_Amp_cat_23ox \\\n",
"0 2.781062 6.088253 2.912777 1.645305 \n",
"1 1.956064 6.399508 2.737503 1.607585 \n",
"2 2.869497 5.891052 2.918512 1.837141 \n",
"3 2.046019 6.289313 3.010500 1.632744 \n",
"4 1.799559 6.441589 2.951988 1.569270 \n",
"\n",
" Ca_Amp_cat_23ox Al_Amp_cat_23ox Na_Amp_cat_23ox K_Amp_cat_23ox \\\n",
"0 1.869995 2.267423 0.640114 0.176130 \n",
"1 1.901472 2.064811 0.641619 0.155210 \n",
"2 1.784078 2.312188 0.647279 0.206813 \n",
"3 1.767712 1.949713 0.655939 0.180623 \n",
"4 1.778037 1.891861 0.646588 0.166919 \n",
"\n",
" Mn_Amp_cat_23ox Ti_Amp_cat_23ox Cr_Amp_cat_23ox oxy_renorm_factor \\\n",
"0 0.033048 0.276556 0.000000 0.0 \n",
"1 0.000000 0.229397 0.000000 0.0 \n",
"2 0.062837 0.357556 0.003258 0.0 \n",
"3 0.049231 0.308285 0.001178 0.0 \n",
"4 0.025679 0.273652 0.000000 0.0 \n",
"\n",
" cation_sum_Si_Mg cation_sum_Si_Ca cation_sum_All Mgno_Amp Si_T \\\n",
"0 13.223362 15.093357 15.909602 0.639036 6.088253 \n",
"1 13.038803 14.940276 15.737104 0.630022 6.399508 \n",
"2 13.382545 15.166623 16.020715 0.613693 5.891052 \n",
"3 13.240963 15.008675 15.845238 0.648361 6.289313 \n",
"4 13.154038 14.932075 15.745582 0.652913 6.441589 \n",
"\n",
" Al_T Al_C Ti_C Mg_C Fe_C Mn_C Cr_C Mg_B \\\n",
"0 1.911747 0.355676 0.276556 2.912777 1.454991 0 0.000000 0.0 \n",
"1 1.600492 0.464319 0.229397 2.737503 1.568782 0 0.000000 0.0 \n",
"2 2.108948 0.203240 0.357556 2.918512 1.517434 0 0.003258 0.0 \n",
"3 1.710687 0.239025 0.308285 3.010500 1.441011 0 0.001178 0.0 \n",
"4 1.558411 0.333450 0.273652 2.951988 1.440910 0 0.000000 0.0 \n",
"\n",
" Fe_B Mn_B Na_B Ca_B Na_A K_A Sum_T \\\n",
"0 0.190314 0.033048 0.000000 1.869995 0.640114 0.176130 8.0 \n",
"1 0.038803 0.000000 0.059724 1.901472 0.581894 0.155210 8.0 \n",
"2 0.319708 0.062837 0.000000 1.784078 0.647279 0.206813 8.0 \n",
"3 0.191732 0.049231 0.000000 1.767712 0.655939 0.180623 8.0 \n",
"4 0.128359 0.025679 0.067925 1.778037 0.578663 0.166919 8.0 \n",
"\n",
" Sum_C Sum_B Sum_A factor_8SiAl factor_15eK factor_13eCNK \\\n",
"0 4.723444 2.093357 0.816245 0.957433 0.953381 0.861306 \n",
"1 4.770603 2.000000 0.737104 0.945144 0.962656 0.870131 \n",
"2 4.642444 2.166623 0.854092 0.975224 0.948533 0.857145 \n",
"3 4.691715 2.008675 0.836562 0.970989 0.957572 0.866166 \n",
"4 4.726348 2.000000 0.745582 0.959987 0.962855 0.870609 \n",
"\n",
" All ferric 8Si_Min 16CAT_Min 15eNK_Min Min_MinFactor Min_factor \\\n",
"0 0.965468 1.314006 1.005682 0.993815 0.993815 0.993815 \n",
"1 0.966233 1.250096 1.016705 1.003998 1.003998 1.000000 \n",
"2 0.961596 1.357992 0.998707 0.989014 0.989014 0.989014 \n",
"3 0.965722 1.271999 1.009767 0.999422 0.999422 0.999422 \n",
"4 0.967011 1.241930 1.016158 1.004549 1.004549 1.000000 \n",
"\n",
" Max_factor Av_factor Si_T_ideal Al_IV_T_ideal Ti_T_ideal \\\n",
"0 0.965468 0.979641 5.964303 2.035697 0 \n",
"1 0.966233 0.983116 6.291461 1.708539 0 \n",
"2 0.975224 0.982119 5.785715 2.214285 0 \n",
"3 0.970989 0.985205 6.196264 1.803736 0 \n",
"4 0.967011 0.983505 6.335338 1.664662 0 \n",
"\n",
" Al_VI_C_ideal Ti_C_ideal Cr_C_ideal Fe3_C_ideal Mg_C_ideal \\\n",
"0 0.185564 0.270926 0.000000 0.936506 2.853476 \n",
"1 0.321410 0.225524 0.000000 0.776650 2.691284 \n",
"2 0.056559 0.351162 0.003200 0.822521 2.866326 \n",
"3 0.117131 0.303724 0.001161 0.680556 2.965960 \n",
"4 0.195993 0.269138 0.000000 0.758750 2.903296 \n",
"\n",
" Fe2_C_ideal Mn_C_ideal Mg_B_ideal Fe2_B_ideal Mn_B_ideal Ca_B_ideal \\\n",
"0 0.675302 0.032375 0 0.00000 0.000000 1.831924 \n",
"1 0.803792 0.000000 0 0.00000 0.000000 1.869369 \n",
"2 0.900231 0.000000 0 0.08154 0.061714 1.752177 \n",
"3 0.928032 0.003435 0 0.00000 0.045067 1.741559 \n",
"4 0.784635 0.025255 0 0.00000 0.000000 1.748709 \n",
"\n",
" Na_B_ideal Na_A_ideal K_A_ideal FeO_Eq8_Zhang17 \n",
"0 0.168076 0.459007 0.172544 5.949181 \n",
"1 0.130631 0.500154 0.152589 2.686836 \n",
"2 0.104570 0.531135 0.203115 9.665180 \n",
"3 0.213373 0.432862 0.177951 4.298402 \n",
"4 0.251291 0.384632 0.164166 3.109003 "
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Melt_Comps=pt.calculate_amp_only_melt_comps(amp_comps=Amps)\n",
"Melt_Comps.head()"
]
},
{
"cell_type": "markdown",
"id": "cb8cb43f-e9b0-499e-bcda-73b44968ab89",
"metadata": {},
"source": [
"- Calculations at a fixed temperature"
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "2c92f3f4-6217-40f4-885e-570cd6923062",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" SiO2_Eq10_Put2016 \n",
" SiO2_Eq1_Zhang17 \n",
" SiO2_Eq2_Zhang17 \n",
" SiO2_Eq4_Zhang17 \n",
" TiO2_Eq6_Zhang17 \n",
" SiO2_Eq3_Zhang17 \n",
" FeO_Eq7_Zhang17 \n",
" TiO2_Eq5_Zhang17 \n",
" MgO_Eq9_Zhang17 \n",
" CaO_Eq10_Zhang17 \n",
" CaO_Eq11_Zhang17 \n",
" K2O_Eq12_Zhang17 \n",
" K2O_Eq13_Zhang17 \n",
" Al2O3_Eq14_Zhang17 \n",
" H2O_Ridolfi21 \n",
" deltaNNO_Ridolfi21 \n",
" Si_Amp_cat_23ox \n",
" Mg_Amp_cat_23ox \n",
" Fet_Amp_cat_23ox \n",
" Ca_Amp_cat_23ox \n",
" Al_Amp_cat_23ox \n",
" Na_Amp_cat_23ox \n",
" K_Amp_cat_23ox \n",
" Mn_Amp_cat_23ox \n",
" Ti_Amp_cat_23ox \n",
" Cr_Amp_cat_23ox \n",
" oxy_renorm_factor \n",
" cation_sum_Si_Mg \n",
" cation_sum_Si_Ca \n",
" cation_sum_All \n",
" Mgno_Amp \n",
" Si_T \n",
" Al_T \n",
" Al_C \n",
" Ti_C \n",
" Mg_C \n",
" Fe_C \n",
" Mn_C \n",
" Cr_C \n",
" Mg_B \n",
" Fe_B \n",
" Mn_B \n",
" Na_B \n",
" Ca_B \n",
" Na_A \n",
" K_A \n",
" Sum_T \n",
" Sum_C \n",
" Sum_B \n",
" Sum_A \n",
" factor_8SiAl \n",
" factor_15eK \n",
" factor_13eCNK \n",
" All ferric \n",
" 8Si_Min \n",
" 16CAT_Min \n",
" 15eNK_Min \n",
" Min_MinFactor \n",
" Min_factor \n",
" Max_factor \n",
" Av_factor \n",
" Si_T_ideal \n",
" Al_IV_T_ideal \n",
" Ti_T_ideal \n",
" Al_VI_C_ideal \n",
" Ti_C_ideal \n",
" Cr_C_ideal \n",
" Fe3_C_ideal \n",
" Mg_C_ideal \n",
" Fe2_C_ideal \n",
" Mn_C_ideal \n",
" Mg_B_ideal \n",
" Fe2_B_ideal \n",
" Mn_B_ideal \n",
" Ca_B_ideal \n",
" Na_B_ideal \n",
" Na_A_ideal \n",
" K_A_ideal \n",
" FeO_Eq8_Zhang17 \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 49.655108 \n",
" 59.333654 \n",
" 60.645146 \n",
" 56.117080 \n",
" 0.685874 \n",
" 56.992424 \n",
" 5.586412 \n",
" 0.649426 \n",
" 2.128936 \n",
" 6.437242 \n",
" 4.935349 \n",
" 2.378780 \n",
" 2.334718 \n",
" 17.886312 \n",
" 6.221705 \n",
" 2.781062 \n",
" 6.088253 \n",
" 2.912777 \n",
" 1.645305 \n",
" 1.869995 \n",
" 2.267423 \n",
" 0.640114 \n",
" 0.176130 \n",
" 0.033048 \n",
" 0.276556 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.223362 \n",
" 15.093357 \n",
" 15.909602 \n",
" 0.639036 \n",
" 6.088253 \n",
" 1.911747 \n",
" 0.355676 \n",
" 0.276556 \n",
" 2.912777 \n",
" 1.454991 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.190314 \n",
" 0.033048 \n",
" 0.000000 \n",
" 1.869995 \n",
" 0.640114 \n",
" 0.176130 \n",
" 8.0 \n",
" 4.723444 \n",
" 2.093357 \n",
" 0.816245 \n",
" 0.957433 \n",
" 0.953381 \n",
" 0.861306 \n",
" 0.965468 \n",
" 1.314006 \n",
" 1.005682 \n",
" 0.993815 \n",
" 0.993815 \n",
" 0.993815 \n",
" 0.965468 \n",
" 0.979641 \n",
" 5.964303 \n",
" 2.035697 \n",
" 0 \n",
" 0.185564 \n",
" 0.270926 \n",
" 0.000000 \n",
" 0.936506 \n",
" 2.853476 \n",
" 0.675302 \n",
" 0.032375 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.831924 \n",
" 0.168076 \n",
" 0.459007 \n",
" 0.172544 \n",
" 5.949181 \n",
" \n",
" \n",
" 1 \n",
" 51.515902 \n",
" 70.902522 \n",
" 70.515408 \n",
" 66.223315 \n",
" 0.273132 \n",
" 66.974467 \n",
" 2.250664 \n",
" 0.246485 \n",
" 0.846023 \n",
" 3.285068 \n",
" 3.603327 \n",
" 1.974113 \n",
" 2.730521 \n",
" 17.962779 \n",
" 9.282463 \n",
" 1.956064 \n",
" 6.399508 \n",
" 2.737503 \n",
" 1.607585 \n",
" 1.901472 \n",
" 2.064811 \n",
" 0.641619 \n",
" 0.155210 \n",
" 0.000000 \n",
" 0.229397 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.038803 \n",
" 14.940276 \n",
" 15.737104 \n",
" 0.630022 \n",
" 6.399508 \n",
" 1.600492 \n",
" 0.464319 \n",
" 0.229397 \n",
" 2.737503 \n",
" 1.568782 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.038803 \n",
" 0.000000 \n",
" 0.059724 \n",
" 1.901472 \n",
" 0.581894 \n",
" 0.155210 \n",
" 8.0 \n",
" 4.770603 \n",
" 2.000000 \n",
" 0.737104 \n",
" 0.945144 \n",
" 0.962656 \n",
" 0.870131 \n",
" 0.966233 \n",
" 1.250096 \n",
" 1.016705 \n",
" 1.003998 \n",
" 1.003998 \n",
" 1.000000 \n",
" 0.966233 \n",
" 0.983116 \n",
" 6.291461 \n",
" 1.708539 \n",
" 0 \n",
" 0.321410 \n",
" 0.225524 \n",
" 0.000000 \n",
" 0.776650 \n",
" 2.691284 \n",
" 0.803792 \n",
" 0.000000 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.869369 \n",
" 0.130631 \n",
" 0.500154 \n",
" 0.152589 \n",
" 2.686836 \n",
" \n",
" \n",
" 2 \n",
" 49.243987 \n",
" 51.363763 \n",
" 52.107144 \n",
" 50.932554 \n",
" 1.245742 \n",
" 51.883607 \n",
" 11.372546 \n",
" 1.191996 \n",
" 3.023436 \n",
" 7.405270 \n",
" 5.178338 \n",
" 2.916734 \n",
" 2.438641 \n",
" 17.480366 \n",
" 4.148120 \n",
" 2.869497 \n",
" 5.891052 \n",
" 2.918512 \n",
" 1.837141 \n",
" 1.784078 \n",
" 2.312188 \n",
" 0.647279 \n",
" 0.206813 \n",
" 0.062837 \n",
" 0.357556 \n",
" 0.003258 \n",
" 0.0 \n",
" 13.382545 \n",
" 15.166623 \n",
" 16.020715 \n",
" 0.613693 \n",
" 5.891052 \n",
" 2.108948 \n",
" 0.203240 \n",
" 0.357556 \n",
" 2.918512 \n",
" 1.517434 \n",
" 0 \n",
" 0.003258 \n",
" 0.0 \n",
" 0.319708 \n",
" 0.062837 \n",
" 0.000000 \n",
" 1.784078 \n",
" 0.647279 \n",
" 0.206813 \n",
" 8.0 \n",
" 4.642444 \n",
" 2.166623 \n",
" 0.854092 \n",
" 0.975224 \n",
" 0.948533 \n",
" 0.857145 \n",
" 0.961596 \n",
" 1.357992 \n",
" 0.998707 \n",
" 0.989014 \n",
" 0.989014 \n",
" 0.989014 \n",
" 0.975224 \n",
" 0.982119 \n",
" 5.785715 \n",
" 2.214285 \n",
" 0 \n",
" 0.056559 \n",
" 0.351162 \n",
" 0.003200 \n",
" 0.822521 \n",
" 2.866326 \n",
" 0.900231 \n",
" 0.000000 \n",
" 0 \n",
" 0.08154 \n",
" 0.061714 \n",
" 1.752177 \n",
" 0.104570 \n",
" 0.531135 \n",
" 0.203115 \n",
" 9.665180 \n",
" \n",
" \n",
" 3 \n",
" 52.572962 \n",
" 60.687647 \n",
" 62.268993 \n",
" 61.703644 \n",
" 0.690791 \n",
" 62.475868 \n",
" 4.614921 \n",
" 0.652253 \n",
" 1.239917 \n",
" 5.309611 \n",
" 3.706322 \n",
" 3.330558 \n",
" 2.619149 \n",
" 16.370036 \n",
" 4.303575 \n",
" 2.046019 \n",
" 6.289313 \n",
" 3.010500 \n",
" 1.632744 \n",
" 1.767712 \n",
" 1.949713 \n",
" 0.655939 \n",
" 0.180623 \n",
" 0.049231 \n",
" 0.308285 \n",
" 0.001178 \n",
" 0.0 \n",
" 13.240963 \n",
" 15.008675 \n",
" 15.845238 \n",
" 0.648361 \n",
" 6.289313 \n",
" 1.710687 \n",
" 0.239025 \n",
" 0.308285 \n",
" 3.010500 \n",
" 1.441011 \n",
" 0 \n",
" 0.001178 \n",
" 0.0 \n",
" 0.191732 \n",
" 0.049231 \n",
" 0.000000 \n",
" 1.767712 \n",
" 0.655939 \n",
" 0.180623 \n",
" 8.0 \n",
" 4.691715 \n",
" 2.008675 \n",
" 0.836562 \n",
" 0.970989 \n",
" 0.957572 \n",
" 0.866166 \n",
" 0.965722 \n",
" 1.271999 \n",
" 1.009767 \n",
" 0.999422 \n",
" 0.999422 \n",
" 0.999422 \n",
" 0.970989 \n",
" 0.985205 \n",
" 6.196264 \n",
" 1.803736 \n",
" 0 \n",
" 0.117131 \n",
" 0.303724 \n",
" 0.001161 \n",
" 0.680556 \n",
" 2.965960 \n",
" 0.928032 \n",
" 0.003435 \n",
" 0 \n",
" 0.00000 \n",
" 0.045067 \n",
" 1.741559 \n",
" 0.213373 \n",
" 0.432862 \n",
" 0.177951 \n",
" 4.298402 \n",
" \n",
" \n",
" 4 \n",
" 53.104275 \n",
" 66.494122 \n",
" 68.100781 \n",
" 65.870371 \n",
" 0.454822 \n",
" 66.590674 \n",
" 2.915419 \n",
" 0.428619 \n",
" 0.863156 \n",
" 4.323992 \n",
" 3.348260 \n",
" 2.908677 \n",
" 2.620235 \n",
" 16.658488 \n",
" 5.642425 \n",
" 1.799559 \n",
" 6.441589 \n",
" 2.951988 \n",
" 1.569270 \n",
" 1.778037 \n",
" 1.891861 \n",
" 0.646588 \n",
" 0.166919 \n",
" 0.025679 \n",
" 0.273652 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.154038 \n",
" 14.932075 \n",
" 15.745582 \n",
" 0.652913 \n",
" 6.441589 \n",
" 1.558411 \n",
" 0.333450 \n",
" 0.273652 \n",
" 2.951988 \n",
" 1.440910 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.128359 \n",
" 0.025679 \n",
" 0.067925 \n",
" 1.778037 \n",
" 0.578663 \n",
" 0.166919 \n",
" 8.0 \n",
" 4.726348 \n",
" 2.000000 \n",
" 0.745582 \n",
" 0.959987 \n",
" 0.962855 \n",
" 0.870609 \n",
" 0.967011 \n",
" 1.241930 \n",
" 1.016158 \n",
" 1.004549 \n",
" 1.004549 \n",
" 1.000000 \n",
" 0.967011 \n",
" 0.983505 \n",
" 6.335338 \n",
" 1.664662 \n",
" 0 \n",
" 0.195993 \n",
" 0.269138 \n",
" 0.000000 \n",
" 0.758750 \n",
" 2.903296 \n",
" 0.784635 \n",
" 0.025255 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.748709 \n",
" 0.251291 \n",
" 0.384632 \n",
" 0.164166 \n",
" 3.109003 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Eq10_Put2016 SiO2_Eq1_Zhang17 SiO2_Eq2_Zhang17 SiO2_Eq4_Zhang17 \\\n",
"0 49.655108 59.333654 60.645146 56.117080 \n",
"1 51.515902 70.902522 70.515408 66.223315 \n",
"2 49.243987 51.363763 52.107144 50.932554 \n",
"3 52.572962 60.687647 62.268993 61.703644 \n",
"4 53.104275 66.494122 68.100781 65.870371 \n",
"\n",
" TiO2_Eq6_Zhang17 SiO2_Eq3_Zhang17 FeO_Eq7_Zhang17 TiO2_Eq5_Zhang17 \\\n",
"0 0.685874 56.992424 5.586412 0.649426 \n",
"1 0.273132 66.974467 2.250664 0.246485 \n",
"2 1.245742 51.883607 11.372546 1.191996 \n",
"3 0.690791 62.475868 4.614921 0.652253 \n",
"4 0.454822 66.590674 2.915419 0.428619 \n",
"\n",
" MgO_Eq9_Zhang17 CaO_Eq10_Zhang17 CaO_Eq11_Zhang17 K2O_Eq12_Zhang17 \\\n",
"0 2.128936 6.437242 4.935349 2.378780 \n",
"1 0.846023 3.285068 3.603327 1.974113 \n",
"2 3.023436 7.405270 5.178338 2.916734 \n",
"3 1.239917 5.309611 3.706322 3.330558 \n",
"4 0.863156 4.323992 3.348260 2.908677 \n",
"\n",
" K2O_Eq13_Zhang17 Al2O3_Eq14_Zhang17 H2O_Ridolfi21 deltaNNO_Ridolfi21 \\\n",
"0 2.334718 17.886312 6.221705 2.781062 \n",
"1 2.730521 17.962779 9.282463 1.956064 \n",
"2 2.438641 17.480366 4.148120 2.869497 \n",
"3 2.619149 16.370036 4.303575 2.046019 \n",
"4 2.620235 16.658488 5.642425 1.799559 \n",
"\n",
" Si_Amp_cat_23ox Mg_Amp_cat_23ox Fet_Amp_cat_23ox Ca_Amp_cat_23ox \\\n",
"0 6.088253 2.912777 1.645305 1.869995 \n",
"1 6.399508 2.737503 1.607585 1.901472 \n",
"2 5.891052 2.918512 1.837141 1.784078 \n",
"3 6.289313 3.010500 1.632744 1.767712 \n",
"4 6.441589 2.951988 1.569270 1.778037 \n",
"\n",
" Al_Amp_cat_23ox Na_Amp_cat_23ox K_Amp_cat_23ox Mn_Amp_cat_23ox \\\n",
"0 2.267423 0.640114 0.176130 0.033048 \n",
"1 2.064811 0.641619 0.155210 0.000000 \n",
"2 2.312188 0.647279 0.206813 0.062837 \n",
"3 1.949713 0.655939 0.180623 0.049231 \n",
"4 1.891861 0.646588 0.166919 0.025679 \n",
"\n",
" Ti_Amp_cat_23ox Cr_Amp_cat_23ox oxy_renorm_factor cation_sum_Si_Mg \\\n",
"0 0.276556 0.000000 0.0 13.223362 \n",
"1 0.229397 0.000000 0.0 13.038803 \n",
"2 0.357556 0.003258 0.0 13.382545 \n",
"3 0.308285 0.001178 0.0 13.240963 \n",
"4 0.273652 0.000000 0.0 13.154038 \n",
"\n",
" cation_sum_Si_Ca cation_sum_All Mgno_Amp Si_T Al_T Al_C \\\n",
"0 15.093357 15.909602 0.639036 6.088253 1.911747 0.355676 \n",
"1 14.940276 15.737104 0.630022 6.399508 1.600492 0.464319 \n",
"2 15.166623 16.020715 0.613693 5.891052 2.108948 0.203240 \n",
"3 15.008675 15.845238 0.648361 6.289313 1.710687 0.239025 \n",
"4 14.932075 15.745582 0.652913 6.441589 1.558411 0.333450 \n",
"\n",
" Ti_C Mg_C Fe_C Mn_C Cr_C Mg_B Fe_B Mn_B \\\n",
"0 0.276556 2.912777 1.454991 0 0.000000 0.0 0.190314 0.033048 \n",
"1 0.229397 2.737503 1.568782 0 0.000000 0.0 0.038803 0.000000 \n",
"2 0.357556 2.918512 1.517434 0 0.003258 0.0 0.319708 0.062837 \n",
"3 0.308285 3.010500 1.441011 0 0.001178 0.0 0.191732 0.049231 \n",
"4 0.273652 2.951988 1.440910 0 0.000000 0.0 0.128359 0.025679 \n",
"\n",
" Na_B Ca_B Na_A K_A Sum_T Sum_C Sum_B \\\n",
"0 0.000000 1.869995 0.640114 0.176130 8.0 4.723444 2.093357 \n",
"1 0.059724 1.901472 0.581894 0.155210 8.0 4.770603 2.000000 \n",
"2 0.000000 1.784078 0.647279 0.206813 8.0 4.642444 2.166623 \n",
"3 0.000000 1.767712 0.655939 0.180623 8.0 4.691715 2.008675 \n",
"4 0.067925 1.778037 0.578663 0.166919 8.0 4.726348 2.000000 \n",
"\n",
" Sum_A factor_8SiAl factor_15eK factor_13eCNK All ferric 8Si_Min \\\n",
"0 0.816245 0.957433 0.953381 0.861306 0.965468 1.314006 \n",
"1 0.737104 0.945144 0.962656 0.870131 0.966233 1.250096 \n",
"2 0.854092 0.975224 0.948533 0.857145 0.961596 1.357992 \n",
"3 0.836562 0.970989 0.957572 0.866166 0.965722 1.271999 \n",
"4 0.745582 0.959987 0.962855 0.870609 0.967011 1.241930 \n",
"\n",
" 16CAT_Min 15eNK_Min Min_MinFactor Min_factor Max_factor Av_factor \\\n",
"0 1.005682 0.993815 0.993815 0.993815 0.965468 0.979641 \n",
"1 1.016705 1.003998 1.003998 1.000000 0.966233 0.983116 \n",
"2 0.998707 0.989014 0.989014 0.989014 0.975224 0.982119 \n",
"3 1.009767 0.999422 0.999422 0.999422 0.970989 0.985205 \n",
"4 1.016158 1.004549 1.004549 1.000000 0.967011 0.983505 \n",
"\n",
" Si_T_ideal Al_IV_T_ideal Ti_T_ideal Al_VI_C_ideal Ti_C_ideal \\\n",
"0 5.964303 2.035697 0 0.185564 0.270926 \n",
"1 6.291461 1.708539 0 0.321410 0.225524 \n",
"2 5.785715 2.214285 0 0.056559 0.351162 \n",
"3 6.196264 1.803736 0 0.117131 0.303724 \n",
"4 6.335338 1.664662 0 0.195993 0.269138 \n",
"\n",
" Cr_C_ideal Fe3_C_ideal Mg_C_ideal Fe2_C_ideal Mn_C_ideal Mg_B_ideal \\\n",
"0 0.000000 0.936506 2.853476 0.675302 0.032375 0 \n",
"1 0.000000 0.776650 2.691284 0.803792 0.000000 0 \n",
"2 0.003200 0.822521 2.866326 0.900231 0.000000 0 \n",
"3 0.001161 0.680556 2.965960 0.928032 0.003435 0 \n",
"4 0.000000 0.758750 2.903296 0.784635 0.025255 0 \n",
"\n",
" Fe2_B_ideal Mn_B_ideal Ca_B_ideal Na_B_ideal Na_A_ideal K_A_ideal \\\n",
"0 0.00000 0.000000 1.831924 0.168076 0.459007 0.172544 \n",
"1 0.00000 0.000000 1.869369 0.130631 0.500154 0.152589 \n",
"2 0.08154 0.061714 1.752177 0.104570 0.531135 0.203115 \n",
"3 0.00000 0.045067 1.741559 0.213373 0.432862 0.177951 \n",
"4 0.00000 0.000000 1.748709 0.251291 0.384632 0.164166 \n",
"\n",
" FeO_Eq8_Zhang17 \n",
"0 5.949181 \n",
"1 2.686836 \n",
"2 9.665180 \n",
"3 4.298402 \n",
"4 3.109003 "
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Melt_Comps2=pt.calculate_amp_only_melt_comps(amp_comps=Amps, T=1300)\n",
"Melt_Comps2.head()"
]
},
{
"cell_type": "markdown",
"id": "302bf388-9c59-4674-99b5-f9f42ffe1de6",
"metadata": {},
"source": [
"- Calculations using amphibole only thermobarometers to get temperature, to then feed into this function"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "70778bb2-fa4b-4b2a-85d6-a3cf6d805b80",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" SiO2_Eq10_Put2016 \n",
" SiO2_Eq1_Zhang17 \n",
" SiO2_Eq2_Zhang17 \n",
" SiO2_Eq4_Zhang17 \n",
" TiO2_Eq6_Zhang17 \n",
" SiO2_Eq3_Zhang17 \n",
" FeO_Eq7_Zhang17 \n",
" TiO2_Eq5_Zhang17 \n",
" MgO_Eq9_Zhang17 \n",
" CaO_Eq10_Zhang17 \n",
" CaO_Eq11_Zhang17 \n",
" K2O_Eq12_Zhang17 \n",
" K2O_Eq13_Zhang17 \n",
" Al2O3_Eq14_Zhang17 \n",
" H2O_Ridolfi21 \n",
" deltaNNO_Ridolfi21 \n",
" Si_Amp_cat_23ox \n",
" Mg_Amp_cat_23ox \n",
" Fet_Amp_cat_23ox \n",
" Ca_Amp_cat_23ox \n",
" Al_Amp_cat_23ox \n",
" Na_Amp_cat_23ox \n",
" K_Amp_cat_23ox \n",
" Mn_Amp_cat_23ox \n",
" Ti_Amp_cat_23ox \n",
" Cr_Amp_cat_23ox \n",
" oxy_renorm_factor \n",
" cation_sum_Si_Mg \n",
" cation_sum_Si_Ca \n",
" cation_sum_All \n",
" Mgno_Amp \n",
" Si_T \n",
" Al_T \n",
" Al_C \n",
" Ti_C \n",
" Mg_C \n",
" Fe_C \n",
" Mn_C \n",
" Cr_C \n",
" Mg_B \n",
" Fe_B \n",
" Mn_B \n",
" Na_B \n",
" Ca_B \n",
" Na_A \n",
" K_A \n",
" Sum_T \n",
" Sum_C \n",
" Sum_B \n",
" Sum_A \n",
" factor_8SiAl \n",
" factor_15eK \n",
" factor_13eCNK \n",
" All ferric \n",
" 8Si_Min \n",
" 16CAT_Min \n",
" 15eNK_Min \n",
" Min_MinFactor \n",
" Min_factor \n",
" Max_factor \n",
" Av_factor \n",
" Si_T_ideal \n",
" Al_IV_T_ideal \n",
" Ti_T_ideal \n",
" Al_VI_C_ideal \n",
" Ti_C_ideal \n",
" Cr_C_ideal \n",
" Fe3_C_ideal \n",
" Mg_C_ideal \n",
" Fe2_C_ideal \n",
" Mn_C_ideal \n",
" Mg_B_ideal \n",
" Fe2_B_ideal \n",
" Mn_B_ideal \n",
" Ca_B_ideal \n",
" Na_B_ideal \n",
" Na_A_ideal \n",
" K_A_ideal \n",
" FeO_Eq8_Zhang17 \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 59.262728 \n",
" 59.333654 \n",
" 60.645146 \n",
" 56.117080 \n",
" 0.685874 \n",
" 56.082183 \n",
" 5.586412 \n",
" 0.713445 \n",
" 2.128936 \n",
" 6.437242 \n",
" 4.935349 \n",
" 2.378780 \n",
" 2.334718 \n",
" 17.886312 \n",
" 6.221705 \n",
" 2.781062 \n",
" 6.088253 \n",
" 2.912777 \n",
" 1.645305 \n",
" 1.869995 \n",
" 2.267423 \n",
" 0.640114 \n",
" 0.176130 \n",
" 0.033048 \n",
" 0.276556 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.223362 \n",
" 15.093357 \n",
" 15.909602 \n",
" 0.639036 \n",
" 6.088253 \n",
" 1.911747 \n",
" 0.355676 \n",
" 0.276556 \n",
" 2.912777 \n",
" 1.454991 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.190314 \n",
" 0.033048 \n",
" 0.000000 \n",
" 1.869995 \n",
" 0.640114 \n",
" 0.176130 \n",
" 8.0 \n",
" 4.723444 \n",
" 2.093357 \n",
" 0.816245 \n",
" 0.957433 \n",
" 0.953381 \n",
" 0.861306 \n",
" 0.965468 \n",
" 1.314006 \n",
" 1.005682 \n",
" 0.993815 \n",
" 0.993815 \n",
" 0.993815 \n",
" 0.965468 \n",
" 0.979641 \n",
" 5.964303 \n",
" 2.035697 \n",
" 0 \n",
" 0.185564 \n",
" 0.270926 \n",
" 0.000000 \n",
" 0.936506 \n",
" 2.853476 \n",
" 0.675302 \n",
" 0.032375 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.831924 \n",
" 0.168076 \n",
" 0.459007 \n",
" 0.172544 \n",
" 5.949181 \n",
" \n",
" \n",
" 1 \n",
" NaN \n",
" 70.902522 \n",
" 70.515408 \n",
" 66.223315 \n",
" 0.273132 \n",
" NaN \n",
" 2.250664 \n",
" NaN \n",
" 0.846023 \n",
" 3.285068 \n",
" 3.603327 \n",
" 1.974113 \n",
" 2.730521 \n",
" 17.962779 \n",
" 9.282463 \n",
" 1.956064 \n",
" 6.399508 \n",
" 2.737503 \n",
" 1.607585 \n",
" 1.901472 \n",
" 2.064811 \n",
" 0.641619 \n",
" 0.155210 \n",
" 0.000000 \n",
" 0.229397 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.038803 \n",
" 14.940276 \n",
" 15.737104 \n",
" 0.630022 \n",
" 6.399508 \n",
" 1.600492 \n",
" 0.464319 \n",
" 0.229397 \n",
" 2.737503 \n",
" 1.568782 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.038803 \n",
" 0.000000 \n",
" 0.059724 \n",
" 1.901472 \n",
" 0.581894 \n",
" 0.155210 \n",
" 8.0 \n",
" 4.770603 \n",
" 2.000000 \n",
" 0.737104 \n",
" 0.945144 \n",
" 0.962656 \n",
" 0.870131 \n",
" 0.966233 \n",
" 1.250096 \n",
" 1.016705 \n",
" 1.003998 \n",
" 1.003998 \n",
" 1.000000 \n",
" 0.966233 \n",
" 0.983116 \n",
" 6.291461 \n",
" 1.708539 \n",
" 0 \n",
" 0.321410 \n",
" 0.225524 \n",
" 0.000000 \n",
" 0.776650 \n",
" 2.691284 \n",
" 0.803792 \n",
" 0.000000 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.869369 \n",
" 0.130631 \n",
" 0.500154 \n",
" 0.152589 \n",
" 2.686836 \n",
" \n",
" \n",
" 2 \n",
" 50.680338 \n",
" 51.363763 \n",
" 52.107144 \n",
" 50.932554 \n",
" 1.245742 \n",
" 51.769071 \n",
" 11.372546 \n",
" 1.206181 \n",
" 3.023436 \n",
" 7.405270 \n",
" 5.178338 \n",
" 2.916734 \n",
" 2.438641 \n",
" 17.480366 \n",
" 4.148120 \n",
" 2.869497 \n",
" 5.891052 \n",
" 2.918512 \n",
" 1.837141 \n",
" 1.784078 \n",
" 2.312188 \n",
" 0.647279 \n",
" 0.206813 \n",
" 0.062837 \n",
" 0.357556 \n",
" 0.003258 \n",
" 0.0 \n",
" 13.382545 \n",
" 15.166623 \n",
" 16.020715 \n",
" 0.613693 \n",
" 5.891052 \n",
" 2.108948 \n",
" 0.203240 \n",
" 0.357556 \n",
" 2.918512 \n",
" 1.517434 \n",
" 0 \n",
" 0.003258 \n",
" 0.0 \n",
" 0.319708 \n",
" 0.062837 \n",
" 0.000000 \n",
" 1.784078 \n",
" 0.647279 \n",
" 0.206813 \n",
" 8.0 \n",
" 4.642444 \n",
" 2.166623 \n",
" 0.854092 \n",
" 0.975224 \n",
" 0.948533 \n",
" 0.857145 \n",
" 0.961596 \n",
" 1.357992 \n",
" 0.998707 \n",
" 0.989014 \n",
" 0.989014 \n",
" 0.989014 \n",
" 0.975224 \n",
" 0.982119 \n",
" 5.785715 \n",
" 2.214285 \n",
" 0 \n",
" 0.056559 \n",
" 0.351162 \n",
" 0.003200 \n",
" 0.822521 \n",
" 2.866326 \n",
" 0.900231 \n",
" 0.000000 \n",
" 0 \n",
" 0.08154 \n",
" 0.061714 \n",
" 1.752177 \n",
" 0.104570 \n",
" 0.531135 \n",
" 0.203115 \n",
" 9.665180 \n",
" \n",
" \n",
" 3 \n",
" 62.370970 \n",
" 60.687647 \n",
" 62.268993 \n",
" 61.703644 \n",
" 0.690791 \n",
" 61.541928 \n",
" 4.614921 \n",
" 0.718307 \n",
" 1.239917 \n",
" 5.309611 \n",
" 3.706322 \n",
" 3.330558 \n",
" 2.619149 \n",
" 16.370036 \n",
" 4.303575 \n",
" 2.046019 \n",
" 6.289313 \n",
" 3.010500 \n",
" 1.632744 \n",
" 1.767712 \n",
" 1.949713 \n",
" 0.655939 \n",
" 0.180623 \n",
" 0.049231 \n",
" 0.308285 \n",
" 0.001178 \n",
" 0.0 \n",
" 13.240963 \n",
" 15.008675 \n",
" 15.845238 \n",
" 0.648361 \n",
" 6.289313 \n",
" 1.710687 \n",
" 0.239025 \n",
" 0.308285 \n",
" 3.010500 \n",
" 1.441011 \n",
" 0 \n",
" 0.001178 \n",
" 0.0 \n",
" 0.191732 \n",
" 0.049231 \n",
" 0.000000 \n",
" 1.767712 \n",
" 0.655939 \n",
" 0.180623 \n",
" 8.0 \n",
" 4.691715 \n",
" 2.008675 \n",
" 0.836562 \n",
" 0.970989 \n",
" 0.957572 \n",
" 0.866166 \n",
" 0.965722 \n",
" 1.271999 \n",
" 1.009767 \n",
" 0.999422 \n",
" 0.999422 \n",
" 0.999422 \n",
" 0.970989 \n",
" 0.985205 \n",
" 6.196264 \n",
" 1.803736 \n",
" 0 \n",
" 0.117131 \n",
" 0.303724 \n",
" 0.001161 \n",
" 0.680556 \n",
" 2.965960 \n",
" 0.928032 \n",
" 0.003435 \n",
" 0 \n",
" 0.00000 \n",
" 0.045067 \n",
" 1.741559 \n",
" 0.213373 \n",
" 0.432862 \n",
" 0.177951 \n",
" 4.298402 \n",
" \n",
" \n",
" 4 \n",
" 66.077116 \n",
" 66.494122 \n",
" 68.100781 \n",
" 65.870371 \n",
" 0.454822 \n",
" 65.162647 \n",
" 2.915419 \n",
" 0.496739 \n",
" 0.863156 \n",
" 4.323992 \n",
" 3.348260 \n",
" 2.908677 \n",
" 2.620235 \n",
" 16.658488 \n",
" 5.642425 \n",
" 1.799559 \n",
" 6.441589 \n",
" 2.951988 \n",
" 1.569270 \n",
" 1.778037 \n",
" 1.891861 \n",
" 0.646588 \n",
" 0.166919 \n",
" 0.025679 \n",
" 0.273652 \n",
" 0.000000 \n",
" 0.0 \n",
" 13.154038 \n",
" 14.932075 \n",
" 15.745582 \n",
" 0.652913 \n",
" 6.441589 \n",
" 1.558411 \n",
" 0.333450 \n",
" 0.273652 \n",
" 2.951988 \n",
" 1.440910 \n",
" 0 \n",
" 0.000000 \n",
" 0.0 \n",
" 0.128359 \n",
" 0.025679 \n",
" 0.067925 \n",
" 1.778037 \n",
" 0.578663 \n",
" 0.166919 \n",
" 8.0 \n",
" 4.726348 \n",
" 2.000000 \n",
" 0.745582 \n",
" 0.959987 \n",
" 0.962855 \n",
" 0.870609 \n",
" 0.967011 \n",
" 1.241930 \n",
" 1.016158 \n",
" 1.004549 \n",
" 1.004549 \n",
" 1.000000 \n",
" 0.967011 \n",
" 0.983505 \n",
" 6.335338 \n",
" 1.664662 \n",
" 0 \n",
" 0.195993 \n",
" 0.269138 \n",
" 0.000000 \n",
" 0.758750 \n",
" 2.903296 \n",
" 0.784635 \n",
" 0.025255 \n",
" 0 \n",
" 0.00000 \n",
" 0.000000 \n",
" 1.748709 \n",
" 0.251291 \n",
" 0.384632 \n",
" 0.164166 \n",
" 3.109003 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Eq10_Put2016 SiO2_Eq1_Zhang17 SiO2_Eq2_Zhang17 SiO2_Eq4_Zhang17 \\\n",
"0 59.262728 59.333654 60.645146 56.117080 \n",
"1 NaN 70.902522 70.515408 66.223315 \n",
"2 50.680338 51.363763 52.107144 50.932554 \n",
"3 62.370970 60.687647 62.268993 61.703644 \n",
"4 66.077116 66.494122 68.100781 65.870371 \n",
"\n",
" TiO2_Eq6_Zhang17 SiO2_Eq3_Zhang17 FeO_Eq7_Zhang17 TiO2_Eq5_Zhang17 \\\n",
"0 0.685874 56.082183 5.586412 0.713445 \n",
"1 0.273132 NaN 2.250664 NaN \n",
"2 1.245742 51.769071 11.372546 1.206181 \n",
"3 0.690791 61.541928 4.614921 0.718307 \n",
"4 0.454822 65.162647 2.915419 0.496739 \n",
"\n",
" MgO_Eq9_Zhang17 CaO_Eq10_Zhang17 CaO_Eq11_Zhang17 K2O_Eq12_Zhang17 \\\n",
"0 2.128936 6.437242 4.935349 2.378780 \n",
"1 0.846023 3.285068 3.603327 1.974113 \n",
"2 3.023436 7.405270 5.178338 2.916734 \n",
"3 1.239917 5.309611 3.706322 3.330558 \n",
"4 0.863156 4.323992 3.348260 2.908677 \n",
"\n",
" K2O_Eq13_Zhang17 Al2O3_Eq14_Zhang17 H2O_Ridolfi21 deltaNNO_Ridolfi21 \\\n",
"0 2.334718 17.886312 6.221705 2.781062 \n",
"1 2.730521 17.962779 9.282463 1.956064 \n",
"2 2.438641 17.480366 4.148120 2.869497 \n",
"3 2.619149 16.370036 4.303575 2.046019 \n",
"4 2.620235 16.658488 5.642425 1.799559 \n",
"\n",
" Si_Amp_cat_23ox Mg_Amp_cat_23ox Fet_Amp_cat_23ox Ca_Amp_cat_23ox \\\n",
"0 6.088253 2.912777 1.645305 1.869995 \n",
"1 6.399508 2.737503 1.607585 1.901472 \n",
"2 5.891052 2.918512 1.837141 1.784078 \n",
"3 6.289313 3.010500 1.632744 1.767712 \n",
"4 6.441589 2.951988 1.569270 1.778037 \n",
"\n",
" Al_Amp_cat_23ox Na_Amp_cat_23ox K_Amp_cat_23ox Mn_Amp_cat_23ox \\\n",
"0 2.267423 0.640114 0.176130 0.033048 \n",
"1 2.064811 0.641619 0.155210 0.000000 \n",
"2 2.312188 0.647279 0.206813 0.062837 \n",
"3 1.949713 0.655939 0.180623 0.049231 \n",
"4 1.891861 0.646588 0.166919 0.025679 \n",
"\n",
" Ti_Amp_cat_23ox Cr_Amp_cat_23ox oxy_renorm_factor cation_sum_Si_Mg \\\n",
"0 0.276556 0.000000 0.0 13.223362 \n",
"1 0.229397 0.000000 0.0 13.038803 \n",
"2 0.357556 0.003258 0.0 13.382545 \n",
"3 0.308285 0.001178 0.0 13.240963 \n",
"4 0.273652 0.000000 0.0 13.154038 \n",
"\n",
" cation_sum_Si_Ca cation_sum_All Mgno_Amp Si_T Al_T Al_C \\\n",
"0 15.093357 15.909602 0.639036 6.088253 1.911747 0.355676 \n",
"1 14.940276 15.737104 0.630022 6.399508 1.600492 0.464319 \n",
"2 15.166623 16.020715 0.613693 5.891052 2.108948 0.203240 \n",
"3 15.008675 15.845238 0.648361 6.289313 1.710687 0.239025 \n",
"4 14.932075 15.745582 0.652913 6.441589 1.558411 0.333450 \n",
"\n",
" Ti_C Mg_C Fe_C Mn_C Cr_C Mg_B Fe_B Mn_B \\\n",
"0 0.276556 2.912777 1.454991 0 0.000000 0.0 0.190314 0.033048 \n",
"1 0.229397 2.737503 1.568782 0 0.000000 0.0 0.038803 0.000000 \n",
"2 0.357556 2.918512 1.517434 0 0.003258 0.0 0.319708 0.062837 \n",
"3 0.308285 3.010500 1.441011 0 0.001178 0.0 0.191732 0.049231 \n",
"4 0.273652 2.951988 1.440910 0 0.000000 0.0 0.128359 0.025679 \n",
"\n",
" Na_B Ca_B Na_A K_A Sum_T Sum_C Sum_B \\\n",
"0 0.000000 1.869995 0.640114 0.176130 8.0 4.723444 2.093357 \n",
"1 0.059724 1.901472 0.581894 0.155210 8.0 4.770603 2.000000 \n",
"2 0.000000 1.784078 0.647279 0.206813 8.0 4.642444 2.166623 \n",
"3 0.000000 1.767712 0.655939 0.180623 8.0 4.691715 2.008675 \n",
"4 0.067925 1.778037 0.578663 0.166919 8.0 4.726348 2.000000 \n",
"\n",
" Sum_A factor_8SiAl factor_15eK factor_13eCNK All ferric 8Si_Min \\\n",
"0 0.816245 0.957433 0.953381 0.861306 0.965468 1.314006 \n",
"1 0.737104 0.945144 0.962656 0.870131 0.966233 1.250096 \n",
"2 0.854092 0.975224 0.948533 0.857145 0.961596 1.357992 \n",
"3 0.836562 0.970989 0.957572 0.866166 0.965722 1.271999 \n",
"4 0.745582 0.959987 0.962855 0.870609 0.967011 1.241930 \n",
"\n",
" 16CAT_Min 15eNK_Min Min_MinFactor Min_factor Max_factor Av_factor \\\n",
"0 1.005682 0.993815 0.993815 0.993815 0.965468 0.979641 \n",
"1 1.016705 1.003998 1.003998 1.000000 0.966233 0.983116 \n",
"2 0.998707 0.989014 0.989014 0.989014 0.975224 0.982119 \n",
"3 1.009767 0.999422 0.999422 0.999422 0.970989 0.985205 \n",
"4 1.016158 1.004549 1.004549 1.000000 0.967011 0.983505 \n",
"\n",
" Si_T_ideal Al_IV_T_ideal Ti_T_ideal Al_VI_C_ideal Ti_C_ideal \\\n",
"0 5.964303 2.035697 0 0.185564 0.270926 \n",
"1 6.291461 1.708539 0 0.321410 0.225524 \n",
"2 5.785715 2.214285 0 0.056559 0.351162 \n",
"3 6.196264 1.803736 0 0.117131 0.303724 \n",
"4 6.335338 1.664662 0 0.195993 0.269138 \n",
"\n",
" Cr_C_ideal Fe3_C_ideal Mg_C_ideal Fe2_C_ideal Mn_C_ideal Mg_B_ideal \\\n",
"0 0.000000 0.936506 2.853476 0.675302 0.032375 0 \n",
"1 0.000000 0.776650 2.691284 0.803792 0.000000 0 \n",
"2 0.003200 0.822521 2.866326 0.900231 0.000000 0 \n",
"3 0.001161 0.680556 2.965960 0.928032 0.003435 0 \n",
"4 0.000000 0.758750 2.903296 0.784635 0.025255 0 \n",
"\n",
" Fe2_B_ideal Mn_B_ideal Ca_B_ideal Na_B_ideal Na_A_ideal K_A_ideal \\\n",
"0 0.00000 0.000000 1.831924 0.168076 0.459007 0.172544 \n",
"1 0.00000 0.000000 1.869369 0.130631 0.500154 0.152589 \n",
"2 0.08154 0.061714 1.752177 0.104570 0.531135 0.203115 \n",
"3 0.00000 0.045067 1.741559 0.213373 0.432862 0.177951 \n",
"4 0.00000 0.000000 1.748709 0.251291 0.384632 0.164166 \n",
"\n",
" FeO_Eq8_Zhang17 \n",
"0 5.949181 \n",
"1 2.686836 \n",
"2 9.665180 \n",
"3 4.298402 \n",
"4 3.109003 "
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"PT_Rid=pt.calculate_amp_only_press_temp(amp_comps=Amps, equationP=\"P_Ridolfi2021\", \n",
" equationT=\"T_Ridolfi2012\", Ridolfi_Filter=False)\n",
"Melt_Comps3=pt.calculate_amp_only_melt_comps(amp_comps=Amps, T=PT_Rid['T_K_calc'])\n",
"Melt_Comps3.head()"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "6182b778-8bd6-47c8-8c27-3c77a6ddc116",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" \n",
" P_kbar_calc \n",
" T_K_calc \n",
" Input_Check \n",
" Fail Msg \n",
" classification \n",
" equation \n",
" SiO2_Amp \n",
" TiO2_Amp \n",
" Al2O3_Amp \n",
" FeOt_Amp \n",
" MnO_Amp \n",
" MgO_Amp \n",
" CaO_Amp \n",
" Na2O_Amp \n",
" K2O_Amp \n",
" Cr2O3_Amp \n",
" F_Amp \n",
" Cl_Amp \n",
" Sample_ID_Amp \n",
" \n",
" \n",
" \n",
" \n",
" 0 \n",
" 4.572174 \n",
" 1214.531361 \n",
" True \n",
" \n",
" Mg-hastingsite \n",
" (1b+1c)/2 \n",
" 40.57 \n",
" 2.45 \n",
" 12.82 \n",
" 13.11 \n",
" 0.26 \n",
" 13.02 \n",
" 11.63 \n",
" 2.20 \n",
" 0.92 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe1 \n",
" \n",
" \n",
" 1 \n",
" NaN \n",
" NaN \n",
" False \n",
" Recalc Total<98.5 \n",
" Pargasite \n",
" 1b \n",
" 39.45 \n",
" 1.88 \n",
" 10.80 \n",
" 11.85 \n",
" 0.00 \n",
" 11.32 \n",
" 10.94 \n",
" 2.04 \n",
" 0.75 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe2 \n",
" \n",
" \n",
" 2 \n",
" 6.203253 \n",
" 1289.245454 \n",
" False \n",
" Recalc Total>102 \n",
" Mg-hastingsite \n",
" 1c+1d \n",
" 42.88 \n",
" 3.46 \n",
" 14.28 \n",
" 15.99 \n",
" 0.54 \n",
" 14.25 \n",
" 12.12 \n",
" 2.43 \n",
" 1.18 \n",
" 0.03 \n",
" 0.0 \n",
" 0.0 \n",
" probe3 \n",
" \n",
" \n",
" 3 \n",
" 3.228704 \n",
" 1212.306099 \n",
" False \n",
" APE >60 \n",
" Mg-hastingsite \n",
" 1b \n",
" 42.20 \n",
" 2.75 \n",
" 11.10 \n",
" 13.10 \n",
" 0.39 \n",
" 13.55 \n",
" 11.07 \n",
" 2.27 \n",
" 0.95 \n",
" 0.01 \n",
" 0.0 \n",
" 0.0 \n",
" probe4 \n",
" \n",
" \n",
" 4 \n",
" 2.761702 \n",
" 1165.913034 \n",
" False \n",
" Recalc Total<98.5 \n",
" Mg-hastingsite \n",
" 1b \n",
" 40.37 \n",
" 2.28 \n",
" 10.06 \n",
" 11.76 \n",
" 0.19 \n",
" 12.41 \n",
" 10.40 \n",
" 2.09 \n",
" 0.82 \n",
" 0.00 \n",
" 0.0 \n",
" 0.0 \n",
" probe5 \n",
" \n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc T_K_calc Input_Check Fail Msg classification \\\n",
"0 4.572174 1214.531361 True Mg-hastingsite \n",
"1 NaN NaN False Recalc Total<98.5 Pargasite \n",
"2 6.203253 1289.245454 False Recalc Total>102 Mg-hastingsite \n",
"3 3.228704 1212.306099 False APE >60 Mg-hastingsite \n",
"4 2.761702 1165.913034 False Recalc Total<98.5 Mg-hastingsite \n",
"\n",
" equation SiO2_Amp TiO2_Amp Al2O3_Amp FeOt_Amp MnO_Amp MgO_Amp \\\n",
"0 (1b+1c)/2 40.57 2.45 12.82 13.11 0.26 13.02 \n",
"1 1b 39.45 1.88 10.80 11.85 0.00 11.32 \n",
"2 1c+1d 42.88 3.46 14.28 15.99 0.54 14.25 \n",
"3 1b 42.20 2.75 11.10 13.10 0.39 13.55 \n",
"4 1b 40.37 2.28 10.06 11.76 0.19 12.41 \n",
"\n",
" CaO_Amp Na2O_Amp K2O_Amp Cr2O3_Amp F_Amp Cl_Amp Sample_ID_Amp \n",
"0 11.63 2.20 0.92 0.00 0.0 0.0 probe1 \n",
"1 10.94 2.04 0.75 0.00 0.0 0.0 probe2 \n",
"2 12.12 2.43 1.18 0.03 0.0 0.0 probe3 \n",
"3 11.07 2.27 0.95 0.01 0.0 0.0 probe4 \n",
"4 10.40 2.09 0.82 0.00 0.0 0.0 probe5 "
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"PT_Rid.head()"
]
},
{
"cell_type": "markdown",
"id": "1883bfd0-7ec7-400c-82fe-181de50fe456",
"metadata": {},
"source": [
"## Comparing calculated melts from different equations"
]
},
{
"cell_type": "code",
"execution_count": 26,
"id": "6c5826a2-4254-45a1-824c-614237e97b7b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmUAAAFBCAYAAAA2WtiaAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAABEj0lEQVR4nO3deXxcVf3/8de7CUvDIltFtiaIiKI/QYjggiDiwl5WKYRVdKQBEfyKoBHBJQgIKigpDMiiBmSnLGUTAQEBSdkRUZYkFBDKvoSlST+/P+6kpmnSzKSZuZOZ9/PxmEfmnntn5nMpOfnMueeejyICMzMzM0vXhLQDMDMzMzMnZWZmZmZlwUmZmZmZWRlwUmZmZmZWBpyUmZmZmZUBJ2VmZmZmZaA27QBGY5VVVomGhoa0wzCzEpo1a9aLETEp7TgWl/svs+qTb/81LpOyhoYGOjo60g7DzEpIUl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RNhW0k6SUh+UfcH7iL5JjvY4PkYx+fe+17gQuB+4NL+zxxM0gUkd3CtJ2m2pAOHOOwgkssb04ea+zGM64Da3H/bn+XiH1ZE3ANcCTwAXAZ0AK+NFKeSycpfzr3GrJq4D8N9mCWU/L9u1UzJXUn7AfeQfHM8PeWQhiXpWJJbz4fqFMuCpGVz82TqSL4lZxbxh8LMFpP7sLHlPiw9nlNmRMSpwKlpx1FBspLWJ7nEcZ47M7Pich825tyHpcQjZWZmZmZlwHPKzMzMzMqAkzIzMzOzMuCkzMzMzKwMOCkzMzMzKwNOyszMzMzKgJMyMzMzszLgpMzMzMysDDgpMzMzMysD/x/8gA64tWmKvQAAAABJRU5ErkJggg==\n",
"text/plain": [
""
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10,5))\n",
"ax1.plot(Melt_Comps3['SiO2_Eq1_Zhang17'], Melt_Comps3['SiO2_Eq10_Put2016'], 'ok')\n",
"ax1.set_xlabel('SiO$_2$ wt% Eq 1 Zhang17')\n",
"ax1.set_ylabel('SiO$_2$ wt% Eq 10 Putirka 2016')\n",
"\n",
"ax2.plot(Melt_Comps3['SiO2_Eq1_Zhang17'], Melt_Comps3['TiO2_Eq6_Zhang17'], 'ok')\n",
"ax2.set_xlabel('SiO$_2$ wt% Eq 1 Zhang17')\n",
"ax2.set_ylabel('TiO$_2$ wt% Eq 6 Zhang17')\n",
"\n",
"ax1.plot([50, 85], [50, 85], '-r')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d988f2a5-7b89-45cf-bf47-59f57ffd42bd",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}