vocct: Convertion and analysis of VOC concentrations

Description Usage Arguments Details Value Examples

View source: R/vocct.R

Description

convert unit of VOCs between micrograms per cubic meter (ugm) and parts per billion by volume (ppbv); conduct statistics of VOC concentrations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
vocct(
  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 results in standard conditions? 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 MIR value.

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 was matched for each VOC speices (from column name), and the Molecular Weight (MW) value and Maximum Incremental Reactivity (MIR) value are matched through the CAS number and used for time series calculation.
The MIR value comes from "Carter, W. P. (2009). Updated maximum incremental reactivity scale and hydrocarbon bin reactivities for regulatory applications. California Air Resources Board Contract, 2009, 339" (revised January 28, 2010). 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 9 tables: MW_Result: matched Molecular Weight (MW) value result; Con_ugm: time series of VOC mass concentration by species; Con_ugm_mean: the average mass concentration and proportion of VOC by species (sorted from large to small); Con_ugm_group: time series of VOC mass concentration classified by groups; Con_ugm_group_mean: the average value and proportion of VOC mass concentration (sorted from large to small) according to major groups; Con_ppbv: time series of VOC volume concentration by species; Con_ppbv_mean: the average volume concentration and proportion of VOC by species (sorted from large to small); Con_ppbv_group: time series of VOC volume concentration according to major groups; Con_ppbv_group_mean: VOC volume concentration average and proportion (sorted from large to small) according to major groups;

Examples

1

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