Description Usage Arguments Value Examples
Generates a data frame of absorption values given MultiPAS signal, effective power, and the cell calibration coefficient.
1 2 | convertToAbs(x, bg, p, m, names = c("abs406_Mm", "abs532_Mm", "abs662_Mm",
"abs785_Mm"))
|
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'. |
A data frame of absorption values in Mm^-1.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.