RQ | R Documentation |
Calculates the respiratory quotient (RQ), or ratio of CO2 produced to O2 consumed between observations. To calculate CO2 produced, either DIC or both pH and TA must be provided.
RQ(
o2,
o2_unit = "percent_a.s.",
pH = NULL,
TA = NULL,
DIC = NULL,
temp = 25,
sal = 35,
atm_pres = 1013.25
)
o2 |
a numeric vector of O2 values with a length of at least 2. |
o2_unit |
a string describing the unit used to measure |
pH |
pH (total scale). Elements must align with |
TA |
total alkalinity (umol / kg). May be either a vector with length equal to |
DIC |
dissolved inorganic carbon (umol / kg). Elements must align with |
temp |
temperature (°C). Default is 25 °C. |
sal |
salinity (psu). Default is 35 psu. |
atm_pres |
atmospheric pressure (mbar). Default is 1013.25 mbar. |
ratio of CO2 produced to O2 consumed.
If you want a rough estimate of RQ, but only have pH measurements, TA can be estimated from salinity using guess_TA
.
Matthew A. Birk, matthewabirk@gmail.com
conv_o2
, guess_TA
o2_observations <- c(21, 18, 14.5, 7)
pH_observations <- c(8.05, 7.98, 7.86, 7.65)
TA_observations <- c(2222, 2219, 2208, 2214)
RQ(o2 = o2_observations, o2_unit = 'kPa', pH = pH_observations,
TA = TA_observations, temp = 20, sal = 33)
DIC_observations <- c(2222, 2250, 2284, 2355)
RQ(o2 = o2_observations, o2_unit = 'kPa', DIC = DIC_observations)
RQ(o2 = o2_observations, o2_unit = 'kPa', pH = pH_observations, TA = 2032)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.