Wrapper to calculate multiple stoichiometric equilibrium constants at given temperature, salinity, pressure and the concentration of magnesium, calcium, sulphate, and fluorine.
calc_Ks(
ks = NULL,
temp_c = 25,
sal = 35,
p_bar = NULL,
magnesium = 0.0528171,
calcium = 0.0102821,
sulphate = NULL,
fluorine = NULL,
method = "MyAMI"
)
Data.table of specified Ks at the given conditions
character vectors of Ks to be calculated e.g., c("K0", "K1")
Temperature (Celsius)
Salinity
Pressure (Bar) (optional)
Magnesium concentration in mol/kgsw. If None, modern is assumed (0.0528171). Should be the average magnesium concentration in seawater - a salinity correction is then applied to calculate the magnesium concentration in the sample.
Calcium concentration in mol/kgsw. If None, modern is assumed (0.0102821). Should be the average calcium concentration in seawater - a salinity correction is then applied to calculate the magnesium concentration in the sample.
Sulphate concentration in mol/kgsw. Calculated from salinity if not given.
Fluorine concentration in mol/kgsw. Calculated from salinity if not given.
Options: R_Polynomial
, MyAMI_Polynomial
, MyAMI
(defaults to "MyAMI").
Dennis Mayk