umolCO2.to.gC: Conversion between Mass and Molar Units of Carbon and CO2
Description
Converts CO2 quantities from umol CO2 m-2 s-1 to g C m-2 d-1 and vice versa.
Usage
umolCO2.to.gC(CO2_flux, constants = bigleaf.constants())gC.to.umolCO2(C_flux, constants = bigleaf.constants())
Arguments
- CO2_flux
CO2 flux (umol CO2 m-2 s-1)
- constants
Cmol - molar mass of carbon (kg mol-1)
umol2mol - conversion micromole (umol) to mol (mol)
mol2umol - conversion mole (mol) to micromole (umol)
kg2g - conversion kilogram (kg) to gram (g)
g2kg - conversion gram (g) to kilogram (kg)
days2seconds - seconds per day
- C_flux
Carbon (C) flux (gC m-2 d-1)
Examples
Run this codeumolCO2.to.gC(20) # gC m-2 d-1
Run the code above in your browser using DataLab