corrFluxDensity: corrFluxDensity

View source: R/concCorrections.R

corrFluxDensityR Documentation

corrFluxDensity

Description

Calculate total flux inside the chamber from flux per amount of air

Usage

corrFluxDensity(CO2_molarFlux, volume = 1, 
    temp = 20, pressure = 101325)

Arguments

CO2_molarFlux

numeric vector of rate of changes in CO2 dry molar fraction [ppm/s]

volume

numeric scalar: volume of the chamber in [m3]

temp

numeric vector: temperature inside chamber [degC]

pressure

numeric vector: pressure inside chamber [Pa]

Details

The amount of air or CO2 is determined by the volume, pressure and temperature (universal gas law). Converts concentrations to amount of substance in mol.

Value

numeric vector (nrow ds): CO2 flux [mumol CO2 /s]

Author(s)

Thomas Wutzler, Oscar Perez Priego

Examples

#data(chamberLoggerEx1s)
ds <- chamberLoggerEx1s
# here, just to have a column, take concentrations
# aside fromt teh example, the flux should be calculated properly before
  CO2_molarFlux <- ds$CO2_Avg   
ds$CO2_flux <- corrFluxDensity(CO2_molarFlux, pressure=101*1000) #kPa converted to Pa	
  plot(ds$CO2_flux)

bgctw/RespChamberProc documentation built on Jan. 4, 2024, 6:12 a.m.