Converts a measured or modeled CO2 mole fraction to dissolved CO2 concentration using atmospheric pressure, water-column pressure, vapor pressure, and the Weiss (1974) CO2 solubility coefficient.
Usage
calc_CO2_molKg(
CO2_ppm,
temp_water,
water_depth_m,
atmo_press,
press_units,
salinity = 0,
waterDepth_m = lifecycle::deprecated()
)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).- waterDepth_m