# gflux: Calculate gas flux rate from two concentrations In flux: Flux rate calculation from dynamic closed chamber measurements

## Description

Calculate gas flux rate from two concentrations using the ideal gas law to obtain a mass flow from an area per time. Therefore, besides the two concentrations ct and c0 the temperature within and the volume of the closed chamber are needed. For areal reference the area from which the gases are emitted has to be given. Without any further unit transformation the input unit directly gives the output unit: When concentration is coming in ppm the calculated flux rate is in μg/m2*h, when concentration is in ppb the flux rate will be in ng/m2*h

## Usage

 `1` ```gflux(ct, c0 = NULL, T, V, A = 1, M = 44, t = 1/60, p = 101325) ```

## Arguments

 `ct` Concentration of the gas at time t. When the function is used internally the concentration is automatically derived from a regression model. May also be the concentration change in time dc/dt. In this case `c0` must not be specified. `c0` Concentration of the gas at time 0. When the function is used internally the concentration is automatically derived from a regression model. `T` Temperature within the chamber during the measurement in ^{\circ}C (it is converted automatically to Kelvin). When it is changing during the measurement typically the average temperature is used. However, if there is too much change in temperature during the chamber closing time (more than 5 ^{\circ}K) the ideal gas law might not longer be appropriate. `V` Chamber headspace volume. Because concentrations are typically small volume matters and should therefore be determined as exactly as possible. `A` Area covered by the measurement chamber. Defaults to 1. For dimensionless sampling just leave the default. As with the volume it matters a lot for the end value, therefore it should be determined as exactly as possible. `M` Molar weight of the gas for wich concentration data is given. Defaults to 44 because two of the three most commonly considered greenhouse gases share this molar weight (N2O and CO2). When calculating the flux rate from methane concentrations change accordingly (16 g/mol). `t` Chamber closing time or more exactly the time span between the measurement of c0 and ct. When derived from a regression model this might not be the whole chamber closing time. `p` The air pressure at earth surface during measurements. Default is given by the standard value at sea level of 101325 Pa. Should be OK for most lowland measurements. However, if the measurements took place on higher altitudes, it might be reasonable to adapt the air pressure value to local conditions.

## Details

Typically the function will not be called separately. However, for checking single chamber measurements or for testing purposes it might be useful to have this as a separate function.

The flux rate is calculated using

flux.rate = ((ct-c0) * V * M * p) / (t * R * (T + 273.15) * A)

The gas constant R is used with its standard value 8.314 Pa/K*mol.

## Value

Returns one numeric value that represents the flux rate in mass unit (depending on input concentration) per sqm and hour.

## Author(s)

Gerald Jurasinski <gerald.jurasinski@uni-rostock.de>, Franziska Koebsch <franziska.koebsch@uni-rostock.de>

`flux`, `flux.conv`

## Examples

 `1` ```## see examples for function flux ```

### Example output

```Loading required package: caTools
This is flux 0.3-0
```

flux documentation built on May 2, 2019, 6:09 a.m.