Extending MagmaPandas
Fe3+/Fe2+ models
- class MagmaPandas.Fe_redox.Fe3Fe2_baseclass.Fe3Fe2_model[source]
- abstract calculate_Fe3Fe2(melt_mol_fractions, T_K, fO2, *args, **kwargs) float | ndarray[source]
Calculate melt Fe3+/Fe2+ ratios
- Parameters:
melt_mol_fractions (
Pandas DataFrame) – Melt composition in oxide mol fractionsT_K (float, array-like) – temperature in Kelvin
fO2 (float, array-like) – Oxygen fugacity
- Returns:
melt Fe3+/Fe2+ ratio
- Return type:
float, array-like
- classmethod get_error(Fe3Fe2, error_params_1bar: Dict, error_params_high_pressure: Dict, pressure: Series | None = None, *args, **kwargs) float | ndarray[source]
Returns one standard deviation error on Fe3+/Fe2+ ratios, calculated from a compiled validation dataset.
- Parameters:
Fe3Fe2 (array-like) – melt Fe3+/Fe2+ ratios
pressure (array-like, optional) – pressures of each element in
Fe3Fe2. If this term is not included, errors will be calculated strictly at 1 bar.
- Returns:
Fe3+/Fe2+ error
- Return type:
float, array-like
Kd models
- class MagmaPandas.Kd.Kd_baseclass.Kd_model[source]
- abstract calculate_Kd(melt_mol_fractions, T_K, P_bar, *args, **kwargs) float | ndarray[source]
Calculate mineral-melt partition coefficients
- Parameters:
melt_mol_fractions (
Pandas DataFrame) – Melt composition in oxide mol fractionsT_K (float, array-like) – temperature in Kelvin
P_bar (float, array-like) – pressure in bar
- Returns:
mineral-melt partition coefficients
- Return type:
float, array-like
- classmethod get_error(*args, **kwargs)[source]
Return one standard deviation errors on partition coefficients.
- Returns:
partition coefficient errors
- Return type:
float, array-like