Converts a measured or modeled CO2 mole fraction to dissolved CO2
concentration in mg/L. This is a volume-based companion to
calc_co2_mol_kg() and uses water density to convert from mol/kg.
Arguments
- co2_ppm
Numeric vector. Mole fraction of CO2 in air in parts per million.
- temp_water
Numeric vector. Water temperature in degrees Celsius.
- water_depth_m
Numeric vector. Water depth above the sensor in meters.
- atmo_press
Numeric vector. Atmospheric pressure at the water surface.
- press_units
Character string giving the units of
atmo_press. Seeconvert_pressure()for accepted pressure units.- salinity
Numeric vector. Salinity in practical salinity units. Defaults to freshwater (
0).
Examples
calc_co2_mg_l(
co2_ppm = c(420, 800, 1200),
temp_water = 20,
water_depth_m = 0.5,
atmo_press = 101.325,
press_units = "kPa"
)
#> [1] 0.7058479 1.3444723 2.0167084