loh: Calculate OH reactivity

Description Usage Arguments Details Value Examples

View source: R/loh.R

Description

Calculate OH reactivity of VOC time series in 25 degree celsius.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
loh(
  df,
  unit = "ppbv",
  t = 25,
  p = 101.325,
  stcd = FALSE,
  sortd = TRUE,
  colid = 1,
  wamg = FALSE
)

Arguments

df

dataframe contains time series.

unit

unit for VOC concentration. A character vector from these options: "ugm" or "ppbv". "ugm" means ug/m3. "ppbv" means part per billion volumn.

t

Temperature, in Degrees Celsius, used to convert data in micrograms per cubic meter to standard conditions (25 Degrees Celsius, 101.325 kPa). By default, t equals to 25 Degrees Celsius.

p

Pressure, in kPa, used to convert data in micrograms per cubic meter to standard conditions (25 Degrees Celsius, 101.325 kPa). By default, p equals to 101.325 kPa.

stcd

logical. Does it output the concentration in standard condition? The default vaule is FALSE.

sortd

logical value. It determines whether the VOC species are sorted or not. By default, sortd has value "TRUE". If TRUE, VOC species in time series will be arranged according to VOC group, relative molecular weight, and OH Rate Constant.

colid

column index for date-time. The default value is 1.

wamg

logical. Should warnings be presented? The default vaule is FALSE.

Details

The CAS number is matched for each VOC speices (from column name), and the OH Rate Constant is matched through the CAS number and used for time series calculation.
The OH Rate Constant comes from 'AopWin v1.92' in 25 degree celsius. Note: If input VOC species contain M,P-xylene, it will be automatically divided into m-xylene and P-xylene evenly.

Value

a list contains 5 tables: KOH_Result: matched KOH value result; LOH_Result: LOH time series of VOC by species; LOH_Result_mean: the average value and proportion of LOH of VOC by species (sorted from large to small); LOH_Result_group: LOH time series of VOC classified by groups; LOH_Result_group_mean: the average value and proportion of LOH of VOC according to major groups (sorted from large to small).

Examples

1

GlossyBoat/foqat documentation built on Jan. 18, 2021, 11:31 p.m.