convertToAbs: Convert Microphone Signal to Absoption

Description Usage Arguments Value Examples

Description

Generates a data frame of absorption values given MultiPAS signal, effective power, and the cell calibration coefficient.

Usage

1
2
convertToAbs(x, bg, p, m, names = c("abs406_Mm", "abs532_Mm", "abs662_Mm",
  "abs785_Mm"))

Arguments

x

A data frame containing the microphone data for all wavelengths.

bg

A data frame containing the background microphone data for all wavelengths.

p

A data frame containing the effective powers for all wavelengths.

m

A numeric specifying the cell calibration coefficient.

names

A vector of strings specifying names for the columns, generally of the convention 'absWavelength_mW'.

Value

A data frame of absorption values in Mm^-1.

Examples

1
2
3
4
5
6
7
8
9
# import data -----
pas <- importPAS('pas.txt') \%>\%
setFilterStart()
# calculate bkg and pwr and add to end of data frame -----
pas <- cbind(pas, getBg(pas)) \%>\%
cbind(averagePower(pas))

# add abs -----
pas <- cbind(pas, convertToAbs(pas[, 2:5], pas[, 18:21], pas[, 22:25], 114000))

alphonse/aeRo documentation built on May 11, 2019, 11:21 p.m.