Learn R Programming

respirometry (version 2.0.0)

flush_carb: Estimate carbonate chemistry after a flush

Description

Given the seawater pH inside the respirometer and in the flush reservoir, the new carbonate parameters (including pH) in the respirometer after the flush are estimated.

Usage

flush_carb(
  resp_vol,
  flow_rate,
  duration,
  resp_pH,
  flush_pH,
  temp = 25,
  sal = 35,
  TA = NULL,
  atm_pres = 1013.25
)

Value

A data frame returned by carb.

Arguments

resp_vol

volume of the respirometer (liter).

flow_rate

rate of water flow into the respirometer (liters / minute).

duration

duration of the flush (minutes).

resp_pH

pH inside the respirometer before the flush (total scale).

flush_pH

pH of the water used for flushing the respirometer (total scale).

temp

temperature (°C). Default is 25 °C.

sal

salinity (psu). Default is 35 psu. If sal < 26 psu, then TA must be provided.

TA

(optional) total alkalinity (umol / kg). If undefined TA is estimated from salinity using guess_TA.

atm_pres

atmospheric pressure (mbar). Default is 1013.25 mbar.

Author

Matthew A. Birk, matthewabirk@gmail.com

See Also

carb, flush_water

Examples

Run this code
flush_carb(resp_vol = 90, flow_rate = 10, duration = 3, resp_pH = 7.8, flush_pH = 8.1)

# What will be the pH in the respirometer after this flush?
flush_carb(resp_vol = 90, flow_rate = 10, duration = 3, resp_pH = 7.8, flush_pH = 8.1)$pH

Run the code above in your browser using DataLab