predict_pH | R Documentation |
Predicts the pH of seawater after a defined amount of oxygen consumption.
predict_pH(
start_o2 = 100,
end_o2,
start_pH,
temp = 25,
sal = 35,
RQ = 1,
TA = NULL,
all_carb = FALSE
)
start_o2 |
pO2 at the start of the measurement (% air saturation). Default is 100% air saturation. |
end_o2 |
pO2 at the end of the measurment (% air saturation). |
start_pH |
seawater pH (total scale) at the start of the measurement. |
temp |
temperature (°C). Default is 25 °C. |
sal |
salinity (psu). Default is 35 psu. If |
RQ |
respiratory quotient: ratio of CO2 produced / O2 consumed. Default is 1. |
TA |
(optional) total alkalinity (umol / kg). If undefined TA is estimated from salinity using |
all_carb |
logical. Should all carbonate chemistry parameters be returned? Default is FALSE. |
Given a known amount of oxygen consumed and an estimated respiratory quotient (see Q10
), the amount of CO2 produced can be estimated. From this CO2 production estimate, the carbonate chemistry of the seawater can be estimated. Atmospheric pressure is assumed.
If all_carb
is FALSE
, then a list of the predicted pH (total scale) at the end of the measurement and the predicted pCO2 (uatm) are returned. If all_carb
is TRUE
, then the predicted carbonate chemistry parameters are returned from carb
.
Matthew A. Birk, matthewabirk@gmail.com
carb
, guess_TA
predict_pH(end_o2 = 75, start_pH = 8.1)
predict_pH(start_o2 = 75, end_o2 = 50, start_pH = 7.96, temp = 15, sal = 33, RQ = 0.88)
# I know pH at the end was 7.8, but what was pH at the beginning?
predict_pH(start_o2 = 75, end_o2 = 100, start_pH = 8.013536) # reverse the order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.