{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Opx-Cpx Thermobarometry\n",
"- In this notebook, we consider analyses of touching Cpx-Opx pairs\n",
"- For the situation common in lavas where you have a lot of individual Cpx-Opx crystals, and you want to assess all possible combinations from a single sample or deposit, see the second notebook \"Opx_Cpx_Matching\"\n",
"- You can download the spreadsheet here: https://github.com/PennyWieser/Thermobar/blob/main/docs/Examples/Two_Pyroxene_Thermobarometry/Two_pyroxene_input.xlsx"
]
},
{
"cell_type": "markdown",
"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,
"metadata": {},
"outputs": [],
"source": [
"#!pip install Thermobar"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Importing other python things"
]
},
{
"cell_type": "code",
"execution_count": 2,
"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",
"metadata": {},
"source": [
"## Loading in excel spreadsheet\n",
"- Make an excel spreadsheet where you have rows for each touching pair, with the column headings SiO2_Opx for SiO2 in the Opx, SiO2_Cpx for SiO2 in the Cpx etc. The column order doesnt matter. "
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 52.30 | \n",
" 0.70 | \n",
" 3.00 | \n",
" 5.10 | \n",
" 0.11 | \n",
" 16.60 | \n",
" 21.50 | \n",
" 0.33 | \n",
" 0 | \n",
" 0.58 | \n",
" 0 | \n",
"
\n",
" \n",
" 1 | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
"
\n",
" \n",
" 2 | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
"
\n",
" \n",
" 3 | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
"
\n",
" \n",
" 4 | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Cpx TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx \\\n",
"0 52.30 0.70 3.00 5.10 0.11 16.60 21.50 \n",
"1 51.70 0.28 8.38 6.69 0.15 21.40 11.70 \n",
"2 51.50 0.45 8.10 6.96 0.17 20.30 12.60 \n",
"3 51.06 0.62 3.16 6.18 0.12 15.78 20.82 \n",
"4 53.32 0.48 2.25 5.92 0.15 16.91 20.73 \n",
"\n",
" Na2O_Cpx K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx \n",
"0 0.33 0 0.58 0 \n",
"1 0.64 0 0.05 1 \n",
"2 0.56 0 0.09 2 \n",
"3 0.27 0 0.01 3 \n",
"4 0.28 0 0.12 4 "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 55.00 | \n",
" 0.34 | \n",
" 1.50 | \n",
" 11.30 | \n",
" 0.24 | \n",
" 30.70 | \n",
" 0.90 | \n",
" 0.01 | \n",
" 0 | \n",
" 0.19 | \n",
" 0 | \n",
"
\n",
" \n",
" 1 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
"
\n",
" \n",
" 2 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
"
\n",
" \n",
" 3 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
"
\n",
" \n",
" 4 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" SiO2_Opx TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx \\\n",
"0 55.00 0.34 1.50 11.30 0.24 30.70 0.90 \n",
"1 52.70 0.15 8.10 8.48 0.14 29.40 2.14 \n",
"2 53.20 0.20 7.40 8.80 0.13 29.20 2.37 \n",
"3 55.15 0.17 1.19 10.21 0.22 29.99 1.66 \n",
"4 56.32 0.13 1.41 10.17 0.26 30.88 1.05 \n",
"\n",
" Na2O_Opx K2O_Opx Cr2O3_Opx Sample_ID_Opx \n",
"0 0.01 0 0.19 0 \n",
"1 0.14 0 0.00 1 \n",
"2 0.14 0 0.02 2 \n",
"3 0.03 0 0.15 3 \n",
"4 0.02 0 0.16 4 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"out=pt.import_excel('Two_pyroxene_input.xlsx', sheet_name=\"Paired_Cpx_Opx\")\n",
"# This extracts a dataframe of all inputs\n",
"my_input=out['my_input']\n",
"# This extracts a dataframe of cpx compositions from the dictionary \"out\"\n",
"Cpxs=out['Cpxs']\n",
"# This extracts a dataframe of opx compositions from the dictionary \"out\"\n",
"Opxs=out['Opxs']\n",
"# Check the outputs to make sure there are no columns of zeros where you expect numbers\n",
"display(Cpxs.head())\n",
"display(Opxs.head())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- If at any point you want to find out more about a function, and what equations it offers, you can use the help function"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Help on function calculate_cpx_opx_press in module Thermobar.two_pyroxene:\n",
"\n",
"calculate_cpx_opx_press(*, cpx_comps=None, opx_comps=None, Two_Px_Match=None, equationP=None, eq_tests=False, T=None)\n",
" calculates pressure in kbar for Opx-Cpx pairs\n",
" \n",
" The function requires inputs of cpx_comps and opx_comps, or input of a\n",
" combined dataframe of cpx-opx compositions (this is used for the\n",
" calculate_cpx_opx_press_temp_matching function)\n",
" \n",
" Parameters\n",
" -----------\n",
" \n",
" cpx_comps: pandas.DataFrame\n",
" Clinopyroxene compositions with column headings SiO2_Cpx, MgO_Cpx etc.\n",
" \n",
" opx_comps: pandas.DataFrame\n",
" Opx compositions with column headings SiO2_Opx, MgO_Opx etc.\n",
" \n",
" Two_Px_Match: pandas.DataFrame\n",
" Combined Cpx-Opx compositions instead of separate dataframes.\n",
" Used for calculate Cpx_Opx_press_temp_matching function.\n",
" \n",
" equationP: str\n",
" Choose from:\n",
" \n",
" | P_Put2008_eq38 (T-independent)\n",
" | P_Put2008_eq39 (T-dependent)\n",
" \n",
" T: float, int, pd.Series, str (\"Solve\")\n",
" Temperature in Kelvin to perform calculations at.\n",
" Only needed for T-sensitive barometers.\n",
" If T=\"Solve\", returns a partial function.\n",
" Else, enter an integer, float, or panda series.\n",
" \n",
" eq_tests: bool\n",
" If False, just returns temperature in K (default) as a panda series.\n",
" If True, returns pressure in kbar, Kd Fe-Mg for opx-cpx,\n",
" and the user-entered cpx and opx comps as a panda dataframe.\n",
" \n",
" \n",
" Returns\n",
" -------\n",
" If eq_tests is False\n",
" pandas.Series: Pressure in kbar\n",
" If eq_tests is True\n",
" pandas.DataFrame: Pressure in kbar + Kd-Fe-Mg + cpx+opx comps\n",
"\n"
]
}
],
"source": [
"help(pt.calculate_cpx_opx_press)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- You can also do help on the equations themselves to get a bit more information, \n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Help on function P_Put2008_eq38 in module Thermobar.two_pyroxene:\n",
"\n",
"P_Put2008_eq38(T=None, *, Na_Opx_cat_6ox, Al_IV_Opx_cat_6ox, Al_VI_Opx_cat_6ox, Ti_Opx_cat_6ox, Ca_Opx_cat_6ox, Cr_Opx_cat_6ox, Mg_Opx_cat_6ox, Fet_Opx_cat_6ox, Mn_Opx_cat_6ox, Ca_Cpx_cat_6ox, Fm2Si2O6, En_Opx, Di_Opx)\n",
" Two pyroxene barometer of Putirka (2008) Eq38. Calibrated on Mg#-rich systems (>0.75)\n",
" :cite:`putirka2008thermometers`\n",
" \n",
" | SEE=+-3.7 kbar\n",
"\n"
]
}
],
"source": [
"help(pt.P_Put2008_eq38)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1 - Calculating pressures."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 1a - Pressures using equation 38 of Putirka (2008)\n",
"- You must specify Opx compositions, Cpx compositions and an equation for pressure\n",
"- Equation 38 is independent of temperature, so you don't need to specify a temp"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 2.187907\n",
"1 16.535654\n",
"2 14.450339\n",
"3 2.380005\n",
"4 4.099411\n",
"dtype: float64"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Eq38=pt.calculate_cpx_opx_press(opx_comps=Opxs, cpx_comps=Cpxs, equationP=\"P_Put2008_eq38\")\n",
"P_Eq38.head() # Head shows the first 5 results"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### To get equilibrium tests, specify eq_tests=True. This also returns input compositions. "
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" P_kbar_calc | \n",
" High T Kd Eq? | \n",
" Equation Choice (P) | \n",
" Low T Kd Eq? | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
" Si_Cpx_cat_6ox | \n",
" Mg_Cpx_cat_6ox | \n",
" Fet_Cpx_cat_6ox | \n",
" Ca_Cpx_cat_6ox | \n",
" Al_Cpx_cat_6ox | \n",
" Na_Cpx_cat_6ox | \n",
" K_Cpx_cat_6ox | \n",
" Mn_Cpx_cat_6ox | \n",
" Ti_Cpx_cat_6ox | \n",
" Cr_Cpx_cat_6ox | \n",
" oxy_renorm_factor | \n",
" Al_IV_cat_6ox | \n",
" Al_VI_cat_6ox | \n",
" En_Simple_MgFeCa_Cpx | \n",
" Fs_Simple_MgFeCa_Cpx | \n",
" Wo_Simple_MgFeCa_Cpx | \n",
" Cation_Sum_Cpx | \n",
" Ca_CaMgFe | \n",
" Lindley_Fe3_Cpx | \n",
" Lindley_Fe2_Cpx | \n",
" Lindley_Fe3_Cpx_prop | \n",
" CrCaTs | \n",
" a_cpx_En | \n",
" Mgno_Cpx | \n",
" Jd | \n",
" Jd_from 0=Na, 1=Al | \n",
" CaTs | \n",
" CaTi | \n",
" DiHd_1996 | \n",
" EnFs | \n",
" DiHd_2003 | \n",
" Di_Cpx | \n",
" FeIII_Wang21 | \n",
" FeII_Wang21 | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
" Si_Opx_cat_6ox | \n",
" Mg_Opx_cat_6ox | \n",
" Fet_Opx_cat_6ox | \n",
" Ca_Opx_cat_6ox | \n",
" Al_Opx_cat_6ox | \n",
" Na_Opx_cat_6ox | \n",
" K_Opx_cat_6ox | \n",
" Mn_Opx_cat_6ox | \n",
" Ti_Opx_cat_6ox | \n",
" Cr_Opx_cat_6ox | \n",
" oxy_renorm_factor_opx | \n",
" Al_IV_Opx_cat_6ox | \n",
" Al_VI_Opx_cat_6ox | \n",
" Si_Ti_Opx_cat_6ox | \n",
" En_Simple_MgFeCa_Opx | \n",
" Fs_Simple_MgFeCa_Opx | \n",
" Wo_Simple_MgFeCa_Opx | \n",
" Cation_Sum_Opx | \n",
" Ca_CaMgFe | \n",
" NaAlSi2O6 | \n",
" FmTiAlSiO6 | \n",
" CrAl2SiO6 | \n",
" FmAl2SiO6 | \n",
" CaFmSi2O6 | \n",
" Fm2Si2O6 | \n",
" En_Opx | \n",
" Di_Opx | \n",
" Mgno_OPX | \n",
" En | \n",
" Kd_Fe_Mg_Cpx_Opx | \n",
" Lindley_Fe3_Opx | \n",
" a_Di_cpx | \n",
" Kf | \n",
" a_En_opx_mod | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 2.187907 | \n",
" N | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 52.30 | \n",
" 0.70 | \n",
" 3.00 | \n",
" 5.10 | \n",
" 0.11 | \n",
" 16.60 | \n",
" 21.50 | \n",
" 0.33 | \n",
" 0 | \n",
" 0.58 | \n",
" 0 | \n",
" 1.912184 | \n",
" 0.904784 | \n",
" 0.155939 | \n",
" 0.842247 | \n",
" 0.129273 | \n",
" 0.023393 | \n",
" 0.0 | \n",
" 0.003406 | \n",
" 0.019251 | \n",
" 0.016765 | \n",
" 0.0 | \n",
" 0.087816 | \n",
" 0.041457 | \n",
" 0.475459 | \n",
" 0.081945 | \n",
" 0.442596 | \n",
" 4.007242 | \n",
" 0.442596 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 0.092887 | \n",
" 0.008383 | \n",
" 0.122977 | \n",
" 0.852984 | \n",
" 0.023393 | \n",
" 0 | \n",
" 0.018064 | \n",
" 0.034876 | \n",
" 0.780925 | \n",
" 0.139899 | \n",
" 0.780925 | \n",
" 0.663987 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 55.00 | \n",
" 0.34 | \n",
" 1.50 | \n",
" 11.30 | \n",
" 0.24 | \n",
" 30.70 | \n",
" 0.90 | \n",
" 0.01 | \n",
" 0 | \n",
" 0.19 | \n",
" 0 | \n",
" 1.943665 | \n",
" 1.617356 | \n",
" 0.333959 | \n",
" 0.034078 | \n",
" 0.062475 | \n",
" 0.000685 | \n",
" 0.0 | \n",
" 0.007184 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.0 | \n",
" 0.056335 | \n",
" 0.006140 | \n",
" 1.952703 | \n",
" 0.814628 | \n",
" 0.168208 | \n",
" 0.017164 | \n",
" 4.013748 | \n",
" 0.017164 | \n",
" 0.000685 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.000146 | \n",
" 0.034078 | \n",
" 0.957618 | \n",
" 0.790815 | \n",
" 0.028142 | \n",
" 0.828850 | \n",
" 0.871733 | \n",
" 0.834684 | \n",
" 0.027496 | \n",
" 0.604991 | \n",
" 0.216022 | \n",
" 0.645067 | \n",
"
\n",
" \n",
" 1 | \n",
" 16.535654 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
" 1.830350 | \n",
" 1.129447 | \n",
" 0.198073 | \n",
" 0.443816 | \n",
" 0.349659 | \n",
" 0.043931 | \n",
" 0.0 | \n",
" 0.004498 | \n",
" 0.007456 | \n",
" 0.001399 | \n",
" 0.0 | \n",
" 0.169650 | \n",
" 0.180009 | \n",
" 0.637624 | \n",
" 0.111821 | \n",
" 0.250554 | \n",
" 4.008630 | \n",
" 0.250554 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 0.087138 | \n",
" 0.000700 | \n",
" 0.411086 | \n",
" 0.850790 | \n",
" 0.043931 | \n",
" 0 | \n",
" 0.136078 | \n",
" 0.016786 | \n",
" 0.290252 | \n",
" 0.518634 | \n",
" 0.290252 | \n",
" 0.246111 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
" 1.823396 | \n",
" 1.516444 | \n",
" 0.245370 | \n",
" 0.079334 | \n",
" 0.330303 | \n",
" 0.009392 | \n",
" 0.0 | \n",
" 0.004103 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.176604 | \n",
" 0.153699 | \n",
" 1.827300 | \n",
" 0.823640 | \n",
" 0.133270 | \n",
" 0.043089 | \n",
" 4.012245 | \n",
" 0.043089 | \n",
" 0.009392 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.144307 | \n",
" 0.079334 | \n",
" 0.769186 | \n",
" 0.660522 | \n",
" 0.068126 | \n",
" 0.860725 | \n",
" 0.678544 | \n",
" 1.083837 | \n",
" 0.024489 | \n",
" 0.386810 | \n",
" 0.142639 | \n",
" 0.569045 | \n",
"
\n",
" \n",
" 2 | \n",
" 14.450339 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
" 1.835204 | \n",
" 1.078405 | \n",
" 0.207416 | \n",
" 0.481084 | \n",
" 0.340188 | \n",
" 0.038691 | \n",
" 0.0 | \n",
" 0.005131 | \n",
" 0.012062 | \n",
" 0.002536 | \n",
" 0.0 | \n",
" 0.164796 | \n",
" 0.175393 | \n",
" 0.610336 | \n",
" 0.117390 | \n",
" 0.272275 | \n",
" 4.000717 | \n",
" 0.272275 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 0.006917 | \n",
" 0.001268 | \n",
" 0.388642 | \n",
" 0.838685 | \n",
" 0.038691 | \n",
" 0 | \n",
" 0.136701 | \n",
" 0.014047 | \n",
" 0.329068 | \n",
" 0.478377 | \n",
" 0.329068 | \n",
" 0.274889 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
" 1.839965 | \n",
" 1.505530 | \n",
" 0.254529 | \n",
" 0.087825 | \n",
" 0.301638 | \n",
" 0.009388 | \n",
" 0.0 | \n",
" 0.003808 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.0 | \n",
" 0.160035 | \n",
" 0.141603 | \n",
" 1.845168 | \n",
" 0.814732 | \n",
" 0.137741 | \n",
" 0.047527 | \n",
" 4.008433 | \n",
" 0.047527 | \n",
" 0.009388 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.131669 | \n",
" 0.087825 | \n",
" 0.769585 | \n",
" 0.656871 | \n",
" 0.074962 | \n",
" 0.855382 | \n",
" 0.674378 | \n",
" 1.137662 | \n",
" 0.016867 | \n",
" 0.412205 | \n",
" 0.169248 | \n",
" 0.562463 | \n",
"
\n",
" \n",
" 3 | \n",
" 2.380005 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
" 1.914576 | \n",
" 0.882079 | \n",
" 0.193792 | \n",
" 0.836461 | \n",
" 0.139648 | \n",
" 0.019629 | \n",
" 0.0 | \n",
" 0.003811 | \n",
" 0.017487 | \n",
" 0.000296 | \n",
" 0.0 | \n",
" 0.085424 | \n",
" 0.054224 | \n",
" 0.461258 | \n",
" 0.101338 | \n",
" 0.437404 | \n",
" 4.007780 | \n",
" 0.437404 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 0.080287 | \n",
" 0.000148 | \n",
" 0.132428 | \n",
" 0.819869 | \n",
" 0.019629 | \n",
" 0 | \n",
" 0.034595 | \n",
" 0.025415 | \n",
" 0.776303 | \n",
" 0.149784 | \n",
" 0.776303 | \n",
" 0.634224 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
" 1.968730 | \n",
" 1.595973 | \n",
" 0.304805 | \n",
" 0.063492 | \n",
" 0.050066 | \n",
" 0.002076 | \n",
" 0.0 | \n",
" 0.006652 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.0 | \n",
" 0.031270 | \n",
" 0.018796 | \n",
" 1.973295 | \n",
" 0.812502 | \n",
" 0.155175 | \n",
" 0.032324 | \n",
" 4.000594 | \n",
" 0.032324 | \n",
" 0.002076 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.012486 | \n",
" 0.063492 | \n",
" 0.913443 | \n",
" 0.764291 | \n",
" 0.053125 | \n",
" 0.839637 | \n",
" 0.812807 | \n",
" 1.150356 | \n",
" 0.001187 | \n",
" 0.601746 | \n",
" 0.388240 | \n",
" 0.636705 | \n",
"
\n",
" \n",
" 4 | \n",
" 4.099411 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
" 1.947746 | \n",
" 0.920861 | \n",
" 0.180851 | \n",
" 0.811362 | \n",
" 0.096868 | \n",
" 0.019831 | \n",
" 0.0 | \n",
" 0.004641 | \n",
" 0.013189 | \n",
" 0.003466 | \n",
" 0.0 | \n",
" 0.052254 | \n",
" 0.044614 | \n",
" 0.481352 | \n",
" 0.094534 | \n",
" 0.424114 | \n",
" 3.998814 | \n",
" 0.424114 | \n",
" 0.000000 | \n",
" 0.180851 | \n",
" 0.000000 | \n",
" 0.001733 | \n",
" 0.158665 | \n",
" 0.835841 | \n",
" 0.019831 | \n",
" 0 | \n",
" 0.024783 | \n",
" 0.013736 | \n",
" 0.771110 | \n",
" 0.165301 | \n",
" 0.771110 | \n",
" 0.641826 | \n",
" -0.002372 | \n",
" 0.183222 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
" 1.971271 | \n",
" 1.611274 | \n",
" 0.297687 | \n",
" 0.039377 | \n",
" 0.058165 | \n",
" 0.001357 | \n",
" 0.0 | \n",
" 0.007708 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.0 | \n",
" 0.028729 | \n",
" 0.029435 | \n",
" 1.974693 | \n",
" 0.826999 | \n",
" 0.152790 | \n",
" 0.020211 | \n",
" 3.994689 | \n",
" 0.020211 | \n",
" 0.001357 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.023651 | \n",
" 0.039377 | \n",
" 0.925110 | \n",
" 0.777706 | \n",
" 0.033103 | \n",
" 0.844054 | \n",
" 0.829605 | \n",
" 1.063003 | \n",
" 0.000000 | \n",
" 0.585107 | \n",
" 0.208745 | \n",
" 0.652532 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc High T Kd Eq? Equation Choice (P) Low T Kd Eq? SiO2_Cpx \\\n",
"0 2.187907 N P_Put2008_eq38 Y 52.30 \n",
"1 16.535654 Y P_Put2008_eq38 Y 51.70 \n",
"2 14.450339 Y P_Put2008_eq38 Y 51.50 \n",
"3 2.380005 Y P_Put2008_eq38 Y 51.06 \n",
"4 4.099411 Y P_Put2008_eq38 Y 53.32 \n",
"\n",
" TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx Na2O_Cpx \\\n",
"0 0.70 3.00 5.10 0.11 16.60 21.50 0.33 \n",
"1 0.28 8.38 6.69 0.15 21.40 11.70 0.64 \n",
"2 0.45 8.10 6.96 0.17 20.30 12.60 0.56 \n",
"3 0.62 3.16 6.18 0.12 15.78 20.82 0.27 \n",
"4 0.48 2.25 5.92 0.15 16.91 20.73 0.28 \n",
"\n",
" K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx Si_Cpx_cat_6ox Mg_Cpx_cat_6ox \\\n",
"0 0 0.58 0 1.912184 0.904784 \n",
"1 0 0.05 1 1.830350 1.129447 \n",
"2 0 0.09 2 1.835204 1.078405 \n",
"3 0 0.01 3 1.914576 0.882079 \n",
"4 0 0.12 4 1.947746 0.920861 \n",
"\n",
" Fet_Cpx_cat_6ox Ca_Cpx_cat_6ox Al_Cpx_cat_6ox Na_Cpx_cat_6ox \\\n",
"0 0.155939 0.842247 0.129273 0.023393 \n",
"1 0.198073 0.443816 0.349659 0.043931 \n",
"2 0.207416 0.481084 0.340188 0.038691 \n",
"3 0.193792 0.836461 0.139648 0.019629 \n",
"4 0.180851 0.811362 0.096868 0.019831 \n",
"\n",
" K_Cpx_cat_6ox Mn_Cpx_cat_6ox Ti_Cpx_cat_6ox Cr_Cpx_cat_6ox \\\n",
"0 0.0 0.003406 0.019251 0.016765 \n",
"1 0.0 0.004498 0.007456 0.001399 \n",
"2 0.0 0.005131 0.012062 0.002536 \n",
"3 0.0 0.003811 0.017487 0.000296 \n",
"4 0.0 0.004641 0.013189 0.003466 \n",
"\n",
" oxy_renorm_factor Al_IV_cat_6ox Al_VI_cat_6ox En_Simple_MgFeCa_Cpx \\\n",
"0 0.0 0.087816 0.041457 0.475459 \n",
"1 0.0 0.169650 0.180009 0.637624 \n",
"2 0.0 0.164796 0.175393 0.610336 \n",
"3 0.0 0.085424 0.054224 0.461258 \n",
"4 0.0 0.052254 0.044614 0.481352 \n",
"\n",
" Fs_Simple_MgFeCa_Cpx Wo_Simple_MgFeCa_Cpx Cation_Sum_Cpx Ca_CaMgFe \\\n",
"0 0.081945 0.442596 4.007242 0.442596 \n",
"1 0.111821 0.250554 4.008630 0.250554 \n",
"2 0.117390 0.272275 4.000717 0.272275 \n",
"3 0.101338 0.437404 4.007780 0.437404 \n",
"4 0.094534 0.424114 3.998814 0.424114 \n",
"\n",
" Lindley_Fe3_Cpx Lindley_Fe2_Cpx Lindley_Fe3_Cpx_prop CrCaTs a_cpx_En \\\n",
"0 0.014485 0.141454 0.092887 0.008383 0.122977 \n",
"1 0.017260 0.180814 0.087138 0.000700 0.411086 \n",
"2 0.001435 0.205981 0.006917 0.001268 0.388642 \n",
"3 0.015559 0.178233 0.080287 0.000148 0.132428 \n",
"4 0.000000 0.180851 0.000000 0.001733 0.158665 \n",
"\n",
" Mgno_Cpx Jd Jd_from 0=Na, 1=Al CaTs CaTi DiHd_1996 \\\n",
"0 0.852984 0.023393 0 0.018064 0.034876 0.780925 \n",
"1 0.850790 0.043931 0 0.136078 0.016786 0.290252 \n",
"2 0.838685 0.038691 0 0.136701 0.014047 0.329068 \n",
"3 0.819869 0.019629 0 0.034595 0.025415 0.776303 \n",
"4 0.835841 0.019831 0 0.024783 0.013736 0.771110 \n",
"\n",
" EnFs DiHd_2003 Di_Cpx FeIII_Wang21 FeII_Wang21 SiO2_Opx \\\n",
"0 0.139899 0.780925 0.663987 0.014485 0.141454 55.00 \n",
"1 0.518634 0.290252 0.246111 0.017260 0.180814 52.70 \n",
"2 0.478377 0.329068 0.274889 0.001435 0.205981 53.20 \n",
"3 0.149784 0.776303 0.634224 0.015559 0.178233 55.15 \n",
"4 0.165301 0.771110 0.641826 -0.002372 0.183222 56.32 \n",
"\n",
" TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx Na2O_Opx \\\n",
"0 0.34 1.50 11.30 0.24 30.70 0.90 0.01 \n",
"1 0.15 8.10 8.48 0.14 29.40 2.14 0.14 \n",
"2 0.20 7.40 8.80 0.13 29.20 2.37 0.14 \n",
"3 0.17 1.19 10.21 0.22 29.99 1.66 0.03 \n",
"4 0.13 1.41 10.17 0.26 30.88 1.05 0.02 \n",
"\n",
" K2O_Opx Cr2O3_Opx Sample_ID_Opx Si_Opx_cat_6ox Mg_Opx_cat_6ox \\\n",
"0 0 0.19 0 1.943665 1.617356 \n",
"1 0 0.00 1 1.823396 1.516444 \n",
"2 0 0.02 2 1.839965 1.505530 \n",
"3 0 0.15 3 1.968730 1.595973 \n",
"4 0 0.16 4 1.971271 1.611274 \n",
"\n",
" Fet_Opx_cat_6ox Ca_Opx_cat_6ox Al_Opx_cat_6ox Na_Opx_cat_6ox \\\n",
"0 0.333959 0.034078 0.062475 0.000685 \n",
"1 0.245370 0.079334 0.330303 0.009392 \n",
"2 0.254529 0.087825 0.301638 0.009388 \n",
"3 0.304805 0.063492 0.050066 0.002076 \n",
"4 0.297687 0.039377 0.058165 0.001357 \n",
"\n",
" K_Opx_cat_6ox Mn_Opx_cat_6ox Ti_Opx_cat_6ox Cr_Opx_cat_6ox \\\n",
"0 0.0 0.007184 0.009038 0.005308 \n",
"1 0.0 0.004103 0.003904 0.000000 \n",
"2 0.0 0.003808 0.005203 0.000547 \n",
"3 0.0 0.006652 0.004565 0.004233 \n",
"4 0.0 0.007708 0.003423 0.004427 \n",
"\n",
" oxy_renorm_factor_opx Al_IV_Opx_cat_6ox Al_VI_Opx_cat_6ox \\\n",
"0 0.0 0.056335 0.006140 \n",
"1 0.0 0.176604 0.153699 \n",
"2 0.0 0.160035 0.141603 \n",
"3 0.0 0.031270 0.018796 \n",
"4 0.0 0.028729 0.029435 \n",
"\n",
" Si_Ti_Opx_cat_6ox En_Simple_MgFeCa_Opx Fs_Simple_MgFeCa_Opx \\\n",
"0 1.952703 0.814628 0.168208 \n",
"1 1.827300 0.823640 0.133270 \n",
"2 1.845168 0.814732 0.137741 \n",
"3 1.973295 0.812502 0.155175 \n",
"4 1.974693 0.826999 0.152790 \n",
"\n",
" Wo_Simple_MgFeCa_Opx Cation_Sum_Opx Ca_CaMgFe NaAlSi2O6 FmTiAlSiO6 \\\n",
"0 0.017164 4.013748 0.017164 0.000685 0.009038 \n",
"1 0.043089 4.012245 0.043089 0.009392 0.003904 \n",
"2 0.047527 4.008433 0.047527 0.009388 0.005203 \n",
"3 0.032324 4.000594 0.032324 0.002076 0.004565 \n",
"4 0.020211 3.994689 0.020211 0.001357 0.003423 \n",
"\n",
" CrAl2SiO6 FmAl2SiO6 CaFmSi2O6 Fm2Si2O6 En_Opx Di_Opx Mgno_OPX \\\n",
"0 0.005308 0.000146 0.034078 0.957618 0.790815 0.028142 0.828850 \n",
"1 0.000000 0.144307 0.079334 0.769186 0.660522 0.068126 0.860725 \n",
"2 0.000547 0.131669 0.087825 0.769585 0.656871 0.074962 0.855382 \n",
"3 0.004233 0.012486 0.063492 0.913443 0.764291 0.053125 0.839637 \n",
"4 0.004427 0.023651 0.039377 0.925110 0.777706 0.033103 0.844054 \n",
"\n",
" En Kd_Fe_Mg_Cpx_Opx Lindley_Fe3_Opx a_Di_cpx Kf \\\n",
"0 0.871733 0.834684 0.027496 0.604991 0.216022 \n",
"1 0.678544 1.083837 0.024489 0.386810 0.142639 \n",
"2 0.674378 1.137662 0.016867 0.412205 0.169248 \n",
"3 0.812807 1.150356 0.001187 0.601746 0.388240 \n",
"4 0.829605 1.063003 0.000000 0.585107 0.208745 \n",
"\n",
" a_En_opx_mod \n",
"0 0.645067 \n",
"1 0.569045 \n",
"2 0.562463 \n",
"3 0.636705 \n",
"4 0.652532 "
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Eq38_EqTests=pt.calculate_cpx_opx_press(opx_comps=Opxs, cpx_comps=Cpxs, \n",
" equationP=\"P_Put2008_eq38\", eq_tests=True)\n",
"P_Eq38_EqTests.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### You can then filter this to get only ones in high T equilibrium"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" P_kbar_calc | \n",
" High T Kd Eq? | \n",
" Equation Choice (P) | \n",
" Low T Kd Eq? | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
" Si_Cpx_cat_6ox | \n",
" Mg_Cpx_cat_6ox | \n",
" Fet_Cpx_cat_6ox | \n",
" Ca_Cpx_cat_6ox | \n",
" Al_Cpx_cat_6ox | \n",
" Na_Cpx_cat_6ox | \n",
" K_Cpx_cat_6ox | \n",
" Mn_Cpx_cat_6ox | \n",
" Ti_Cpx_cat_6ox | \n",
" Cr_Cpx_cat_6ox | \n",
" oxy_renorm_factor | \n",
" Al_IV_cat_6ox | \n",
" Al_VI_cat_6ox | \n",
" En_Simple_MgFeCa_Cpx | \n",
" Fs_Simple_MgFeCa_Cpx | \n",
" Wo_Simple_MgFeCa_Cpx | \n",
" Cation_Sum_Cpx | \n",
" Ca_CaMgFe | \n",
" Lindley_Fe3_Cpx | \n",
" Lindley_Fe2_Cpx | \n",
" Lindley_Fe3_Cpx_prop | \n",
" CrCaTs | \n",
" a_cpx_En | \n",
" Mgno_Cpx | \n",
" Jd | \n",
" Jd_from 0=Na, 1=Al | \n",
" CaTs | \n",
" CaTi | \n",
" DiHd_1996 | \n",
" EnFs | \n",
" DiHd_2003 | \n",
" Di_Cpx | \n",
" FeIII_Wang21 | \n",
" FeII_Wang21 | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
" Si_Opx_cat_6ox | \n",
" Mg_Opx_cat_6ox | \n",
" Fet_Opx_cat_6ox | \n",
" Ca_Opx_cat_6ox | \n",
" Al_Opx_cat_6ox | \n",
" Na_Opx_cat_6ox | \n",
" K_Opx_cat_6ox | \n",
" Mn_Opx_cat_6ox | \n",
" Ti_Opx_cat_6ox | \n",
" Cr_Opx_cat_6ox | \n",
" oxy_renorm_factor_opx | \n",
" Al_IV_Opx_cat_6ox | \n",
" Al_VI_Opx_cat_6ox | \n",
" Si_Ti_Opx_cat_6ox | \n",
" En_Simple_MgFeCa_Opx | \n",
" Fs_Simple_MgFeCa_Opx | \n",
" Wo_Simple_MgFeCa_Opx | \n",
" Cation_Sum_Opx | \n",
" Ca_CaMgFe | \n",
" NaAlSi2O6 | \n",
" FmTiAlSiO6 | \n",
" CrAl2SiO6 | \n",
" FmAl2SiO6 | \n",
" CaFmSi2O6 | \n",
" Fm2Si2O6 | \n",
" En_Opx | \n",
" Di_Opx | \n",
" Mgno_OPX | \n",
" En | \n",
" Kd_Fe_Mg_Cpx_Opx | \n",
" Lindley_Fe3_Opx | \n",
" a_Di_cpx | \n",
" Kf | \n",
" a_En_opx_mod | \n",
"
\n",
" \n",
" \n",
" \n",
" 1 | \n",
" 16.535654 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
" 1.830350 | \n",
" 1.129447 | \n",
" 0.198073 | \n",
" 0.443816 | \n",
" 0.349659 | \n",
" 0.043931 | \n",
" 0.0 | \n",
" 0.004498 | \n",
" 0.007456 | \n",
" 0.001399 | \n",
" 0.0 | \n",
" 0.169650 | \n",
" 0.180009 | \n",
" 0.637624 | \n",
" 0.111821 | \n",
" 0.250554 | \n",
" 4.008630 | \n",
" 0.250554 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 0.087138 | \n",
" 0.000700 | \n",
" 0.411086 | \n",
" 0.850790 | \n",
" 0.043931 | \n",
" 0 | \n",
" 0.136078 | \n",
" 0.016786 | \n",
" 0.290252 | \n",
" 0.518634 | \n",
" 0.290252 | \n",
" 0.246111 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
" 1.823396 | \n",
" 1.516444 | \n",
" 0.245370 | \n",
" 0.079334 | \n",
" 0.330303 | \n",
" 0.009392 | \n",
" 0.0 | \n",
" 0.004103 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.176604 | \n",
" 0.153699 | \n",
" 1.827300 | \n",
" 0.823640 | \n",
" 0.133270 | \n",
" 0.043089 | \n",
" 4.012245 | \n",
" 0.043089 | \n",
" 0.009392 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.144307 | \n",
" 0.079334 | \n",
" 0.769186 | \n",
" 0.660522 | \n",
" 0.068126 | \n",
" 0.860725 | \n",
" 0.678544 | \n",
" 1.083837 | \n",
" 0.024489 | \n",
" 0.386810 | \n",
" 0.142639 | \n",
" 0.569045 | \n",
"
\n",
" \n",
" 2 | \n",
" 14.450339 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
" 1.835204 | \n",
" 1.078405 | \n",
" 0.207416 | \n",
" 0.481084 | \n",
" 0.340188 | \n",
" 0.038691 | \n",
" 0.0 | \n",
" 0.005131 | \n",
" 0.012062 | \n",
" 0.002536 | \n",
" 0.0 | \n",
" 0.164796 | \n",
" 0.175393 | \n",
" 0.610336 | \n",
" 0.117390 | \n",
" 0.272275 | \n",
" 4.000717 | \n",
" 0.272275 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 0.006917 | \n",
" 0.001268 | \n",
" 0.388642 | \n",
" 0.838685 | \n",
" 0.038691 | \n",
" 0 | \n",
" 0.136701 | \n",
" 0.014047 | \n",
" 0.329068 | \n",
" 0.478377 | \n",
" 0.329068 | \n",
" 0.274889 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
" 1.839965 | \n",
" 1.505530 | \n",
" 0.254529 | \n",
" 0.087825 | \n",
" 0.301638 | \n",
" 0.009388 | \n",
" 0.0 | \n",
" 0.003808 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.0 | \n",
" 0.160035 | \n",
" 0.141603 | \n",
" 1.845168 | \n",
" 0.814732 | \n",
" 0.137741 | \n",
" 0.047527 | \n",
" 4.008433 | \n",
" 0.047527 | \n",
" 0.009388 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.131669 | \n",
" 0.087825 | \n",
" 0.769585 | \n",
" 0.656871 | \n",
" 0.074962 | \n",
" 0.855382 | \n",
" 0.674378 | \n",
" 1.137662 | \n",
" 0.016867 | \n",
" 0.412205 | \n",
" 0.169248 | \n",
" 0.562463 | \n",
"
\n",
" \n",
" 3 | \n",
" 2.380005 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
" 1.914576 | \n",
" 0.882079 | \n",
" 0.193792 | \n",
" 0.836461 | \n",
" 0.139648 | \n",
" 0.019629 | \n",
" 0.0 | \n",
" 0.003811 | \n",
" 0.017487 | \n",
" 0.000296 | \n",
" 0.0 | \n",
" 0.085424 | \n",
" 0.054224 | \n",
" 0.461258 | \n",
" 0.101338 | \n",
" 0.437404 | \n",
" 4.007780 | \n",
" 0.437404 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 0.080287 | \n",
" 0.000148 | \n",
" 0.132428 | \n",
" 0.819869 | \n",
" 0.019629 | \n",
" 0 | \n",
" 0.034595 | \n",
" 0.025415 | \n",
" 0.776303 | \n",
" 0.149784 | \n",
" 0.776303 | \n",
" 0.634224 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
" 1.968730 | \n",
" 1.595973 | \n",
" 0.304805 | \n",
" 0.063492 | \n",
" 0.050066 | \n",
" 0.002076 | \n",
" 0.0 | \n",
" 0.006652 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.0 | \n",
" 0.031270 | \n",
" 0.018796 | \n",
" 1.973295 | \n",
" 0.812502 | \n",
" 0.155175 | \n",
" 0.032324 | \n",
" 4.000594 | \n",
" 0.032324 | \n",
" 0.002076 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.012486 | \n",
" 0.063492 | \n",
" 0.913443 | \n",
" 0.764291 | \n",
" 0.053125 | \n",
" 0.839637 | \n",
" 0.812807 | \n",
" 1.150356 | \n",
" 0.001187 | \n",
" 0.601746 | \n",
" 0.388240 | \n",
" 0.636705 | \n",
"
\n",
" \n",
" 4 | \n",
" 4.099411 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
" 1.947746 | \n",
" 0.920861 | \n",
" 0.180851 | \n",
" 0.811362 | \n",
" 0.096868 | \n",
" 0.019831 | \n",
" 0.0 | \n",
" 0.004641 | \n",
" 0.013189 | \n",
" 0.003466 | \n",
" 0.0 | \n",
" 0.052254 | \n",
" 0.044614 | \n",
" 0.481352 | \n",
" 0.094534 | \n",
" 0.424114 | \n",
" 3.998814 | \n",
" 0.424114 | \n",
" 0.000000 | \n",
" 0.180851 | \n",
" 0.000000 | \n",
" 0.001733 | \n",
" 0.158665 | \n",
" 0.835841 | \n",
" 0.019831 | \n",
" 0 | \n",
" 0.024783 | \n",
" 0.013736 | \n",
" 0.771110 | \n",
" 0.165301 | \n",
" 0.771110 | \n",
" 0.641826 | \n",
" -0.002372 | \n",
" 0.183222 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
" 1.971271 | \n",
" 1.611274 | \n",
" 0.297687 | \n",
" 0.039377 | \n",
" 0.058165 | \n",
" 0.001357 | \n",
" 0.0 | \n",
" 0.007708 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.0 | \n",
" 0.028729 | \n",
" 0.029435 | \n",
" 1.974693 | \n",
" 0.826999 | \n",
" 0.152790 | \n",
" 0.020211 | \n",
" 3.994689 | \n",
" 0.020211 | \n",
" 0.001357 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.023651 | \n",
" 0.039377 | \n",
" 0.925110 | \n",
" 0.777706 | \n",
" 0.033103 | \n",
" 0.844054 | \n",
" 0.829605 | \n",
" 1.063003 | \n",
" 0.000000 | \n",
" 0.585107 | \n",
" 0.208745 | \n",
" 0.652532 | \n",
"
\n",
" \n",
" 5 | \n",
" 14.809877 | \n",
" Y | \n",
" P_Put2008_eq38 | \n",
" Y | \n",
" 51.58 | \n",
" 0.00 | \n",
" 7.28 | \n",
" 3.75 | \n",
" 0.00 | \n",
" 19.55 | \n",
" 15.94 | \n",
" 0.70 | \n",
" 0 | \n",
" 1.20 | \n",
" 5 | \n",
" 1.847739 | \n",
" 1.044034 | \n",
" 0.112343 | \n",
" 0.611816 | \n",
" 0.307360 | \n",
" 0.048619 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.033985 | \n",
" 0.0 | \n",
" 0.152261 | \n",
" 0.155100 | \n",
" 0.590452 | \n",
" 0.063536 | \n",
" 0.346012 | \n",
" 4.005897 | \n",
" 0.346012 | \n",
" 0.011794 | \n",
" 0.100549 | \n",
" 0.104985 | \n",
" 0.016993 | \n",
" 0.273356 | \n",
" 0.902846 | \n",
" 0.048619 | \n",
" 0 | \n",
" 0.106481 | \n",
" 0.022890 | \n",
" 0.465453 | \n",
" 0.345462 | \n",
" 0.465453 | \n",
" 0.420233 | \n",
" 0.011794 | \n",
" 0.100549 | \n",
" 54.40 | \n",
" 0.00 | \n",
" 5.40 | \n",
" 5.90 | \n",
" 0.00 | \n",
" 31.20 | \n",
" 2.30 | \n",
" 0.20 | \n",
" 0 | \n",
" 0.60 | \n",
" 5 | \n",
" 1.884939 | \n",
" 1.611616 | \n",
" 0.170965 | \n",
" 0.085388 | \n",
" 0.220521 | \n",
" 0.013436 | \n",
" 0.0 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.016436 | \n",
" 0.0 | \n",
" 0.115061 | \n",
" 0.105459 | \n",
" 1.884939 | \n",
" 0.862764 | \n",
" 0.091524 | \n",
" 0.045712 | \n",
" 4.003301 | \n",
" 0.045712 | \n",
" 0.013436 | \n",
" 0.000000 | \n",
" 0.016436 | \n",
" 0.075587 | \n",
" 0.085388 | \n",
" 0.810802 | \n",
" 0.733040 | \n",
" 0.077199 | \n",
" 0.904089 | \n",
" 0.757966 | \n",
" 1.014348 | \n",
" 0.006602 | \n",
" 0.496311 | \n",
" 0.219969 | \n",
" 0.647330 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" P_kbar_calc High T Kd Eq? Equation Choice (P) Low T Kd Eq? SiO2_Cpx \\\n",
"1 16.535654 Y P_Put2008_eq38 Y 51.70 \n",
"2 14.450339 Y P_Put2008_eq38 Y 51.50 \n",
"3 2.380005 Y P_Put2008_eq38 Y 51.06 \n",
"4 4.099411 Y P_Put2008_eq38 Y 53.32 \n",
"5 14.809877 Y P_Put2008_eq38 Y 51.58 \n",
"\n",
" TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx Na2O_Cpx \\\n",
"1 0.28 8.38 6.69 0.15 21.40 11.70 0.64 \n",
"2 0.45 8.10 6.96 0.17 20.30 12.60 0.56 \n",
"3 0.62 3.16 6.18 0.12 15.78 20.82 0.27 \n",
"4 0.48 2.25 5.92 0.15 16.91 20.73 0.28 \n",
"5 0.00 7.28 3.75 0.00 19.55 15.94 0.70 \n",
"\n",
" K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx Si_Cpx_cat_6ox Mg_Cpx_cat_6ox \\\n",
"1 0 0.05 1 1.830350 1.129447 \n",
"2 0 0.09 2 1.835204 1.078405 \n",
"3 0 0.01 3 1.914576 0.882079 \n",
"4 0 0.12 4 1.947746 0.920861 \n",
"5 0 1.20 5 1.847739 1.044034 \n",
"\n",
" Fet_Cpx_cat_6ox Ca_Cpx_cat_6ox Al_Cpx_cat_6ox Na_Cpx_cat_6ox \\\n",
"1 0.198073 0.443816 0.349659 0.043931 \n",
"2 0.207416 0.481084 0.340188 0.038691 \n",
"3 0.193792 0.836461 0.139648 0.019629 \n",
"4 0.180851 0.811362 0.096868 0.019831 \n",
"5 0.112343 0.611816 0.307360 0.048619 \n",
"\n",
" K_Cpx_cat_6ox Mn_Cpx_cat_6ox Ti_Cpx_cat_6ox Cr_Cpx_cat_6ox \\\n",
"1 0.0 0.004498 0.007456 0.001399 \n",
"2 0.0 0.005131 0.012062 0.002536 \n",
"3 0.0 0.003811 0.017487 0.000296 \n",
"4 0.0 0.004641 0.013189 0.003466 \n",
"5 0.0 0.000000 0.000000 0.033985 \n",
"\n",
" oxy_renorm_factor Al_IV_cat_6ox Al_VI_cat_6ox En_Simple_MgFeCa_Cpx \\\n",
"1 0.0 0.169650 0.180009 0.637624 \n",
"2 0.0 0.164796 0.175393 0.610336 \n",
"3 0.0 0.085424 0.054224 0.461258 \n",
"4 0.0 0.052254 0.044614 0.481352 \n",
"5 0.0 0.152261 0.155100 0.590452 \n",
"\n",
" Fs_Simple_MgFeCa_Cpx Wo_Simple_MgFeCa_Cpx Cation_Sum_Cpx Ca_CaMgFe \\\n",
"1 0.111821 0.250554 4.008630 0.250554 \n",
"2 0.117390 0.272275 4.000717 0.272275 \n",
"3 0.101338 0.437404 4.007780 0.437404 \n",
"4 0.094534 0.424114 3.998814 0.424114 \n",
"5 0.063536 0.346012 4.005897 0.346012 \n",
"\n",
" Lindley_Fe3_Cpx Lindley_Fe2_Cpx Lindley_Fe3_Cpx_prop CrCaTs a_cpx_En \\\n",
"1 0.017260 0.180814 0.087138 0.000700 0.411086 \n",
"2 0.001435 0.205981 0.006917 0.001268 0.388642 \n",
"3 0.015559 0.178233 0.080287 0.000148 0.132428 \n",
"4 0.000000 0.180851 0.000000 0.001733 0.158665 \n",
"5 0.011794 0.100549 0.104985 0.016993 0.273356 \n",
"\n",
" Mgno_Cpx Jd Jd_from 0=Na, 1=Al CaTs CaTi DiHd_1996 \\\n",
"1 0.850790 0.043931 0 0.136078 0.016786 0.290252 \n",
"2 0.838685 0.038691 0 0.136701 0.014047 0.329068 \n",
"3 0.819869 0.019629 0 0.034595 0.025415 0.776303 \n",
"4 0.835841 0.019831 0 0.024783 0.013736 0.771110 \n",
"5 0.902846 0.048619 0 0.106481 0.022890 0.465453 \n",
"\n",
" EnFs DiHd_2003 Di_Cpx FeIII_Wang21 FeII_Wang21 SiO2_Opx \\\n",
"1 0.518634 0.290252 0.246111 0.017260 0.180814 52.70 \n",
"2 0.478377 0.329068 0.274889 0.001435 0.205981 53.20 \n",
"3 0.149784 0.776303 0.634224 0.015559 0.178233 55.15 \n",
"4 0.165301 0.771110 0.641826 -0.002372 0.183222 56.32 \n",
"5 0.345462 0.465453 0.420233 0.011794 0.100549 54.40 \n",
"\n",
" TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx Na2O_Opx \\\n",
"1 0.15 8.10 8.48 0.14 29.40 2.14 0.14 \n",
"2 0.20 7.40 8.80 0.13 29.20 2.37 0.14 \n",
"3 0.17 1.19 10.21 0.22 29.99 1.66 0.03 \n",
"4 0.13 1.41 10.17 0.26 30.88 1.05 0.02 \n",
"5 0.00 5.40 5.90 0.00 31.20 2.30 0.20 \n",
"\n",
" K2O_Opx Cr2O3_Opx Sample_ID_Opx Si_Opx_cat_6ox Mg_Opx_cat_6ox \\\n",
"1 0 0.00 1 1.823396 1.516444 \n",
"2 0 0.02 2 1.839965 1.505530 \n",
"3 0 0.15 3 1.968730 1.595973 \n",
"4 0 0.16 4 1.971271 1.611274 \n",
"5 0 0.60 5 1.884939 1.611616 \n",
"\n",
" Fet_Opx_cat_6ox Ca_Opx_cat_6ox Al_Opx_cat_6ox Na_Opx_cat_6ox \\\n",
"1 0.245370 0.079334 0.330303 0.009392 \n",
"2 0.254529 0.087825 0.301638 0.009388 \n",
"3 0.304805 0.063492 0.050066 0.002076 \n",
"4 0.297687 0.039377 0.058165 0.001357 \n",
"5 0.170965 0.085388 0.220521 0.013436 \n",
"\n",
" K_Opx_cat_6ox Mn_Opx_cat_6ox Ti_Opx_cat_6ox Cr_Opx_cat_6ox \\\n",
"1 0.0 0.004103 0.003904 0.000000 \n",
"2 0.0 0.003808 0.005203 0.000547 \n",
"3 0.0 0.006652 0.004565 0.004233 \n",
"4 0.0 0.007708 0.003423 0.004427 \n",
"5 0.0 0.000000 0.000000 0.016436 \n",
"\n",
" oxy_renorm_factor_opx Al_IV_Opx_cat_6ox Al_VI_Opx_cat_6ox \\\n",
"1 0.0 0.176604 0.153699 \n",
"2 0.0 0.160035 0.141603 \n",
"3 0.0 0.031270 0.018796 \n",
"4 0.0 0.028729 0.029435 \n",
"5 0.0 0.115061 0.105459 \n",
"\n",
" Si_Ti_Opx_cat_6ox En_Simple_MgFeCa_Opx Fs_Simple_MgFeCa_Opx \\\n",
"1 1.827300 0.823640 0.133270 \n",
"2 1.845168 0.814732 0.137741 \n",
"3 1.973295 0.812502 0.155175 \n",
"4 1.974693 0.826999 0.152790 \n",
"5 1.884939 0.862764 0.091524 \n",
"\n",
" Wo_Simple_MgFeCa_Opx Cation_Sum_Opx Ca_CaMgFe NaAlSi2O6 FmTiAlSiO6 \\\n",
"1 0.043089 4.012245 0.043089 0.009392 0.003904 \n",
"2 0.047527 4.008433 0.047527 0.009388 0.005203 \n",
"3 0.032324 4.000594 0.032324 0.002076 0.004565 \n",
"4 0.020211 3.994689 0.020211 0.001357 0.003423 \n",
"5 0.045712 4.003301 0.045712 0.013436 0.000000 \n",
"\n",
" CrAl2SiO6 FmAl2SiO6 CaFmSi2O6 Fm2Si2O6 En_Opx Di_Opx Mgno_OPX \\\n",
"1 0.000000 0.144307 0.079334 0.769186 0.660522 0.068126 0.860725 \n",
"2 0.000547 0.131669 0.087825 0.769585 0.656871 0.074962 0.855382 \n",
"3 0.004233 0.012486 0.063492 0.913443 0.764291 0.053125 0.839637 \n",
"4 0.004427 0.023651 0.039377 0.925110 0.777706 0.033103 0.844054 \n",
"5 0.016436 0.075587 0.085388 0.810802 0.733040 0.077199 0.904089 \n",
"\n",
" En Kd_Fe_Mg_Cpx_Opx Lindley_Fe3_Opx a_Di_cpx Kf \\\n",
"1 0.678544 1.083837 0.024489 0.386810 0.142639 \n",
"2 0.674378 1.137662 0.016867 0.412205 0.169248 \n",
"3 0.812807 1.150356 0.001187 0.601746 0.388240 \n",
"4 0.829605 1.063003 0.000000 0.585107 0.208745 \n",
"5 0.757966 1.014348 0.006602 0.496311 0.219969 \n",
"\n",
" a_En_opx_mod \n",
"1 0.569045 \n",
"2 0.562463 \n",
"3 0.636705 \n",
"4 0.652532 \n",
"5 0.647330 "
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_Eq38_EqTests_Filt=P_Eq38_EqTests.loc[P_Eq38_EqTests['High T Kd Eq?']==\"Y\"]\n",
"P_Eq38_EqTests_Filt.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 1b - Equation 39 (T-dependent)\n",
"- Equation 39 requires you to specify a temperature\n",
"- You can either specify T= constant (e.g, T=1300 K), or specify T=my_input['column name'] where column name is a heading storing temp in the input dataset"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 4.038935\n",
"1 2.201826\n",
"2 1.189798\n",
"3 3.239557\n",
"4 4.757423\n",
"dtype: float64"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Reading temperature from the column T_K in the input spreadsheet\n",
"P_Eq39_inputT=pt.calculate_cpx_opx_press(opx_comps=Opxs, cpx_comps=Cpxs, \n",
" equationP=\"P_Put2008_eq39\", T=my_input['T_K'])\n",
"P_Eq39_inputT.head() "
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 5.247185\n",
"1 3.410076\n",
"2 2.398048\n",
"3 4.447807\n",
"4 5.965673\n",
"dtype: float64"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Performing calculations at fixed temp (1300K)\n",
"P_Eq39_fixedT=pt.calculate_cpx_opx_press(opx_comps=Opxs, cpx_comps=Cpxs, \n",
" equationP=\"P_Put2008_eq39\", T=1300)\n",
"P_Eq39_fixedT.head() # Shows the first 5 outputs. Remove .head() to see them all"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2 - Calculating Temperature\n",
"- Similarly to pressure, there is a function called calculate_cpx_opx_temp which calculates Temp given Cpx, Opx compositions, an equation, and a pressure (if equation is P-sensitive)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 2a - Wood and Wells (1973)\n",
"- This equation is P-independent, so doesn't require a pressure"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" T_K_calc | \n",
" Equation Choice (T) | \n",
" High T Kd Eq? | \n",
" Low T Kd Eq? | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
" Si_Cpx_cat_6ox | \n",
" Mg_Cpx_cat_6ox | \n",
" Fet_Cpx_cat_6ox | \n",
" Ca_Cpx_cat_6ox | \n",
" Al_Cpx_cat_6ox | \n",
" Na_Cpx_cat_6ox | \n",
" K_Cpx_cat_6ox | \n",
" Mn_Cpx_cat_6ox | \n",
" Ti_Cpx_cat_6ox | \n",
" Cr_Cpx_cat_6ox | \n",
" oxy_renorm_factor | \n",
" Al_IV_cat_6ox | \n",
" Al_VI_cat_6ox | \n",
" En_Simple_MgFeCa_Cpx | \n",
" Fs_Simple_MgFeCa_Cpx | \n",
" Wo_Simple_MgFeCa_Cpx | \n",
" Cation_Sum_Cpx | \n",
" Ca_CaMgFe | \n",
" Lindley_Fe3_Cpx | \n",
" Lindley_Fe2_Cpx | \n",
" Lindley_Fe3_Cpx_prop | \n",
" CrCaTs | \n",
" a_cpx_En | \n",
" Mgno_Cpx | \n",
" Jd | \n",
" Jd_from 0=Na, 1=Al | \n",
" CaTs | \n",
" CaTi | \n",
" DiHd_1996 | \n",
" EnFs | \n",
" DiHd_2003 | \n",
" Di_Cpx | \n",
" FeIII_Wang21 | \n",
" FeII_Wang21 | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
" Si_Opx_cat_6ox | \n",
" Mg_Opx_cat_6ox | \n",
" Fet_Opx_cat_6ox | \n",
" Ca_Opx_cat_6ox | \n",
" Al_Opx_cat_6ox | \n",
" Na_Opx_cat_6ox | \n",
" K_Opx_cat_6ox | \n",
" Mn_Opx_cat_6ox | \n",
" Ti_Opx_cat_6ox | \n",
" Cr_Opx_cat_6ox | \n",
" oxy_renorm_factor_opx | \n",
" Al_IV_Opx_cat_6ox | \n",
" Al_VI_Opx_cat_6ox | \n",
" Si_Ti_Opx_cat_6ox | \n",
" En_Simple_MgFeCa_Opx | \n",
" Fs_Simple_MgFeCa_Opx | \n",
" Wo_Simple_MgFeCa_Opx | \n",
" Cation_Sum_Opx | \n",
" Ca_CaMgFe | \n",
" NaAlSi2O6 | \n",
" FmTiAlSiO6 | \n",
" CrAl2SiO6 | \n",
" FmAl2SiO6 | \n",
" CaFmSi2O6 | \n",
" Fm2Si2O6 | \n",
" En_Opx | \n",
" Di_Opx | \n",
" Mgno_OPX | \n",
" En | \n",
" Kd_Fe_Mg_Cpx_Opx | \n",
" Lindley_Fe3_Opx | \n",
" a_Di_cpx | \n",
" Kf | \n",
" a_En_opx_mod | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 1324.760052 | \n",
" T_Wood1973 | \n",
" N | \n",
" Y | \n",
" 52.30 | \n",
" 0.70 | \n",
" 3.00 | \n",
" 5.10 | \n",
" 0.11 | \n",
" 16.60 | \n",
" 21.50 | \n",
" 0.33 | \n",
" 0 | \n",
" 0.58 | \n",
" 0 | \n",
" 1.912184 | \n",
" 0.904784 | \n",
" 0.155939 | \n",
" 0.842247 | \n",
" 0.129273 | \n",
" 0.023393 | \n",
" 0.0 | \n",
" 0.003406 | \n",
" 0.019251 | \n",
" 0.016765 | \n",
" 0.0 | \n",
" 0.087816 | \n",
" 0.041457 | \n",
" 0.475459 | \n",
" 0.081945 | \n",
" 0.442596 | \n",
" 4.007242 | \n",
" 0.442596 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 0.092887 | \n",
" 0.008383 | \n",
" 0.122977 | \n",
" 0.852984 | \n",
" 0.023393 | \n",
" 0 | \n",
" 0.018064 | \n",
" 0.034876 | \n",
" 0.780925 | \n",
" 0.139899 | \n",
" 0.780925 | \n",
" 0.663987 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 55.00 | \n",
" 0.34 | \n",
" 1.50 | \n",
" 11.30 | \n",
" 0.24 | \n",
" 30.70 | \n",
" 0.90 | \n",
" 0.01 | \n",
" 0 | \n",
" 0.19 | \n",
" 0 | \n",
" 1.943665 | \n",
" 1.617356 | \n",
" 0.333959 | \n",
" 0.034078 | \n",
" 0.062475 | \n",
" 0.000685 | \n",
" 0.0 | \n",
" 0.007184 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.0 | \n",
" 0.056335 | \n",
" 0.006140 | \n",
" 1.952703 | \n",
" 0.814628 | \n",
" 0.168208 | \n",
" 0.017164 | \n",
" 4.013748 | \n",
" 0.017164 | \n",
" 0.000685 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.000146 | \n",
" 0.034078 | \n",
" 0.957618 | \n",
" 0.790815 | \n",
" 0.028142 | \n",
" 0.828850 | \n",
" 0.871733 | \n",
" 0.834684 | \n",
" 0.027496 | \n",
" 0.604991 | \n",
" 0.216022 | \n",
" 0.645067 | \n",
"
\n",
" \n",
" 1 | \n",
" 1660.188018 | \n",
" T_Wood1973 | \n",
" Y | \n",
" Y | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
" 1.830350 | \n",
" 1.129447 | \n",
" 0.198073 | \n",
" 0.443816 | \n",
" 0.349659 | \n",
" 0.043931 | \n",
" 0.0 | \n",
" 0.004498 | \n",
" 0.007456 | \n",
" 0.001399 | \n",
" 0.0 | \n",
" 0.169650 | \n",
" 0.180009 | \n",
" 0.637624 | \n",
" 0.111821 | \n",
" 0.250554 | \n",
" 4.008630 | \n",
" 0.250554 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 0.087138 | \n",
" 0.000700 | \n",
" 0.411086 | \n",
" 0.850790 | \n",
" 0.043931 | \n",
" 0 | \n",
" 0.136078 | \n",
" 0.016786 | \n",
" 0.290252 | \n",
" 0.518634 | \n",
" 0.290252 | \n",
" 0.246111 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
" 1.823396 | \n",
" 1.516444 | \n",
" 0.245370 | \n",
" 0.079334 | \n",
" 0.330303 | \n",
" 0.009392 | \n",
" 0.0 | \n",
" 0.004103 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.176604 | \n",
" 0.153699 | \n",
" 1.827300 | \n",
" 0.823640 | \n",
" 0.133270 | \n",
" 0.043089 | \n",
" 4.012245 | \n",
" 0.043089 | \n",
" 0.009392 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.144307 | \n",
" 0.079334 | \n",
" 0.769186 | \n",
" 0.660522 | \n",
" 0.068126 | \n",
" 0.860725 | \n",
" 0.678544 | \n",
" 1.083837 | \n",
" 0.024489 | \n",
" 0.386810 | \n",
" 0.142639 | \n",
" 0.569045 | \n",
"
\n",
" \n",
" 2 | \n",
" 1619.841099 | \n",
" T_Wood1973 | \n",
" Y | \n",
" Y | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
" 1.835204 | \n",
" 1.078405 | \n",
" 0.207416 | \n",
" 0.481084 | \n",
" 0.340188 | \n",
" 0.038691 | \n",
" 0.0 | \n",
" 0.005131 | \n",
" 0.012062 | \n",
" 0.002536 | \n",
" 0.0 | \n",
" 0.164796 | \n",
" 0.175393 | \n",
" 0.610336 | \n",
" 0.117390 | \n",
" 0.272275 | \n",
" 4.000717 | \n",
" 0.272275 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 0.006917 | \n",
" 0.001268 | \n",
" 0.388642 | \n",
" 0.838685 | \n",
" 0.038691 | \n",
" 0 | \n",
" 0.136701 | \n",
" 0.014047 | \n",
" 0.329068 | \n",
" 0.478377 | \n",
" 0.329068 | \n",
" 0.274889 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
" 1.839965 | \n",
" 1.505530 | \n",
" 0.254529 | \n",
" 0.087825 | \n",
" 0.301638 | \n",
" 0.009388 | \n",
" 0.0 | \n",
" 0.003808 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.0 | \n",
" 0.160035 | \n",
" 0.141603 | \n",
" 1.845168 | \n",
" 0.814732 | \n",
" 0.137741 | \n",
" 0.047527 | \n",
" 4.008433 | \n",
" 0.047527 | \n",
" 0.009388 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.131669 | \n",
" 0.087825 | \n",
" 0.769585 | \n",
" 0.656871 | \n",
" 0.074962 | \n",
" 0.855382 | \n",
" 0.674378 | \n",
" 1.137662 | \n",
" 0.016867 | \n",
" 0.412205 | \n",
" 0.169248 | \n",
" 0.562463 | \n",
"
\n",
" \n",
" 3 | \n",
" 1325.580654 | \n",
" T_Wood1973 | \n",
" Y | \n",
" Y | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
" 1.914576 | \n",
" 0.882079 | \n",
" 0.193792 | \n",
" 0.836461 | \n",
" 0.139648 | \n",
" 0.019629 | \n",
" 0.0 | \n",
" 0.003811 | \n",
" 0.017487 | \n",
" 0.000296 | \n",
" 0.0 | \n",
" 0.085424 | \n",
" 0.054224 | \n",
" 0.461258 | \n",
" 0.101338 | \n",
" 0.437404 | \n",
" 4.007780 | \n",
" 0.437404 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 0.080287 | \n",
" 0.000148 | \n",
" 0.132428 | \n",
" 0.819869 | \n",
" 0.019629 | \n",
" 0 | \n",
" 0.034595 | \n",
" 0.025415 | \n",
" 0.776303 | \n",
" 0.149784 | \n",
" 0.776303 | \n",
" 0.634224 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
" 1.968730 | \n",
" 1.595973 | \n",
" 0.304805 | \n",
" 0.063492 | \n",
" 0.050066 | \n",
" 0.002076 | \n",
" 0.0 | \n",
" 0.006652 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.0 | \n",
" 0.031270 | \n",
" 0.018796 | \n",
" 1.973295 | \n",
" 0.812502 | \n",
" 0.155175 | \n",
" 0.032324 | \n",
" 4.000594 | \n",
" 0.032324 | \n",
" 0.002076 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.012486 | \n",
" 0.063492 | \n",
" 0.913443 | \n",
" 0.764291 | \n",
" 0.053125 | \n",
" 0.839637 | \n",
" 0.812807 | \n",
" 1.150356 | \n",
" 0.001187 | \n",
" 0.601746 | \n",
" 0.388240 | \n",
" 0.636705 | \n",
"
\n",
" \n",
" 4 | \n",
" 1360.156781 | \n",
" T_Wood1973 | \n",
" Y | \n",
" Y | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
" 1.947746 | \n",
" 0.920861 | \n",
" 0.180851 | \n",
" 0.811362 | \n",
" 0.096868 | \n",
" 0.019831 | \n",
" 0.0 | \n",
" 0.004641 | \n",
" 0.013189 | \n",
" 0.003466 | \n",
" 0.0 | \n",
" 0.052254 | \n",
" 0.044614 | \n",
" 0.481352 | \n",
" 0.094534 | \n",
" 0.424114 | \n",
" 3.998814 | \n",
" 0.424114 | \n",
" 0.000000 | \n",
" 0.180851 | \n",
" 0.000000 | \n",
" 0.001733 | \n",
" 0.158665 | \n",
" 0.835841 | \n",
" 0.019831 | \n",
" 0 | \n",
" 0.024783 | \n",
" 0.013736 | \n",
" 0.771110 | \n",
" 0.165301 | \n",
" 0.771110 | \n",
" 0.641826 | \n",
" -0.002372 | \n",
" 0.183222 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
" 1.971271 | \n",
" 1.611274 | \n",
" 0.297687 | \n",
" 0.039377 | \n",
" 0.058165 | \n",
" 0.001357 | \n",
" 0.0 | \n",
" 0.007708 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.0 | \n",
" 0.028729 | \n",
" 0.029435 | \n",
" 1.974693 | \n",
" 0.826999 | \n",
" 0.152790 | \n",
" 0.020211 | \n",
" 3.994689 | \n",
" 0.020211 | \n",
" 0.001357 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.023651 | \n",
" 0.039377 | \n",
" 0.925110 | \n",
" 0.777706 | \n",
" 0.033103 | \n",
" 0.844054 | \n",
" 0.829605 | \n",
" 1.063003 | \n",
" 0.000000 | \n",
" 0.585107 | \n",
" 0.208745 | \n",
" 0.652532 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" T_K_calc Equation Choice (T) High T Kd Eq? Low T Kd Eq? SiO2_Cpx \\\n",
"0 1324.760052 T_Wood1973 N Y 52.30 \n",
"1 1660.188018 T_Wood1973 Y Y 51.70 \n",
"2 1619.841099 T_Wood1973 Y Y 51.50 \n",
"3 1325.580654 T_Wood1973 Y Y 51.06 \n",
"4 1360.156781 T_Wood1973 Y Y 53.32 \n",
"\n",
" TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx Na2O_Cpx \\\n",
"0 0.70 3.00 5.10 0.11 16.60 21.50 0.33 \n",
"1 0.28 8.38 6.69 0.15 21.40 11.70 0.64 \n",
"2 0.45 8.10 6.96 0.17 20.30 12.60 0.56 \n",
"3 0.62 3.16 6.18 0.12 15.78 20.82 0.27 \n",
"4 0.48 2.25 5.92 0.15 16.91 20.73 0.28 \n",
"\n",
" K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx Si_Cpx_cat_6ox Mg_Cpx_cat_6ox \\\n",
"0 0 0.58 0 1.912184 0.904784 \n",
"1 0 0.05 1 1.830350 1.129447 \n",
"2 0 0.09 2 1.835204 1.078405 \n",
"3 0 0.01 3 1.914576 0.882079 \n",
"4 0 0.12 4 1.947746 0.920861 \n",
"\n",
" Fet_Cpx_cat_6ox Ca_Cpx_cat_6ox Al_Cpx_cat_6ox Na_Cpx_cat_6ox \\\n",
"0 0.155939 0.842247 0.129273 0.023393 \n",
"1 0.198073 0.443816 0.349659 0.043931 \n",
"2 0.207416 0.481084 0.340188 0.038691 \n",
"3 0.193792 0.836461 0.139648 0.019629 \n",
"4 0.180851 0.811362 0.096868 0.019831 \n",
"\n",
" K_Cpx_cat_6ox Mn_Cpx_cat_6ox Ti_Cpx_cat_6ox Cr_Cpx_cat_6ox \\\n",
"0 0.0 0.003406 0.019251 0.016765 \n",
"1 0.0 0.004498 0.007456 0.001399 \n",
"2 0.0 0.005131 0.012062 0.002536 \n",
"3 0.0 0.003811 0.017487 0.000296 \n",
"4 0.0 0.004641 0.013189 0.003466 \n",
"\n",
" oxy_renorm_factor Al_IV_cat_6ox Al_VI_cat_6ox En_Simple_MgFeCa_Cpx \\\n",
"0 0.0 0.087816 0.041457 0.475459 \n",
"1 0.0 0.169650 0.180009 0.637624 \n",
"2 0.0 0.164796 0.175393 0.610336 \n",
"3 0.0 0.085424 0.054224 0.461258 \n",
"4 0.0 0.052254 0.044614 0.481352 \n",
"\n",
" Fs_Simple_MgFeCa_Cpx Wo_Simple_MgFeCa_Cpx Cation_Sum_Cpx Ca_CaMgFe \\\n",
"0 0.081945 0.442596 4.007242 0.442596 \n",
"1 0.111821 0.250554 4.008630 0.250554 \n",
"2 0.117390 0.272275 4.000717 0.272275 \n",
"3 0.101338 0.437404 4.007780 0.437404 \n",
"4 0.094534 0.424114 3.998814 0.424114 \n",
"\n",
" Lindley_Fe3_Cpx Lindley_Fe2_Cpx Lindley_Fe3_Cpx_prop CrCaTs a_cpx_En \\\n",
"0 0.014485 0.141454 0.092887 0.008383 0.122977 \n",
"1 0.017260 0.180814 0.087138 0.000700 0.411086 \n",
"2 0.001435 0.205981 0.006917 0.001268 0.388642 \n",
"3 0.015559 0.178233 0.080287 0.000148 0.132428 \n",
"4 0.000000 0.180851 0.000000 0.001733 0.158665 \n",
"\n",
" Mgno_Cpx Jd Jd_from 0=Na, 1=Al CaTs CaTi DiHd_1996 \\\n",
"0 0.852984 0.023393 0 0.018064 0.034876 0.780925 \n",
"1 0.850790 0.043931 0 0.136078 0.016786 0.290252 \n",
"2 0.838685 0.038691 0 0.136701 0.014047 0.329068 \n",
"3 0.819869 0.019629 0 0.034595 0.025415 0.776303 \n",
"4 0.835841 0.019831 0 0.024783 0.013736 0.771110 \n",
"\n",
" EnFs DiHd_2003 Di_Cpx FeIII_Wang21 FeII_Wang21 SiO2_Opx \\\n",
"0 0.139899 0.780925 0.663987 0.014485 0.141454 55.00 \n",
"1 0.518634 0.290252 0.246111 0.017260 0.180814 52.70 \n",
"2 0.478377 0.329068 0.274889 0.001435 0.205981 53.20 \n",
"3 0.149784 0.776303 0.634224 0.015559 0.178233 55.15 \n",
"4 0.165301 0.771110 0.641826 -0.002372 0.183222 56.32 \n",
"\n",
" TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx Na2O_Opx \\\n",
"0 0.34 1.50 11.30 0.24 30.70 0.90 0.01 \n",
"1 0.15 8.10 8.48 0.14 29.40 2.14 0.14 \n",
"2 0.20 7.40 8.80 0.13 29.20 2.37 0.14 \n",
"3 0.17 1.19 10.21 0.22 29.99 1.66 0.03 \n",
"4 0.13 1.41 10.17 0.26 30.88 1.05 0.02 \n",
"\n",
" K2O_Opx Cr2O3_Opx Sample_ID_Opx Si_Opx_cat_6ox Mg_Opx_cat_6ox \\\n",
"0 0 0.19 0 1.943665 1.617356 \n",
"1 0 0.00 1 1.823396 1.516444 \n",
"2 0 0.02 2 1.839965 1.505530 \n",
"3 0 0.15 3 1.968730 1.595973 \n",
"4 0 0.16 4 1.971271 1.611274 \n",
"\n",
" Fet_Opx_cat_6ox Ca_Opx_cat_6ox Al_Opx_cat_6ox Na_Opx_cat_6ox \\\n",
"0 0.333959 0.034078 0.062475 0.000685 \n",
"1 0.245370 0.079334 0.330303 0.009392 \n",
"2 0.254529 0.087825 0.301638 0.009388 \n",
"3 0.304805 0.063492 0.050066 0.002076 \n",
"4 0.297687 0.039377 0.058165 0.001357 \n",
"\n",
" K_Opx_cat_6ox Mn_Opx_cat_6ox Ti_Opx_cat_6ox Cr_Opx_cat_6ox \\\n",
"0 0.0 0.007184 0.009038 0.005308 \n",
"1 0.0 0.004103 0.003904 0.000000 \n",
"2 0.0 0.003808 0.005203 0.000547 \n",
"3 0.0 0.006652 0.004565 0.004233 \n",
"4 0.0 0.007708 0.003423 0.004427 \n",
"\n",
" oxy_renorm_factor_opx Al_IV_Opx_cat_6ox Al_VI_Opx_cat_6ox \\\n",
"0 0.0 0.056335 0.006140 \n",
"1 0.0 0.176604 0.153699 \n",
"2 0.0 0.160035 0.141603 \n",
"3 0.0 0.031270 0.018796 \n",
"4 0.0 0.028729 0.029435 \n",
"\n",
" Si_Ti_Opx_cat_6ox En_Simple_MgFeCa_Opx Fs_Simple_MgFeCa_Opx \\\n",
"0 1.952703 0.814628 0.168208 \n",
"1 1.827300 0.823640 0.133270 \n",
"2 1.845168 0.814732 0.137741 \n",
"3 1.973295 0.812502 0.155175 \n",
"4 1.974693 0.826999 0.152790 \n",
"\n",
" Wo_Simple_MgFeCa_Opx Cation_Sum_Opx Ca_CaMgFe NaAlSi2O6 FmTiAlSiO6 \\\n",
"0 0.017164 4.013748 0.017164 0.000685 0.009038 \n",
"1 0.043089 4.012245 0.043089 0.009392 0.003904 \n",
"2 0.047527 4.008433 0.047527 0.009388 0.005203 \n",
"3 0.032324 4.000594 0.032324 0.002076 0.004565 \n",
"4 0.020211 3.994689 0.020211 0.001357 0.003423 \n",
"\n",
" CrAl2SiO6 FmAl2SiO6 CaFmSi2O6 Fm2Si2O6 En_Opx Di_Opx Mgno_OPX \\\n",
"0 0.005308 0.000146 0.034078 0.957618 0.790815 0.028142 0.828850 \n",
"1 0.000000 0.144307 0.079334 0.769186 0.660522 0.068126 0.860725 \n",
"2 0.000547 0.131669 0.087825 0.769585 0.656871 0.074962 0.855382 \n",
"3 0.004233 0.012486 0.063492 0.913443 0.764291 0.053125 0.839637 \n",
"4 0.004427 0.023651 0.039377 0.925110 0.777706 0.033103 0.844054 \n",
"\n",
" En Kd_Fe_Mg_Cpx_Opx Lindley_Fe3_Opx a_Di_cpx Kf \\\n",
"0 0.871733 0.834684 0.027496 0.604991 0.216022 \n",
"1 0.678544 1.083837 0.024489 0.386810 0.142639 \n",
"2 0.674378 1.137662 0.016867 0.412205 0.169248 \n",
"3 0.812807 1.150356 0.001187 0.601746 0.388240 \n",
"4 0.829605 1.063003 0.000000 0.585107 0.208745 \n",
"\n",
" a_En_opx_mod \n",
"0 0.645067 \n",
"1 0.569045 \n",
"2 0.562463 \n",
"3 0.636705 \n",
"4 0.652532 "
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"T_Wood=pt.calculate_cpx_opx_temp(opx_comps=Opxs, cpx_comps=Cpxs, \n",
" equationT=\"T_Wood1973\", eq_tests=True)\n",
"T_Wood.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 2b - Putirka (2008) eq 36 (P-dependent). \n",
"- Must specify a P, can enter as a constant (in kbar, in this example P=5kbar), or tell it to read in from a column in the input, as for temp"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" T_K_calc | \n",
" Equation Choice (T) | \n",
" High T Kd Eq? | \n",
" Low T Kd Eq? | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
" Si_Cpx_cat_6ox | \n",
" Mg_Cpx_cat_6ox | \n",
" Fet_Cpx_cat_6ox | \n",
" Ca_Cpx_cat_6ox | \n",
" Al_Cpx_cat_6ox | \n",
" Na_Cpx_cat_6ox | \n",
" K_Cpx_cat_6ox | \n",
" Mn_Cpx_cat_6ox | \n",
" Ti_Cpx_cat_6ox | \n",
" Cr_Cpx_cat_6ox | \n",
" oxy_renorm_factor | \n",
" Al_IV_cat_6ox | \n",
" Al_VI_cat_6ox | \n",
" En_Simple_MgFeCa_Cpx | \n",
" Fs_Simple_MgFeCa_Cpx | \n",
" Wo_Simple_MgFeCa_Cpx | \n",
" Cation_Sum_Cpx | \n",
" Ca_CaMgFe | \n",
" Lindley_Fe3_Cpx | \n",
" Lindley_Fe2_Cpx | \n",
" Lindley_Fe3_Cpx_prop | \n",
" CrCaTs | \n",
" a_cpx_En | \n",
" Mgno_Cpx | \n",
" Jd | \n",
" Jd_from 0=Na, 1=Al | \n",
" CaTs | \n",
" CaTi | \n",
" DiHd_1996 | \n",
" EnFs | \n",
" DiHd_2003 | \n",
" Di_Cpx | \n",
" FeIII_Wang21 | \n",
" FeII_Wang21 | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
" Si_Opx_cat_6ox | \n",
" Mg_Opx_cat_6ox | \n",
" Fet_Opx_cat_6ox | \n",
" Ca_Opx_cat_6ox | \n",
" Al_Opx_cat_6ox | \n",
" Na_Opx_cat_6ox | \n",
" K_Opx_cat_6ox | \n",
" Mn_Opx_cat_6ox | \n",
" Ti_Opx_cat_6ox | \n",
" Cr_Opx_cat_6ox | \n",
" oxy_renorm_factor_opx | \n",
" Al_IV_Opx_cat_6ox | \n",
" Al_VI_Opx_cat_6ox | \n",
" Si_Ti_Opx_cat_6ox | \n",
" En_Simple_MgFeCa_Opx | \n",
" Fs_Simple_MgFeCa_Opx | \n",
" Wo_Simple_MgFeCa_Opx | \n",
" Cation_Sum_Opx | \n",
" Ca_CaMgFe | \n",
" NaAlSi2O6 | \n",
" FmTiAlSiO6 | \n",
" CrAl2SiO6 | \n",
" FmAl2SiO6 | \n",
" CaFmSi2O6 | \n",
" Fm2Si2O6 | \n",
" En_Opx | \n",
" Di_Opx | \n",
" Mgno_OPX | \n",
" En | \n",
" Kd_Fe_Mg_Cpx_Opx | \n",
" Lindley_Fe3_Opx | \n",
" a_Di_cpx | \n",
" Kf | \n",
" a_En_opx_mod | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 1266.450414 | \n",
" T_Put2008_eq36 | \n",
" N | \n",
" Y | \n",
" 52.30 | \n",
" 0.70 | \n",
" 3.00 | \n",
" 5.10 | \n",
" 0.11 | \n",
" 16.60 | \n",
" 21.50 | \n",
" 0.33 | \n",
" 0 | \n",
" 0.58 | \n",
" 0 | \n",
" 1.912184 | \n",
" 0.904784 | \n",
" 0.155939 | \n",
" 0.842247 | \n",
" 0.129273 | \n",
" 0.023393 | \n",
" 0.0 | \n",
" 0.003406 | \n",
" 0.019251 | \n",
" 0.016765 | \n",
" 0.0 | \n",
" 0.087816 | \n",
" 0.041457 | \n",
" 0.475459 | \n",
" 0.081945 | \n",
" 0.442596 | \n",
" 4.007242 | \n",
" 0.442596 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 0.092887 | \n",
" 0.008383 | \n",
" 0.122977 | \n",
" 0.852984 | \n",
" 0.023393 | \n",
" 0 | \n",
" 0.018064 | \n",
" 0.034876 | \n",
" 0.780925 | \n",
" 0.139899 | \n",
" 0.780925 | \n",
" 0.663987 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 55.00 | \n",
" 0.34 | \n",
" 1.50 | \n",
" 11.30 | \n",
" 0.24 | \n",
" 30.70 | \n",
" 0.90 | \n",
" 0.01 | \n",
" 0 | \n",
" 0.19 | \n",
" 0 | \n",
" 1.943665 | \n",
" 1.617356 | \n",
" 0.333959 | \n",
" 0.034078 | \n",
" 0.062475 | \n",
" 0.000685 | \n",
" 0.0 | \n",
" 0.007184 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.0 | \n",
" 0.056335 | \n",
" 0.006140 | \n",
" 1.952703 | \n",
" 0.814628 | \n",
" 0.168208 | \n",
" 0.017164 | \n",
" 4.013748 | \n",
" 0.017164 | \n",
" 0.000685 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.000146 | \n",
" 0.034078 | \n",
" 0.957618 | \n",
" 0.790815 | \n",
" 0.028142 | \n",
" 0.828850 | \n",
" 0.871733 | \n",
" 0.834684 | \n",
" 0.027496 | \n",
" 0.604991 | \n",
" 0.216022 | \n",
" 0.645067 | \n",
"
\n",
" \n",
" 1 | \n",
" 1490.724353 | \n",
" T_Put2008_eq36 | \n",
" Y | \n",
" Y | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
" 1.830350 | \n",
" 1.129447 | \n",
" 0.198073 | \n",
" 0.443816 | \n",
" 0.349659 | \n",
" 0.043931 | \n",
" 0.0 | \n",
" 0.004498 | \n",
" 0.007456 | \n",
" 0.001399 | \n",
" 0.0 | \n",
" 0.169650 | \n",
" 0.180009 | \n",
" 0.637624 | \n",
" 0.111821 | \n",
" 0.250554 | \n",
" 4.008630 | \n",
" 0.250554 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 0.087138 | \n",
" 0.000700 | \n",
" 0.411086 | \n",
" 0.850790 | \n",
" 0.043931 | \n",
" 0 | \n",
" 0.136078 | \n",
" 0.016786 | \n",
" 0.290252 | \n",
" 0.518634 | \n",
" 0.290252 | \n",
" 0.246111 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
" 1.823396 | \n",
" 1.516444 | \n",
" 0.245370 | \n",
" 0.079334 | \n",
" 0.330303 | \n",
" 0.009392 | \n",
" 0.0 | \n",
" 0.004103 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.176604 | \n",
" 0.153699 | \n",
" 1.827300 | \n",
" 0.823640 | \n",
" 0.133270 | \n",
" 0.043089 | \n",
" 4.012245 | \n",
" 0.043089 | \n",
" 0.009392 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.144307 | \n",
" 0.079334 | \n",
" 0.769186 | \n",
" 0.660522 | \n",
" 0.068126 | \n",
" 0.860725 | \n",
" 0.678544 | \n",
" 1.083837 | \n",
" 0.024489 | \n",
" 0.386810 | \n",
" 0.142639 | \n",
" 0.569045 | \n",
"
\n",
" \n",
" 2 | \n",
" 1496.279136 | \n",
" T_Put2008_eq36 | \n",
" Y | \n",
" Y | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
" 1.835204 | \n",
" 1.078405 | \n",
" 0.207416 | \n",
" 0.481084 | \n",
" 0.340188 | \n",
" 0.038691 | \n",
" 0.0 | \n",
" 0.005131 | \n",
" 0.012062 | \n",
" 0.002536 | \n",
" 0.0 | \n",
" 0.164796 | \n",
" 0.175393 | \n",
" 0.610336 | \n",
" 0.117390 | \n",
" 0.272275 | \n",
" 4.000717 | \n",
" 0.272275 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 0.006917 | \n",
" 0.001268 | \n",
" 0.388642 | \n",
" 0.838685 | \n",
" 0.038691 | \n",
" 0 | \n",
" 0.136701 | \n",
" 0.014047 | \n",
" 0.329068 | \n",
" 0.478377 | \n",
" 0.329068 | \n",
" 0.274889 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
" 1.839965 | \n",
" 1.505530 | \n",
" 0.254529 | \n",
" 0.087825 | \n",
" 0.301638 | \n",
" 0.009388 | \n",
" 0.0 | \n",
" 0.003808 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.0 | \n",
" 0.160035 | \n",
" 0.141603 | \n",
" 1.845168 | \n",
" 0.814732 | \n",
" 0.137741 | \n",
" 0.047527 | \n",
" 4.008433 | \n",
" 0.047527 | \n",
" 0.009388 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.131669 | \n",
" 0.087825 | \n",
" 0.769585 | \n",
" 0.656871 | \n",
" 0.074962 | \n",
" 0.855382 | \n",
" 0.674378 | \n",
" 1.137662 | \n",
" 0.016867 | \n",
" 0.412205 | \n",
" 0.169248 | \n",
" 0.562463 | \n",
"
\n",
" \n",
" 3 | \n",
" 1286.405818 | \n",
" T_Put2008_eq36 | \n",
" Y | \n",
" Y | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
" 1.914576 | \n",
" 0.882079 | \n",
" 0.193792 | \n",
" 0.836461 | \n",
" 0.139648 | \n",
" 0.019629 | \n",
" 0.0 | \n",
" 0.003811 | \n",
" 0.017487 | \n",
" 0.000296 | \n",
" 0.0 | \n",
" 0.085424 | \n",
" 0.054224 | \n",
" 0.461258 | \n",
" 0.101338 | \n",
" 0.437404 | \n",
" 4.007780 | \n",
" 0.437404 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 0.080287 | \n",
" 0.000148 | \n",
" 0.132428 | \n",
" 0.819869 | \n",
" 0.019629 | \n",
" 0 | \n",
" 0.034595 | \n",
" 0.025415 | \n",
" 0.776303 | \n",
" 0.149784 | \n",
" 0.776303 | \n",
" 0.634224 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
" 1.968730 | \n",
" 1.595973 | \n",
" 0.304805 | \n",
" 0.063492 | \n",
" 0.050066 | \n",
" 0.002076 | \n",
" 0.0 | \n",
" 0.006652 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.0 | \n",
" 0.031270 | \n",
" 0.018796 | \n",
" 1.973295 | \n",
" 0.812502 | \n",
" 0.155175 | \n",
" 0.032324 | \n",
" 4.000594 | \n",
" 0.032324 | \n",
" 0.002076 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.012486 | \n",
" 0.063492 | \n",
" 0.913443 | \n",
" 0.764291 | \n",
" 0.053125 | \n",
" 0.839637 | \n",
" 0.812807 | \n",
" 1.150356 | \n",
" 0.001187 | \n",
" 0.601746 | \n",
" 0.388240 | \n",
" 0.636705 | \n",
"
\n",
" \n",
" 4 | \n",
" 1279.823849 | \n",
" T_Put2008_eq36 | \n",
" Y | \n",
" Y | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
" 1.947746 | \n",
" 0.920861 | \n",
" 0.180851 | \n",
" 0.811362 | \n",
" 0.096868 | \n",
" 0.019831 | \n",
" 0.0 | \n",
" 0.004641 | \n",
" 0.013189 | \n",
" 0.003466 | \n",
" 0.0 | \n",
" 0.052254 | \n",
" 0.044614 | \n",
" 0.481352 | \n",
" 0.094534 | \n",
" 0.424114 | \n",
" 3.998814 | \n",
" 0.424114 | \n",
" 0.000000 | \n",
" 0.180851 | \n",
" 0.000000 | \n",
" 0.001733 | \n",
" 0.158665 | \n",
" 0.835841 | \n",
" 0.019831 | \n",
" 0 | \n",
" 0.024783 | \n",
" 0.013736 | \n",
" 0.771110 | \n",
" 0.165301 | \n",
" 0.771110 | \n",
" 0.641826 | \n",
" -0.002372 | \n",
" 0.183222 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
" 1.971271 | \n",
" 1.611274 | \n",
" 0.297687 | \n",
" 0.039377 | \n",
" 0.058165 | \n",
" 0.001357 | \n",
" 0.0 | \n",
" 0.007708 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.0 | \n",
" 0.028729 | \n",
" 0.029435 | \n",
" 1.974693 | \n",
" 0.826999 | \n",
" 0.152790 | \n",
" 0.020211 | \n",
" 3.994689 | \n",
" 0.020211 | \n",
" 0.001357 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.023651 | \n",
" 0.039377 | \n",
" 0.925110 | \n",
" 0.777706 | \n",
" 0.033103 | \n",
" 0.844054 | \n",
" 0.829605 | \n",
" 1.063003 | \n",
" 0.000000 | \n",
" 0.585107 | \n",
" 0.208745 | \n",
" 0.652532 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" T_K_calc Equation Choice (T) High T Kd Eq? Low T Kd Eq? SiO2_Cpx \\\n",
"0 1266.450414 T_Put2008_eq36 N Y 52.30 \n",
"1 1490.724353 T_Put2008_eq36 Y Y 51.70 \n",
"2 1496.279136 T_Put2008_eq36 Y Y 51.50 \n",
"3 1286.405818 T_Put2008_eq36 Y Y 51.06 \n",
"4 1279.823849 T_Put2008_eq36 Y Y 53.32 \n",
"\n",
" TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx Na2O_Cpx \\\n",
"0 0.70 3.00 5.10 0.11 16.60 21.50 0.33 \n",
"1 0.28 8.38 6.69 0.15 21.40 11.70 0.64 \n",
"2 0.45 8.10 6.96 0.17 20.30 12.60 0.56 \n",
"3 0.62 3.16 6.18 0.12 15.78 20.82 0.27 \n",
"4 0.48 2.25 5.92 0.15 16.91 20.73 0.28 \n",
"\n",
" K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx Si_Cpx_cat_6ox Mg_Cpx_cat_6ox \\\n",
"0 0 0.58 0 1.912184 0.904784 \n",
"1 0 0.05 1 1.830350 1.129447 \n",
"2 0 0.09 2 1.835204 1.078405 \n",
"3 0 0.01 3 1.914576 0.882079 \n",
"4 0 0.12 4 1.947746 0.920861 \n",
"\n",
" Fet_Cpx_cat_6ox Ca_Cpx_cat_6ox Al_Cpx_cat_6ox Na_Cpx_cat_6ox \\\n",
"0 0.155939 0.842247 0.129273 0.023393 \n",
"1 0.198073 0.443816 0.349659 0.043931 \n",
"2 0.207416 0.481084 0.340188 0.038691 \n",
"3 0.193792 0.836461 0.139648 0.019629 \n",
"4 0.180851 0.811362 0.096868 0.019831 \n",
"\n",
" K_Cpx_cat_6ox Mn_Cpx_cat_6ox Ti_Cpx_cat_6ox Cr_Cpx_cat_6ox \\\n",
"0 0.0 0.003406 0.019251 0.016765 \n",
"1 0.0 0.004498 0.007456 0.001399 \n",
"2 0.0 0.005131 0.012062 0.002536 \n",
"3 0.0 0.003811 0.017487 0.000296 \n",
"4 0.0 0.004641 0.013189 0.003466 \n",
"\n",
" oxy_renorm_factor Al_IV_cat_6ox Al_VI_cat_6ox En_Simple_MgFeCa_Cpx \\\n",
"0 0.0 0.087816 0.041457 0.475459 \n",
"1 0.0 0.169650 0.180009 0.637624 \n",
"2 0.0 0.164796 0.175393 0.610336 \n",
"3 0.0 0.085424 0.054224 0.461258 \n",
"4 0.0 0.052254 0.044614 0.481352 \n",
"\n",
" Fs_Simple_MgFeCa_Cpx Wo_Simple_MgFeCa_Cpx Cation_Sum_Cpx Ca_CaMgFe \\\n",
"0 0.081945 0.442596 4.007242 0.442596 \n",
"1 0.111821 0.250554 4.008630 0.250554 \n",
"2 0.117390 0.272275 4.000717 0.272275 \n",
"3 0.101338 0.437404 4.007780 0.437404 \n",
"4 0.094534 0.424114 3.998814 0.424114 \n",
"\n",
" Lindley_Fe3_Cpx Lindley_Fe2_Cpx Lindley_Fe3_Cpx_prop CrCaTs a_cpx_En \\\n",
"0 0.014485 0.141454 0.092887 0.008383 0.122977 \n",
"1 0.017260 0.180814 0.087138 0.000700 0.411086 \n",
"2 0.001435 0.205981 0.006917 0.001268 0.388642 \n",
"3 0.015559 0.178233 0.080287 0.000148 0.132428 \n",
"4 0.000000 0.180851 0.000000 0.001733 0.158665 \n",
"\n",
" Mgno_Cpx Jd Jd_from 0=Na, 1=Al CaTs CaTi DiHd_1996 \\\n",
"0 0.852984 0.023393 0 0.018064 0.034876 0.780925 \n",
"1 0.850790 0.043931 0 0.136078 0.016786 0.290252 \n",
"2 0.838685 0.038691 0 0.136701 0.014047 0.329068 \n",
"3 0.819869 0.019629 0 0.034595 0.025415 0.776303 \n",
"4 0.835841 0.019831 0 0.024783 0.013736 0.771110 \n",
"\n",
" EnFs DiHd_2003 Di_Cpx FeIII_Wang21 FeII_Wang21 SiO2_Opx \\\n",
"0 0.139899 0.780925 0.663987 0.014485 0.141454 55.00 \n",
"1 0.518634 0.290252 0.246111 0.017260 0.180814 52.70 \n",
"2 0.478377 0.329068 0.274889 0.001435 0.205981 53.20 \n",
"3 0.149784 0.776303 0.634224 0.015559 0.178233 55.15 \n",
"4 0.165301 0.771110 0.641826 -0.002372 0.183222 56.32 \n",
"\n",
" TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx Na2O_Opx \\\n",
"0 0.34 1.50 11.30 0.24 30.70 0.90 0.01 \n",
"1 0.15 8.10 8.48 0.14 29.40 2.14 0.14 \n",
"2 0.20 7.40 8.80 0.13 29.20 2.37 0.14 \n",
"3 0.17 1.19 10.21 0.22 29.99 1.66 0.03 \n",
"4 0.13 1.41 10.17 0.26 30.88 1.05 0.02 \n",
"\n",
" K2O_Opx Cr2O3_Opx Sample_ID_Opx Si_Opx_cat_6ox Mg_Opx_cat_6ox \\\n",
"0 0 0.19 0 1.943665 1.617356 \n",
"1 0 0.00 1 1.823396 1.516444 \n",
"2 0 0.02 2 1.839965 1.505530 \n",
"3 0 0.15 3 1.968730 1.595973 \n",
"4 0 0.16 4 1.971271 1.611274 \n",
"\n",
" Fet_Opx_cat_6ox Ca_Opx_cat_6ox Al_Opx_cat_6ox Na_Opx_cat_6ox \\\n",
"0 0.333959 0.034078 0.062475 0.000685 \n",
"1 0.245370 0.079334 0.330303 0.009392 \n",
"2 0.254529 0.087825 0.301638 0.009388 \n",
"3 0.304805 0.063492 0.050066 0.002076 \n",
"4 0.297687 0.039377 0.058165 0.001357 \n",
"\n",
" K_Opx_cat_6ox Mn_Opx_cat_6ox Ti_Opx_cat_6ox Cr_Opx_cat_6ox \\\n",
"0 0.0 0.007184 0.009038 0.005308 \n",
"1 0.0 0.004103 0.003904 0.000000 \n",
"2 0.0 0.003808 0.005203 0.000547 \n",
"3 0.0 0.006652 0.004565 0.004233 \n",
"4 0.0 0.007708 0.003423 0.004427 \n",
"\n",
" oxy_renorm_factor_opx Al_IV_Opx_cat_6ox Al_VI_Opx_cat_6ox \\\n",
"0 0.0 0.056335 0.006140 \n",
"1 0.0 0.176604 0.153699 \n",
"2 0.0 0.160035 0.141603 \n",
"3 0.0 0.031270 0.018796 \n",
"4 0.0 0.028729 0.029435 \n",
"\n",
" Si_Ti_Opx_cat_6ox En_Simple_MgFeCa_Opx Fs_Simple_MgFeCa_Opx \\\n",
"0 1.952703 0.814628 0.168208 \n",
"1 1.827300 0.823640 0.133270 \n",
"2 1.845168 0.814732 0.137741 \n",
"3 1.973295 0.812502 0.155175 \n",
"4 1.974693 0.826999 0.152790 \n",
"\n",
" Wo_Simple_MgFeCa_Opx Cation_Sum_Opx Ca_CaMgFe NaAlSi2O6 FmTiAlSiO6 \\\n",
"0 0.017164 4.013748 0.017164 0.000685 0.009038 \n",
"1 0.043089 4.012245 0.043089 0.009392 0.003904 \n",
"2 0.047527 4.008433 0.047527 0.009388 0.005203 \n",
"3 0.032324 4.000594 0.032324 0.002076 0.004565 \n",
"4 0.020211 3.994689 0.020211 0.001357 0.003423 \n",
"\n",
" CrAl2SiO6 FmAl2SiO6 CaFmSi2O6 Fm2Si2O6 En_Opx Di_Opx Mgno_OPX \\\n",
"0 0.005308 0.000146 0.034078 0.957618 0.790815 0.028142 0.828850 \n",
"1 0.000000 0.144307 0.079334 0.769186 0.660522 0.068126 0.860725 \n",
"2 0.000547 0.131669 0.087825 0.769585 0.656871 0.074962 0.855382 \n",
"3 0.004233 0.012486 0.063492 0.913443 0.764291 0.053125 0.839637 \n",
"4 0.004427 0.023651 0.039377 0.925110 0.777706 0.033103 0.844054 \n",
"\n",
" En Kd_Fe_Mg_Cpx_Opx Lindley_Fe3_Opx a_Di_cpx Kf \\\n",
"0 0.871733 0.834684 0.027496 0.604991 0.216022 \n",
"1 0.678544 1.083837 0.024489 0.386810 0.142639 \n",
"2 0.674378 1.137662 0.016867 0.412205 0.169248 \n",
"3 0.812807 1.150356 0.001187 0.601746 0.388240 \n",
"4 0.829605 1.063003 0.000000 0.585107 0.208745 \n",
"\n",
" a_En_opx_mod \n",
"0 0.645067 \n",
"1 0.569045 \n",
"2 0.562463 \n",
"3 0.636705 \n",
"4 0.652532 "
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"T_Put_37=pt.calculate_cpx_opx_temp(opx_comps=Opxs, cpx_comps=Cpxs, P=5, \n",
" equationT=\"T_Put2008_eq36\", eq_tests=True)\n",
"T_Put_37.head() # Shows the first 5 outputs. Remove .head() to see them all"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 3 - Iterating P and T\n",
"- In many cases you won't know the pressure or the temperature, so you'll want to solve for 2 unknowns\n",
"- The function \"calculate_cpx_opx_press_temp\" allows you to specify an equation for P and for T, and it solves these iteratively until a solution is reached\n",
"- As with the Pressure and temperature functions, you can specify eq_tests=True to get more information in the returned panda dataframe"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 3b - Here, use equation T of T_Put2008_Eq36, and equation P of P_Put2008_eq39"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" T_K_calc | \n",
" P_kbar_calc | \n",
" Equation Choice (T) | \n",
" Equation Choice (P) | \n",
" Delta Kd High T | \n",
" High T Kd Eq? | \n",
" Delta Kd Low T | \n",
" Low T Kd Eq? | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
" Si_Cpx_cat_6ox | \n",
" Mg_Cpx_cat_6ox | \n",
" Fet_Cpx_cat_6ox | \n",
" Ca_Cpx_cat_6ox | \n",
" Al_Cpx_cat_6ox | \n",
" Na_Cpx_cat_6ox | \n",
" K_Cpx_cat_6ox | \n",
" Mn_Cpx_cat_6ox | \n",
" Ti_Cpx_cat_6ox | \n",
" Cr_Cpx_cat_6ox | \n",
" oxy_renorm_factor | \n",
" Al_IV_cat_6ox | \n",
" Al_VI_cat_6ox | \n",
" En_Simple_MgFeCa_Cpx | \n",
" Fs_Simple_MgFeCa_Cpx | \n",
" Wo_Simple_MgFeCa_Cpx | \n",
" Cation_Sum_Cpx | \n",
" Ca_CaMgFe | \n",
" Lindley_Fe3_Cpx | \n",
" Lindley_Fe2_Cpx | \n",
" Lindley_Fe3_Cpx_prop | \n",
" CrCaTs | \n",
" a_cpx_En | \n",
" Mgno_Cpx | \n",
" Jd | \n",
" Jd_from 0=Na, 1=Al | \n",
" CaTs | \n",
" CaTi | \n",
" DiHd_1996 | \n",
" EnFs | \n",
" DiHd_2003 | \n",
" Di_Cpx | \n",
" FeIII_Wang21 | \n",
" FeII_Wang21 | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
" Si_Opx_cat_6ox | \n",
" Mg_Opx_cat_6ox | \n",
" Fet_Opx_cat_6ox | \n",
" Ca_Opx_cat_6ox | \n",
" Al_Opx_cat_6ox | \n",
" Na_Opx_cat_6ox | \n",
" K_Opx_cat_6ox | \n",
" Mn_Opx_cat_6ox | \n",
" Ti_Opx_cat_6ox | \n",
" Cr_Opx_cat_6ox | \n",
" oxy_renorm_factor_opx | \n",
" Al_IV_Opx_cat_6ox | \n",
" Al_VI_Opx_cat_6ox | \n",
" Si_Ti_Opx_cat_6ox | \n",
" En_Simple_MgFeCa_Opx | \n",
" Fs_Simple_MgFeCa_Opx | \n",
" Wo_Simple_MgFeCa_Opx | \n",
" Cation_Sum_Opx | \n",
" Ca_CaMgFe | \n",
" NaAlSi2O6 | \n",
" FmTiAlSiO6 | \n",
" CrAl2SiO6 | \n",
" FmAl2SiO6 | \n",
" CaFmSi2O6 | \n",
" Fm2Si2O6 | \n",
" En_Opx | \n",
" Di_Opx | \n",
" Mgno_OPX | \n",
" En | \n",
" Kd_Fe_Mg_Cpx_Opx | \n",
" Lindley_Fe3_Opx | \n",
" a_Di_cpx | \n",
" Kf | \n",
" a_En_opx_mod | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 1258.526669 | \n",
" 3.380885 | \n",
" T_Put2008_eq36 | \n",
" P_Put2008_eq39 | \n",
" 0.255316 | \n",
" N | \n",
" 0.134684 | \n",
" Y | \n",
" 52.30 | \n",
" 0.70 | \n",
" 3.00 | \n",
" 5.10 | \n",
" 0.11 | \n",
" 16.60 | \n",
" 21.50 | \n",
" 0.33 | \n",
" 0 | \n",
" 0.58 | \n",
" 0 | \n",
" 1.912184 | \n",
" 0.904784 | \n",
" 0.155939 | \n",
" 0.842247 | \n",
" 0.129273 | \n",
" 0.023393 | \n",
" 0.0 | \n",
" 0.003406 | \n",
" 0.019251 | \n",
" 0.016765 | \n",
" 0.0 | \n",
" 0.087816 | \n",
" 0.041457 | \n",
" 0.475459 | \n",
" 0.081945 | \n",
" 0.442596 | \n",
" 4.007242 | \n",
" 0.442596 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 0.092887 | \n",
" 0.008383 | \n",
" 0.122977 | \n",
" 0.852984 | \n",
" 0.023393 | \n",
" 0 | \n",
" 0.018064 | \n",
" 0.034876 | \n",
" 0.780925 | \n",
" 0.139899 | \n",
" 0.780925 | \n",
" 0.663987 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 55.00 | \n",
" 0.34 | \n",
" 1.50 | \n",
" 11.30 | \n",
" 0.24 | \n",
" 30.70 | \n",
" 0.90 | \n",
" 0.01 | \n",
" 0 | \n",
" 0.19 | \n",
" 0 | \n",
" 1.943665 | \n",
" 1.617356 | \n",
" 0.333959 | \n",
" 0.034078 | \n",
" 0.062475 | \n",
" 0.000685 | \n",
" 0.0 | \n",
" 0.007184 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.0 | \n",
" 0.056335 | \n",
" 0.006140 | \n",
" 1.952703 | \n",
" 0.814628 | \n",
" 0.168208 | \n",
" 0.017164 | \n",
" 4.013748 | \n",
" 0.017164 | \n",
" 0.000685 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.000146 | \n",
" 0.034078 | \n",
" 0.957618 | \n",
" 0.790815 | \n",
" 0.028142 | \n",
" 0.828850 | \n",
" 0.871733 | \n",
" 0.834684 | \n",
" 0.027496 | \n",
" 0.604991 | \n",
" 0.216022 | \n",
" 0.645067 | \n",
"
\n",
" \n",
" 1 | \n",
" 1577.081747 | \n",
" 15.878754 | \n",
" T_Put2008_eq36 | \n",
" P_Put2008_eq39 | \n",
" 0.006163 | \n",
" Y | \n",
" 0.383837 | \n",
" Y | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
" 1.830350 | \n",
" 1.129447 | \n",
" 0.198073 | \n",
" 0.443816 | \n",
" 0.349659 | \n",
" 0.043931 | \n",
" 0.0 | \n",
" 0.004498 | \n",
" 0.007456 | \n",
" 0.001399 | \n",
" 0.0 | \n",
" 0.169650 | \n",
" 0.180009 | \n",
" 0.637624 | \n",
" 0.111821 | \n",
" 0.250554 | \n",
" 4.008630 | \n",
" 0.250554 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 0.087138 | \n",
" 0.000700 | \n",
" 0.411086 | \n",
" 0.850790 | \n",
" 0.043931 | \n",
" 0 | \n",
" 0.136078 | \n",
" 0.016786 | \n",
" 0.290252 | \n",
" 0.518634 | \n",
" 0.290252 | \n",
" 0.246111 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
" 1.823396 | \n",
" 1.516444 | \n",
" 0.245370 | \n",
" 0.079334 | \n",
" 0.330303 | \n",
" 0.009392 | \n",
" 0.0 | \n",
" 0.004103 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.176604 | \n",
" 0.153699 | \n",
" 1.827300 | \n",
" 0.823640 | \n",
" 0.133270 | \n",
" 0.043089 | \n",
" 4.012245 | \n",
" 0.043089 | \n",
" 0.009392 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.144307 | \n",
" 0.079334 | \n",
" 0.769186 | \n",
" 0.660522 | \n",
" 0.068126 | \n",
" 0.860725 | \n",
" 0.678544 | \n",
" 1.083837 | \n",
" 0.024489 | \n",
" 0.386810 | \n",
" 0.142639 | \n",
" 0.569045 | \n",
"
\n",
" \n",
" 2 | \n",
" 1573.435336 | \n",
" 14.702638 | \n",
" T_Put2008_eq36 | \n",
" P_Put2008_eq39 | \n",
" 0.047662 | \n",
" Y | \n",
" 0.437662 | \n",
" Y | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
" 1.835204 | \n",
" 1.078405 | \n",
" 0.207416 | \n",
" 0.481084 | \n",
" 0.340188 | \n",
" 0.038691 | \n",
" 0.0 | \n",
" 0.005131 | \n",
" 0.012062 | \n",
" 0.002536 | \n",
" 0.0 | \n",
" 0.164796 | \n",
" 0.175393 | \n",
" 0.610336 | \n",
" 0.117390 | \n",
" 0.272275 | \n",
" 4.000717 | \n",
" 0.272275 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 0.006917 | \n",
" 0.001268 | \n",
" 0.388642 | \n",
" 0.838685 | \n",
" 0.038691 | \n",
" 0 | \n",
" 0.136701 | \n",
" 0.014047 | \n",
" 0.329068 | \n",
" 0.478377 | \n",
" 0.329068 | \n",
" 0.274889 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
" 1.839965 | \n",
" 1.505530 | \n",
" 0.254529 | \n",
" 0.087825 | \n",
" 0.301638 | \n",
" 0.009388 | \n",
" 0.0 | \n",
" 0.003808 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.0 | \n",
" 0.160035 | \n",
" 0.141603 | \n",
" 1.845168 | \n",
" 0.814732 | \n",
" 0.137741 | \n",
" 0.047527 | \n",
" 4.008433 | \n",
" 0.047527 | \n",
" 0.009388 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.131669 | \n",
" 0.087825 | \n",
" 0.769585 | \n",
" 0.656871 | \n",
" 0.074962 | \n",
" 0.855382 | \n",
" 0.674378 | \n",
" 1.137662 | \n",
" 0.016867 | \n",
" 0.412205 | \n",
" 0.169248 | \n",
" 0.562463 | \n",
"
\n",
" \n",
" 3 | \n",
" 1278.712525 | \n",
" 3.489871 | \n",
" T_Put2008_eq36 | \n",
" P_Put2008_eq39 | \n",
" 0.060356 | \n",
" Y | \n",
" 0.450356 | \n",
" Y | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
" 1.914576 | \n",
" 0.882079 | \n",
" 0.193792 | \n",
" 0.836461 | \n",
" 0.139648 | \n",
" 0.019629 | \n",
" 0.0 | \n",
" 0.003811 | \n",
" 0.017487 | \n",
" 0.000296 | \n",
" 0.0 | \n",
" 0.085424 | \n",
" 0.054224 | \n",
" 0.461258 | \n",
" 0.101338 | \n",
" 0.437404 | \n",
" 4.007780 | \n",
" 0.437404 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 0.080287 | \n",
" 0.000148 | \n",
" 0.132428 | \n",
" 0.819869 | \n",
" 0.019629 | \n",
" 0 | \n",
" 0.034595 | \n",
" 0.025415 | \n",
" 0.776303 | \n",
" 0.149784 | \n",
" 0.776303 | \n",
" 0.634224 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
" 1.968730 | \n",
" 1.595973 | \n",
" 0.304805 | \n",
" 0.063492 | \n",
" 0.050066 | \n",
" 0.002076 | \n",
" 0.0 | \n",
" 0.006652 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.0 | \n",
" 0.031270 | \n",
" 0.018796 | \n",
" 1.973295 | \n",
" 0.812502 | \n",
" 0.155175 | \n",
" 0.032324 | \n",
" 4.000594 | \n",
" 0.032324 | \n",
" 0.002076 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.012486 | \n",
" 0.063492 | \n",
" 0.913443 | \n",
" 0.764291 | \n",
" 0.053125 | \n",
" 0.839637 | \n",
" 0.812807 | \n",
" 1.150356 | \n",
" 0.001187 | \n",
" 0.601746 | \n",
" 0.388240 | \n",
" 0.636705 | \n",
"
\n",
" \n",
" 4 | \n",
" 1280.203052 | \n",
" 5.074810 | \n",
" T_Put2008_eq36 | \n",
" P_Put2008_eq39 | \n",
" 0.026997 | \n",
" Y | \n",
" 0.363003 | \n",
" Y | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
" 1.947746 | \n",
" 0.920861 | \n",
" 0.180851 | \n",
" 0.811362 | \n",
" 0.096868 | \n",
" 0.019831 | \n",
" 0.0 | \n",
" 0.004641 | \n",
" 0.013189 | \n",
" 0.003466 | \n",
" 0.0 | \n",
" 0.052254 | \n",
" 0.044614 | \n",
" 0.481352 | \n",
" 0.094534 | \n",
" 0.424114 | \n",
" 3.998814 | \n",
" 0.424114 | \n",
" 0.000000 | \n",
" 0.180851 | \n",
" 0.000000 | \n",
" 0.001733 | \n",
" 0.158665 | \n",
" 0.835841 | \n",
" 0.019831 | \n",
" 0 | \n",
" 0.024783 | \n",
" 0.013736 | \n",
" 0.771110 | \n",
" 0.165301 | \n",
" 0.771110 | \n",
" 0.641826 | \n",
" -0.002372 | \n",
" 0.183222 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
" 1.971271 | \n",
" 1.611274 | \n",
" 0.297687 | \n",
" 0.039377 | \n",
" 0.058165 | \n",
" 0.001357 | \n",
" 0.0 | \n",
" 0.007708 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.0 | \n",
" 0.028729 | \n",
" 0.029435 | \n",
" 1.974693 | \n",
" 0.826999 | \n",
" 0.152790 | \n",
" 0.020211 | \n",
" 3.994689 | \n",
" 0.020211 | \n",
" 0.001357 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.023651 | \n",
" 0.039377 | \n",
" 0.925110 | \n",
" 0.777706 | \n",
" 0.033103 | \n",
" 0.844054 | \n",
" 0.829605 | \n",
" 1.063003 | \n",
" 0.000000 | \n",
" 0.585107 | \n",
" 0.208745 | \n",
" 0.652532 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" T_K_calc P_kbar_calc Equation Choice (T) Equation Choice (P) \\\n",
"0 1258.526669 3.380885 T_Put2008_eq36 P_Put2008_eq39 \n",
"1 1577.081747 15.878754 T_Put2008_eq36 P_Put2008_eq39 \n",
"2 1573.435336 14.702638 T_Put2008_eq36 P_Put2008_eq39 \n",
"3 1278.712525 3.489871 T_Put2008_eq36 P_Put2008_eq39 \n",
"4 1280.203052 5.074810 T_Put2008_eq36 P_Put2008_eq39 \n",
"\n",
" Delta Kd High T High T Kd Eq? Delta Kd Low T Low T Kd Eq? SiO2_Cpx \\\n",
"0 0.255316 N 0.134684 Y 52.30 \n",
"1 0.006163 Y 0.383837 Y 51.70 \n",
"2 0.047662 Y 0.437662 Y 51.50 \n",
"3 0.060356 Y 0.450356 Y 51.06 \n",
"4 0.026997 Y 0.363003 Y 53.32 \n",
"\n",
" TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx Na2O_Cpx \\\n",
"0 0.70 3.00 5.10 0.11 16.60 21.50 0.33 \n",
"1 0.28 8.38 6.69 0.15 21.40 11.70 0.64 \n",
"2 0.45 8.10 6.96 0.17 20.30 12.60 0.56 \n",
"3 0.62 3.16 6.18 0.12 15.78 20.82 0.27 \n",
"4 0.48 2.25 5.92 0.15 16.91 20.73 0.28 \n",
"\n",
" K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx Si_Cpx_cat_6ox Mg_Cpx_cat_6ox \\\n",
"0 0 0.58 0 1.912184 0.904784 \n",
"1 0 0.05 1 1.830350 1.129447 \n",
"2 0 0.09 2 1.835204 1.078405 \n",
"3 0 0.01 3 1.914576 0.882079 \n",
"4 0 0.12 4 1.947746 0.920861 \n",
"\n",
" Fet_Cpx_cat_6ox Ca_Cpx_cat_6ox Al_Cpx_cat_6ox Na_Cpx_cat_6ox \\\n",
"0 0.155939 0.842247 0.129273 0.023393 \n",
"1 0.198073 0.443816 0.349659 0.043931 \n",
"2 0.207416 0.481084 0.340188 0.038691 \n",
"3 0.193792 0.836461 0.139648 0.019629 \n",
"4 0.180851 0.811362 0.096868 0.019831 \n",
"\n",
" K_Cpx_cat_6ox Mn_Cpx_cat_6ox Ti_Cpx_cat_6ox Cr_Cpx_cat_6ox \\\n",
"0 0.0 0.003406 0.019251 0.016765 \n",
"1 0.0 0.004498 0.007456 0.001399 \n",
"2 0.0 0.005131 0.012062 0.002536 \n",
"3 0.0 0.003811 0.017487 0.000296 \n",
"4 0.0 0.004641 0.013189 0.003466 \n",
"\n",
" oxy_renorm_factor Al_IV_cat_6ox Al_VI_cat_6ox En_Simple_MgFeCa_Cpx \\\n",
"0 0.0 0.087816 0.041457 0.475459 \n",
"1 0.0 0.169650 0.180009 0.637624 \n",
"2 0.0 0.164796 0.175393 0.610336 \n",
"3 0.0 0.085424 0.054224 0.461258 \n",
"4 0.0 0.052254 0.044614 0.481352 \n",
"\n",
" Fs_Simple_MgFeCa_Cpx Wo_Simple_MgFeCa_Cpx Cation_Sum_Cpx Ca_CaMgFe \\\n",
"0 0.081945 0.442596 4.007242 0.442596 \n",
"1 0.111821 0.250554 4.008630 0.250554 \n",
"2 0.117390 0.272275 4.000717 0.272275 \n",
"3 0.101338 0.437404 4.007780 0.437404 \n",
"4 0.094534 0.424114 3.998814 0.424114 \n",
"\n",
" Lindley_Fe3_Cpx Lindley_Fe2_Cpx Lindley_Fe3_Cpx_prop CrCaTs a_cpx_En \\\n",
"0 0.014485 0.141454 0.092887 0.008383 0.122977 \n",
"1 0.017260 0.180814 0.087138 0.000700 0.411086 \n",
"2 0.001435 0.205981 0.006917 0.001268 0.388642 \n",
"3 0.015559 0.178233 0.080287 0.000148 0.132428 \n",
"4 0.000000 0.180851 0.000000 0.001733 0.158665 \n",
"\n",
" Mgno_Cpx Jd Jd_from 0=Na, 1=Al CaTs CaTi DiHd_1996 \\\n",
"0 0.852984 0.023393 0 0.018064 0.034876 0.780925 \n",
"1 0.850790 0.043931 0 0.136078 0.016786 0.290252 \n",
"2 0.838685 0.038691 0 0.136701 0.014047 0.329068 \n",
"3 0.819869 0.019629 0 0.034595 0.025415 0.776303 \n",
"4 0.835841 0.019831 0 0.024783 0.013736 0.771110 \n",
"\n",
" EnFs DiHd_2003 Di_Cpx FeIII_Wang21 FeII_Wang21 SiO2_Opx \\\n",
"0 0.139899 0.780925 0.663987 0.014485 0.141454 55.00 \n",
"1 0.518634 0.290252 0.246111 0.017260 0.180814 52.70 \n",
"2 0.478377 0.329068 0.274889 0.001435 0.205981 53.20 \n",
"3 0.149784 0.776303 0.634224 0.015559 0.178233 55.15 \n",
"4 0.165301 0.771110 0.641826 -0.002372 0.183222 56.32 \n",
"\n",
" TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx Na2O_Opx \\\n",
"0 0.34 1.50 11.30 0.24 30.70 0.90 0.01 \n",
"1 0.15 8.10 8.48 0.14 29.40 2.14 0.14 \n",
"2 0.20 7.40 8.80 0.13 29.20 2.37 0.14 \n",
"3 0.17 1.19 10.21 0.22 29.99 1.66 0.03 \n",
"4 0.13 1.41 10.17 0.26 30.88 1.05 0.02 \n",
"\n",
" K2O_Opx Cr2O3_Opx Sample_ID_Opx Si_Opx_cat_6ox Mg_Opx_cat_6ox \\\n",
"0 0 0.19 0 1.943665 1.617356 \n",
"1 0 0.00 1 1.823396 1.516444 \n",
"2 0 0.02 2 1.839965 1.505530 \n",
"3 0 0.15 3 1.968730 1.595973 \n",
"4 0 0.16 4 1.971271 1.611274 \n",
"\n",
" Fet_Opx_cat_6ox Ca_Opx_cat_6ox Al_Opx_cat_6ox Na_Opx_cat_6ox \\\n",
"0 0.333959 0.034078 0.062475 0.000685 \n",
"1 0.245370 0.079334 0.330303 0.009392 \n",
"2 0.254529 0.087825 0.301638 0.009388 \n",
"3 0.304805 0.063492 0.050066 0.002076 \n",
"4 0.297687 0.039377 0.058165 0.001357 \n",
"\n",
" K_Opx_cat_6ox Mn_Opx_cat_6ox Ti_Opx_cat_6ox Cr_Opx_cat_6ox \\\n",
"0 0.0 0.007184 0.009038 0.005308 \n",
"1 0.0 0.004103 0.003904 0.000000 \n",
"2 0.0 0.003808 0.005203 0.000547 \n",
"3 0.0 0.006652 0.004565 0.004233 \n",
"4 0.0 0.007708 0.003423 0.004427 \n",
"\n",
" oxy_renorm_factor_opx Al_IV_Opx_cat_6ox Al_VI_Opx_cat_6ox \\\n",
"0 0.0 0.056335 0.006140 \n",
"1 0.0 0.176604 0.153699 \n",
"2 0.0 0.160035 0.141603 \n",
"3 0.0 0.031270 0.018796 \n",
"4 0.0 0.028729 0.029435 \n",
"\n",
" Si_Ti_Opx_cat_6ox En_Simple_MgFeCa_Opx Fs_Simple_MgFeCa_Opx \\\n",
"0 1.952703 0.814628 0.168208 \n",
"1 1.827300 0.823640 0.133270 \n",
"2 1.845168 0.814732 0.137741 \n",
"3 1.973295 0.812502 0.155175 \n",
"4 1.974693 0.826999 0.152790 \n",
"\n",
" Wo_Simple_MgFeCa_Opx Cation_Sum_Opx Ca_CaMgFe NaAlSi2O6 FmTiAlSiO6 \\\n",
"0 0.017164 4.013748 0.017164 0.000685 0.009038 \n",
"1 0.043089 4.012245 0.043089 0.009392 0.003904 \n",
"2 0.047527 4.008433 0.047527 0.009388 0.005203 \n",
"3 0.032324 4.000594 0.032324 0.002076 0.004565 \n",
"4 0.020211 3.994689 0.020211 0.001357 0.003423 \n",
"\n",
" CrAl2SiO6 FmAl2SiO6 CaFmSi2O6 Fm2Si2O6 En_Opx Di_Opx Mgno_OPX \\\n",
"0 0.005308 0.000146 0.034078 0.957618 0.790815 0.028142 0.828850 \n",
"1 0.000000 0.144307 0.079334 0.769186 0.660522 0.068126 0.860725 \n",
"2 0.000547 0.131669 0.087825 0.769585 0.656871 0.074962 0.855382 \n",
"3 0.004233 0.012486 0.063492 0.913443 0.764291 0.053125 0.839637 \n",
"4 0.004427 0.023651 0.039377 0.925110 0.777706 0.033103 0.844054 \n",
"\n",
" En Kd_Fe_Mg_Cpx_Opx Lindley_Fe3_Opx a_Di_cpx Kf \\\n",
"0 0.871733 0.834684 0.027496 0.604991 0.216022 \n",
"1 0.678544 1.083837 0.024489 0.386810 0.142639 \n",
"2 0.674378 1.137662 0.016867 0.412205 0.169248 \n",
"3 0.812807 1.150356 0.001187 0.601746 0.388240 \n",
"4 0.829605 1.063003 0.000000 0.585107 0.208745 \n",
"\n",
" a_En_opx_mod \n",
"0 0.645067 \n",
"1 0.569045 \n",
"2 0.562463 \n",
"3 0.636705 \n",
"4 0.652532 "
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_T36_P39=pt.calculate_cpx_opx_press_temp(opx_comps=Opxs, cpx_comps=Cpxs,\n",
" equationP=\"P_Put2008_eq39\", \n",
" equationT=\"T_Put2008_eq36\", eq_tests=True)\n",
"P_T36_P39.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 3c - Here, use Temp from Bray 1990 and equation 38 from Putirka (2008)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Youve selected a T-independent function\n"
]
},
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" T_K_calc | \n",
" P_kbar_calc | \n",
" Equation Choice (T) | \n",
" Equation Choice (P) | \n",
" Delta Kd High T | \n",
" High T Kd Eq? | \n",
" Delta Kd Low T | \n",
" Low T Kd Eq? | \n",
" SiO2_Cpx | \n",
" TiO2_Cpx | \n",
" Al2O3_Cpx | \n",
" FeOt_Cpx | \n",
" MnO_Cpx | \n",
" MgO_Cpx | \n",
" CaO_Cpx | \n",
" Na2O_Cpx | \n",
" K2O_Cpx | \n",
" Cr2O3_Cpx | \n",
" Sample_ID_Cpx | \n",
" Si_Cpx_cat_6ox | \n",
" Mg_Cpx_cat_6ox | \n",
" Fet_Cpx_cat_6ox | \n",
" Ca_Cpx_cat_6ox | \n",
" Al_Cpx_cat_6ox | \n",
" Na_Cpx_cat_6ox | \n",
" K_Cpx_cat_6ox | \n",
" Mn_Cpx_cat_6ox | \n",
" Ti_Cpx_cat_6ox | \n",
" Cr_Cpx_cat_6ox | \n",
" oxy_renorm_factor | \n",
" Al_IV_cat_6ox | \n",
" Al_VI_cat_6ox | \n",
" En_Simple_MgFeCa_Cpx | \n",
" Fs_Simple_MgFeCa_Cpx | \n",
" Wo_Simple_MgFeCa_Cpx | \n",
" Cation_Sum_Cpx | \n",
" Ca_CaMgFe | \n",
" Lindley_Fe3_Cpx | \n",
" Lindley_Fe2_Cpx | \n",
" Lindley_Fe3_Cpx_prop | \n",
" CrCaTs | \n",
" a_cpx_En | \n",
" Mgno_Cpx | \n",
" Jd | \n",
" Jd_from 0=Na, 1=Al | \n",
" CaTs | \n",
" CaTi | \n",
" DiHd_1996 | \n",
" EnFs | \n",
" DiHd_2003 | \n",
" Di_Cpx | \n",
" FeIII_Wang21 | \n",
" FeII_Wang21 | \n",
" SiO2_Opx | \n",
" TiO2_Opx | \n",
" Al2O3_Opx | \n",
" FeOt_Opx | \n",
" MnO_Opx | \n",
" MgO_Opx | \n",
" CaO_Opx | \n",
" Na2O_Opx | \n",
" K2O_Opx | \n",
" Cr2O3_Opx | \n",
" Sample_ID_Opx | \n",
" Si_Opx_cat_6ox | \n",
" Mg_Opx_cat_6ox | \n",
" Fet_Opx_cat_6ox | \n",
" Ca_Opx_cat_6ox | \n",
" Al_Opx_cat_6ox | \n",
" Na_Opx_cat_6ox | \n",
" K_Opx_cat_6ox | \n",
" Mn_Opx_cat_6ox | \n",
" Ti_Opx_cat_6ox | \n",
" Cr_Opx_cat_6ox | \n",
" oxy_renorm_factor_opx | \n",
" Al_IV_Opx_cat_6ox | \n",
" Al_VI_Opx_cat_6ox | \n",
" Si_Ti_Opx_cat_6ox | \n",
" En_Simple_MgFeCa_Opx | \n",
" Fs_Simple_MgFeCa_Opx | \n",
" Wo_Simple_MgFeCa_Opx | \n",
" Cation_Sum_Opx | \n",
" Ca_CaMgFe | \n",
" NaAlSi2O6 | \n",
" FmTiAlSiO6 | \n",
" CrAl2SiO6 | \n",
" FmAl2SiO6 | \n",
" CaFmSi2O6 | \n",
" Fm2Si2O6 | \n",
" En_Opx | \n",
" Di_Opx | \n",
" Mgno_OPX | \n",
" En | \n",
" Kd_Fe_Mg_Cpx_Opx | \n",
" Lindley_Fe3_Opx | \n",
" a_Di_cpx | \n",
" Kf | \n",
" a_En_opx_mod | \n",
"
\n",
" \n",
" \n",
" \n",
" 0 | \n",
" 1239.928820 | \n",
" 2.187907 | \n",
" T_Brey1990 | \n",
" P_Put2008_eq38 | \n",
" 0.255316 | \n",
" N | \n",
" 0.134684 | \n",
" Y | \n",
" 52.30 | \n",
" 0.70 | \n",
" 3.00 | \n",
" 5.10 | \n",
" 0.11 | \n",
" 16.60 | \n",
" 21.50 | \n",
" 0.33 | \n",
" 0 | \n",
" 0.58 | \n",
" 0 | \n",
" 1.912184 | \n",
" 0.904784 | \n",
" 0.155939 | \n",
" 0.842247 | \n",
" 0.129273 | \n",
" 0.023393 | \n",
" 0.0 | \n",
" 0.003406 | \n",
" 0.019251 | \n",
" 0.016765 | \n",
" 0.0 | \n",
" 0.087816 | \n",
" 0.041457 | \n",
" 0.475459 | \n",
" 0.081945 | \n",
" 0.442596 | \n",
" 4.007242 | \n",
" 0.442596 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 0.092887 | \n",
" 0.008383 | \n",
" 0.122977 | \n",
" 0.852984 | \n",
" 0.023393 | \n",
" 0 | \n",
" 0.018064 | \n",
" 0.034876 | \n",
" 0.780925 | \n",
" 0.139899 | \n",
" 0.780925 | \n",
" 0.663987 | \n",
" 0.014485 | \n",
" 0.141454 | \n",
" 55.00 | \n",
" 0.34 | \n",
" 1.50 | \n",
" 11.30 | \n",
" 0.24 | \n",
" 30.70 | \n",
" 0.90 | \n",
" 0.01 | \n",
" 0 | \n",
" 0.19 | \n",
" 0 | \n",
" 1.943665 | \n",
" 1.617356 | \n",
" 0.333959 | \n",
" 0.034078 | \n",
" 0.062475 | \n",
" 0.000685 | \n",
" 0.0 | \n",
" 0.007184 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.0 | \n",
" 0.056335 | \n",
" 0.006140 | \n",
" 1.952703 | \n",
" 0.814628 | \n",
" 0.168208 | \n",
" 0.017164 | \n",
" 4.013748 | \n",
" 0.017164 | \n",
" 0.000685 | \n",
" 0.009038 | \n",
" 0.005308 | \n",
" 0.000146 | \n",
" 0.034078 | \n",
" 0.957618 | \n",
" 0.790815 | \n",
" 0.028142 | \n",
" 0.828850 | \n",
" 0.871733 | \n",
" 0.834684 | \n",
" 0.027496 | \n",
" 0.604991 | \n",
" 0.216022 | \n",
" 0.645067 | \n",
"
\n",
" \n",
" 1 | \n",
" 1595.369041 | \n",
" 16.535654 | \n",
" T_Brey1990 | \n",
" P_Put2008_eq38 | \n",
" 0.006163 | \n",
" Y | \n",
" 0.383837 | \n",
" Y | \n",
" 51.70 | \n",
" 0.28 | \n",
" 8.38 | \n",
" 6.69 | \n",
" 0.15 | \n",
" 21.40 | \n",
" 11.70 | \n",
" 0.64 | \n",
" 0 | \n",
" 0.05 | \n",
" 1 | \n",
" 1.830350 | \n",
" 1.129447 | \n",
" 0.198073 | \n",
" 0.443816 | \n",
" 0.349659 | \n",
" 0.043931 | \n",
" 0.0 | \n",
" 0.004498 | \n",
" 0.007456 | \n",
" 0.001399 | \n",
" 0.0 | \n",
" 0.169650 | \n",
" 0.180009 | \n",
" 0.637624 | \n",
" 0.111821 | \n",
" 0.250554 | \n",
" 4.008630 | \n",
" 0.250554 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 0.087138 | \n",
" 0.000700 | \n",
" 0.411086 | \n",
" 0.850790 | \n",
" 0.043931 | \n",
" 0 | \n",
" 0.136078 | \n",
" 0.016786 | \n",
" 0.290252 | \n",
" 0.518634 | \n",
" 0.290252 | \n",
" 0.246111 | \n",
" 0.017260 | \n",
" 0.180814 | \n",
" 52.70 | \n",
" 0.15 | \n",
" 8.10 | \n",
" 8.48 | \n",
" 0.14 | \n",
" 29.40 | \n",
" 2.14 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.00 | \n",
" 1 | \n",
" 1.823396 | \n",
" 1.516444 | \n",
" 0.245370 | \n",
" 0.079334 | \n",
" 0.330303 | \n",
" 0.009392 | \n",
" 0.0 | \n",
" 0.004103 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.0 | \n",
" 0.176604 | \n",
" 0.153699 | \n",
" 1.827300 | \n",
" 0.823640 | \n",
" 0.133270 | \n",
" 0.043089 | \n",
" 4.012245 | \n",
" 0.043089 | \n",
" 0.009392 | \n",
" 0.003904 | \n",
" 0.000000 | \n",
" 0.144307 | \n",
" 0.079334 | \n",
" 0.769186 | \n",
" 0.660522 | \n",
" 0.068126 | \n",
" 0.860725 | \n",
" 0.678544 | \n",
" 1.083837 | \n",
" 0.024489 | \n",
" 0.386810 | \n",
" 0.142639 | \n",
" 0.569045 | \n",
"
\n",
" \n",
" 2 | \n",
" 1577.310529 | \n",
" 14.450339 | \n",
" T_Brey1990 | \n",
" P_Put2008_eq38 | \n",
" 0.047662 | \n",
" Y | \n",
" 0.437662 | \n",
" Y | \n",
" 51.50 | \n",
" 0.45 | \n",
" 8.10 | \n",
" 6.96 | \n",
" 0.17 | \n",
" 20.30 | \n",
" 12.60 | \n",
" 0.56 | \n",
" 0 | \n",
" 0.09 | \n",
" 2 | \n",
" 1.835204 | \n",
" 1.078405 | \n",
" 0.207416 | \n",
" 0.481084 | \n",
" 0.340188 | \n",
" 0.038691 | \n",
" 0.0 | \n",
" 0.005131 | \n",
" 0.012062 | \n",
" 0.002536 | \n",
" 0.0 | \n",
" 0.164796 | \n",
" 0.175393 | \n",
" 0.610336 | \n",
" 0.117390 | \n",
" 0.272275 | \n",
" 4.000717 | \n",
" 0.272275 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 0.006917 | \n",
" 0.001268 | \n",
" 0.388642 | \n",
" 0.838685 | \n",
" 0.038691 | \n",
" 0 | \n",
" 0.136701 | \n",
" 0.014047 | \n",
" 0.329068 | \n",
" 0.478377 | \n",
" 0.329068 | \n",
" 0.274889 | \n",
" 0.001435 | \n",
" 0.205981 | \n",
" 53.20 | \n",
" 0.20 | \n",
" 7.40 | \n",
" 8.80 | \n",
" 0.13 | \n",
" 29.20 | \n",
" 2.37 | \n",
" 0.14 | \n",
" 0 | \n",
" 0.02 | \n",
" 2 | \n",
" 1.839965 | \n",
" 1.505530 | \n",
" 0.254529 | \n",
" 0.087825 | \n",
" 0.301638 | \n",
" 0.009388 | \n",
" 0.0 | \n",
" 0.003808 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.0 | \n",
" 0.160035 | \n",
" 0.141603 | \n",
" 1.845168 | \n",
" 0.814732 | \n",
" 0.137741 | \n",
" 0.047527 | \n",
" 4.008433 | \n",
" 0.047527 | \n",
" 0.009388 | \n",
" 0.005203 | \n",
" 0.000547 | \n",
" 0.131669 | \n",
" 0.087825 | \n",
" 0.769585 | \n",
" 0.656871 | \n",
" 0.074962 | \n",
" 0.855382 | \n",
" 0.674378 | \n",
" 1.137662 | \n",
" 0.016867 | \n",
" 0.412205 | \n",
" 0.169248 | \n",
" 0.562463 | \n",
"
\n",
" \n",
" 3 | \n",
" 1273.413868 | \n",
" 2.380005 | \n",
" T_Brey1990 | \n",
" P_Put2008_eq38 | \n",
" 0.060356 | \n",
" Y | \n",
" 0.450356 | \n",
" Y | \n",
" 51.06 | \n",
" 0.62 | \n",
" 3.16 | \n",
" 6.18 | \n",
" 0.12 | \n",
" 15.78 | \n",
" 20.82 | \n",
" 0.27 | \n",
" 0 | \n",
" 0.01 | \n",
" 3 | \n",
" 1.914576 | \n",
" 0.882079 | \n",
" 0.193792 | \n",
" 0.836461 | \n",
" 0.139648 | \n",
" 0.019629 | \n",
" 0.0 | \n",
" 0.003811 | \n",
" 0.017487 | \n",
" 0.000296 | \n",
" 0.0 | \n",
" 0.085424 | \n",
" 0.054224 | \n",
" 0.461258 | \n",
" 0.101338 | \n",
" 0.437404 | \n",
" 4.007780 | \n",
" 0.437404 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 0.080287 | \n",
" 0.000148 | \n",
" 0.132428 | \n",
" 0.819869 | \n",
" 0.019629 | \n",
" 0 | \n",
" 0.034595 | \n",
" 0.025415 | \n",
" 0.776303 | \n",
" 0.149784 | \n",
" 0.776303 | \n",
" 0.634224 | \n",
" 0.015559 | \n",
" 0.178233 | \n",
" 55.15 | \n",
" 0.17 | \n",
" 1.19 | \n",
" 10.21 | \n",
" 0.22 | \n",
" 29.99 | \n",
" 1.66 | \n",
" 0.03 | \n",
" 0 | \n",
" 0.15 | \n",
" 3 | \n",
" 1.968730 | \n",
" 1.595973 | \n",
" 0.304805 | \n",
" 0.063492 | \n",
" 0.050066 | \n",
" 0.002076 | \n",
" 0.0 | \n",
" 0.006652 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.0 | \n",
" 0.031270 | \n",
" 0.018796 | \n",
" 1.973295 | \n",
" 0.812502 | \n",
" 0.155175 | \n",
" 0.032324 | \n",
" 4.000594 | \n",
" 0.032324 | \n",
" 0.002076 | \n",
" 0.004565 | \n",
" 0.004233 | \n",
" 0.012486 | \n",
" 0.063492 | \n",
" 0.913443 | \n",
" 0.764291 | \n",
" 0.053125 | \n",
" 0.839637 | \n",
" 0.812807 | \n",
" 1.150356 | \n",
" 0.001187 | \n",
" 0.601746 | \n",
" 0.388240 | \n",
" 0.636705 | \n",
"
\n",
" \n",
" 4 | \n",
" 1314.729086 | \n",
" 4.099411 | \n",
" T_Brey1990 | \n",
" P_Put2008_eq38 | \n",
" 0.026997 | \n",
" Y | \n",
" 0.363003 | \n",
" Y | \n",
" 53.32 | \n",
" 0.48 | \n",
" 2.25 | \n",
" 5.92 | \n",
" 0.15 | \n",
" 16.91 | \n",
" 20.73 | \n",
" 0.28 | \n",
" 0 | \n",
" 0.12 | \n",
" 4 | \n",
" 1.947746 | \n",
" 0.920861 | \n",
" 0.180851 | \n",
" 0.811362 | \n",
" 0.096868 | \n",
" 0.019831 | \n",
" 0.0 | \n",
" 0.004641 | \n",
" 0.013189 | \n",
" 0.003466 | \n",
" 0.0 | \n",
" 0.052254 | \n",
" 0.044614 | \n",
" 0.481352 | \n",
" 0.094534 | \n",
" 0.424114 | \n",
" 3.998814 | \n",
" 0.424114 | \n",
" 0.000000 | \n",
" 0.180851 | \n",
" 0.000000 | \n",
" 0.001733 | \n",
" 0.158665 | \n",
" 0.835841 | \n",
" 0.019831 | \n",
" 0 | \n",
" 0.024783 | \n",
" 0.013736 | \n",
" 0.771110 | \n",
" 0.165301 | \n",
" 0.771110 | \n",
" 0.641826 | \n",
" -0.002372 | \n",
" 0.183222 | \n",
" 56.32 | \n",
" 0.13 | \n",
" 1.41 | \n",
" 10.17 | \n",
" 0.26 | \n",
" 30.88 | \n",
" 1.05 | \n",
" 0.02 | \n",
" 0 | \n",
" 0.16 | \n",
" 4 | \n",
" 1.971271 | \n",
" 1.611274 | \n",
" 0.297687 | \n",
" 0.039377 | \n",
" 0.058165 | \n",
" 0.001357 | \n",
" 0.0 | \n",
" 0.007708 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.0 | \n",
" 0.028729 | \n",
" 0.029435 | \n",
" 1.974693 | \n",
" 0.826999 | \n",
" 0.152790 | \n",
" 0.020211 | \n",
" 3.994689 | \n",
" 0.020211 | \n",
" 0.001357 | \n",
" 0.003423 | \n",
" 0.004427 | \n",
" 0.023651 | \n",
" 0.039377 | \n",
" 0.925110 | \n",
" 0.777706 | \n",
" 0.033103 | \n",
" 0.844054 | \n",
" 0.829605 | \n",
" 1.063003 | \n",
" 0.000000 | \n",
" 0.585107 | \n",
" 0.208745 | \n",
" 0.652532 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" T_K_calc P_kbar_calc Equation Choice (T) Equation Choice (P) \\\n",
"0 1239.928820 2.187907 T_Brey1990 P_Put2008_eq38 \n",
"1 1595.369041 16.535654 T_Brey1990 P_Put2008_eq38 \n",
"2 1577.310529 14.450339 T_Brey1990 P_Put2008_eq38 \n",
"3 1273.413868 2.380005 T_Brey1990 P_Put2008_eq38 \n",
"4 1314.729086 4.099411 T_Brey1990 P_Put2008_eq38 \n",
"\n",
" Delta Kd High T High T Kd Eq? Delta Kd Low T Low T Kd Eq? SiO2_Cpx \\\n",
"0 0.255316 N 0.134684 Y 52.30 \n",
"1 0.006163 Y 0.383837 Y 51.70 \n",
"2 0.047662 Y 0.437662 Y 51.50 \n",
"3 0.060356 Y 0.450356 Y 51.06 \n",
"4 0.026997 Y 0.363003 Y 53.32 \n",
"\n",
" TiO2_Cpx Al2O3_Cpx FeOt_Cpx MnO_Cpx MgO_Cpx CaO_Cpx Na2O_Cpx \\\n",
"0 0.70 3.00 5.10 0.11 16.60 21.50 0.33 \n",
"1 0.28 8.38 6.69 0.15 21.40 11.70 0.64 \n",
"2 0.45 8.10 6.96 0.17 20.30 12.60 0.56 \n",
"3 0.62 3.16 6.18 0.12 15.78 20.82 0.27 \n",
"4 0.48 2.25 5.92 0.15 16.91 20.73 0.28 \n",
"\n",
" K2O_Cpx Cr2O3_Cpx Sample_ID_Cpx Si_Cpx_cat_6ox Mg_Cpx_cat_6ox \\\n",
"0 0 0.58 0 1.912184 0.904784 \n",
"1 0 0.05 1 1.830350 1.129447 \n",
"2 0 0.09 2 1.835204 1.078405 \n",
"3 0 0.01 3 1.914576 0.882079 \n",
"4 0 0.12 4 1.947746 0.920861 \n",
"\n",
" Fet_Cpx_cat_6ox Ca_Cpx_cat_6ox Al_Cpx_cat_6ox Na_Cpx_cat_6ox \\\n",
"0 0.155939 0.842247 0.129273 0.023393 \n",
"1 0.198073 0.443816 0.349659 0.043931 \n",
"2 0.207416 0.481084 0.340188 0.038691 \n",
"3 0.193792 0.836461 0.139648 0.019629 \n",
"4 0.180851 0.811362 0.096868 0.019831 \n",
"\n",
" K_Cpx_cat_6ox Mn_Cpx_cat_6ox Ti_Cpx_cat_6ox Cr_Cpx_cat_6ox \\\n",
"0 0.0 0.003406 0.019251 0.016765 \n",
"1 0.0 0.004498 0.007456 0.001399 \n",
"2 0.0 0.005131 0.012062 0.002536 \n",
"3 0.0 0.003811 0.017487 0.000296 \n",
"4 0.0 0.004641 0.013189 0.003466 \n",
"\n",
" oxy_renorm_factor Al_IV_cat_6ox Al_VI_cat_6ox En_Simple_MgFeCa_Cpx \\\n",
"0 0.0 0.087816 0.041457 0.475459 \n",
"1 0.0 0.169650 0.180009 0.637624 \n",
"2 0.0 0.164796 0.175393 0.610336 \n",
"3 0.0 0.085424 0.054224 0.461258 \n",
"4 0.0 0.052254 0.044614 0.481352 \n",
"\n",
" Fs_Simple_MgFeCa_Cpx Wo_Simple_MgFeCa_Cpx Cation_Sum_Cpx Ca_CaMgFe \\\n",
"0 0.081945 0.442596 4.007242 0.442596 \n",
"1 0.111821 0.250554 4.008630 0.250554 \n",
"2 0.117390 0.272275 4.000717 0.272275 \n",
"3 0.101338 0.437404 4.007780 0.437404 \n",
"4 0.094534 0.424114 3.998814 0.424114 \n",
"\n",
" Lindley_Fe3_Cpx Lindley_Fe2_Cpx Lindley_Fe3_Cpx_prop CrCaTs a_cpx_En \\\n",
"0 0.014485 0.141454 0.092887 0.008383 0.122977 \n",
"1 0.017260 0.180814 0.087138 0.000700 0.411086 \n",
"2 0.001435 0.205981 0.006917 0.001268 0.388642 \n",
"3 0.015559 0.178233 0.080287 0.000148 0.132428 \n",
"4 0.000000 0.180851 0.000000 0.001733 0.158665 \n",
"\n",
" Mgno_Cpx Jd Jd_from 0=Na, 1=Al CaTs CaTi DiHd_1996 \\\n",
"0 0.852984 0.023393 0 0.018064 0.034876 0.780925 \n",
"1 0.850790 0.043931 0 0.136078 0.016786 0.290252 \n",
"2 0.838685 0.038691 0 0.136701 0.014047 0.329068 \n",
"3 0.819869 0.019629 0 0.034595 0.025415 0.776303 \n",
"4 0.835841 0.019831 0 0.024783 0.013736 0.771110 \n",
"\n",
" EnFs DiHd_2003 Di_Cpx FeIII_Wang21 FeII_Wang21 SiO2_Opx \\\n",
"0 0.139899 0.780925 0.663987 0.014485 0.141454 55.00 \n",
"1 0.518634 0.290252 0.246111 0.017260 0.180814 52.70 \n",
"2 0.478377 0.329068 0.274889 0.001435 0.205981 53.20 \n",
"3 0.149784 0.776303 0.634224 0.015559 0.178233 55.15 \n",
"4 0.165301 0.771110 0.641826 -0.002372 0.183222 56.32 \n",
"\n",
" TiO2_Opx Al2O3_Opx FeOt_Opx MnO_Opx MgO_Opx CaO_Opx Na2O_Opx \\\n",
"0 0.34 1.50 11.30 0.24 30.70 0.90 0.01 \n",
"1 0.15 8.10 8.48 0.14 29.40 2.14 0.14 \n",
"2 0.20 7.40 8.80 0.13 29.20 2.37 0.14 \n",
"3 0.17 1.19 10.21 0.22 29.99 1.66 0.03 \n",
"4 0.13 1.41 10.17 0.26 30.88 1.05 0.02 \n",
"\n",
" K2O_Opx Cr2O3_Opx Sample_ID_Opx Si_Opx_cat_6ox Mg_Opx_cat_6ox \\\n",
"0 0 0.19 0 1.943665 1.617356 \n",
"1 0 0.00 1 1.823396 1.516444 \n",
"2 0 0.02 2 1.839965 1.505530 \n",
"3 0 0.15 3 1.968730 1.595973 \n",
"4 0 0.16 4 1.971271 1.611274 \n",
"\n",
" Fet_Opx_cat_6ox Ca_Opx_cat_6ox Al_Opx_cat_6ox Na_Opx_cat_6ox \\\n",
"0 0.333959 0.034078 0.062475 0.000685 \n",
"1 0.245370 0.079334 0.330303 0.009392 \n",
"2 0.254529 0.087825 0.301638 0.009388 \n",
"3 0.304805 0.063492 0.050066 0.002076 \n",
"4 0.297687 0.039377 0.058165 0.001357 \n",
"\n",
" K_Opx_cat_6ox Mn_Opx_cat_6ox Ti_Opx_cat_6ox Cr_Opx_cat_6ox \\\n",
"0 0.0 0.007184 0.009038 0.005308 \n",
"1 0.0 0.004103 0.003904 0.000000 \n",
"2 0.0 0.003808 0.005203 0.000547 \n",
"3 0.0 0.006652 0.004565 0.004233 \n",
"4 0.0 0.007708 0.003423 0.004427 \n",
"\n",
" oxy_renorm_factor_opx Al_IV_Opx_cat_6ox Al_VI_Opx_cat_6ox \\\n",
"0 0.0 0.056335 0.006140 \n",
"1 0.0 0.176604 0.153699 \n",
"2 0.0 0.160035 0.141603 \n",
"3 0.0 0.031270 0.018796 \n",
"4 0.0 0.028729 0.029435 \n",
"\n",
" Si_Ti_Opx_cat_6ox En_Simple_MgFeCa_Opx Fs_Simple_MgFeCa_Opx \\\n",
"0 1.952703 0.814628 0.168208 \n",
"1 1.827300 0.823640 0.133270 \n",
"2 1.845168 0.814732 0.137741 \n",
"3 1.973295 0.812502 0.155175 \n",
"4 1.974693 0.826999 0.152790 \n",
"\n",
" Wo_Simple_MgFeCa_Opx Cation_Sum_Opx Ca_CaMgFe NaAlSi2O6 FmTiAlSiO6 \\\n",
"0 0.017164 4.013748 0.017164 0.000685 0.009038 \n",
"1 0.043089 4.012245 0.043089 0.009392 0.003904 \n",
"2 0.047527 4.008433 0.047527 0.009388 0.005203 \n",
"3 0.032324 4.000594 0.032324 0.002076 0.004565 \n",
"4 0.020211 3.994689 0.020211 0.001357 0.003423 \n",
"\n",
" CrAl2SiO6 FmAl2SiO6 CaFmSi2O6 Fm2Si2O6 En_Opx Di_Opx Mgno_OPX \\\n",
"0 0.005308 0.000146 0.034078 0.957618 0.790815 0.028142 0.828850 \n",
"1 0.000000 0.144307 0.079334 0.769186 0.660522 0.068126 0.860725 \n",
"2 0.000547 0.131669 0.087825 0.769585 0.656871 0.074962 0.855382 \n",
"3 0.004233 0.012486 0.063492 0.913443 0.764291 0.053125 0.839637 \n",
"4 0.004427 0.023651 0.039377 0.925110 0.777706 0.033103 0.844054 \n",
"\n",
" En Kd_Fe_Mg_Cpx_Opx Lindley_Fe3_Opx a_Di_cpx Kf \\\n",
"0 0.871733 0.834684 0.027496 0.604991 0.216022 \n",
"1 0.678544 1.083837 0.024489 0.386810 0.142639 \n",
"2 0.674378 1.137662 0.016867 0.412205 0.169248 \n",
"3 0.812807 1.150356 0.001187 0.601746 0.388240 \n",
"4 0.829605 1.063003 0.000000 0.585107 0.208745 \n",
"\n",
" a_En_opx_mod \n",
"0 0.645067 \n",
"1 0.569045 \n",
"2 0.562463 \n",
"3 0.636705 \n",
"4 0.652532 "
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P_TBray_P38=pt.calculate_cpx_opx_press_temp(opx_comps=Opxs, cpx_comps=Cpxs, equationP=\"P_Put2008_eq38\", equationT=\"T_Brey1990\", eq_tests=True)\n",
"P_TBray_P38.head()\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Saving to excel\n",
"- if at any point, you want to save one of these results to excel, simply do the following"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"P_T36_P39.to_excel('Cpx-Opx_outputs.xlsx')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.12"
}
},
"nbformat": 4,
"nbformat_minor": 4
}