averagePower: Extract Background From MultiPAS Data

Description Usage Arguments Value Examples

Description

Extracts backgrounds for all wavelengths from a MultiPAS data frame.

Usage

1
averagePower(X, cols = 6:9, names = c('pwr406_mW', 'pwr532_mW', 'pwr662_mW', 'pwr785_mW'), ...)

Arguments

X

A MultiPAS data frame.

cols

The columns to use; typically 6:9 for MultiPAS-IV or 5:7 for MultiPAS-III.

names

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

...

Additional items to be passed to averagePower.waves.

Value

A data frame of power values.

Examples

1
2
3
4
5
pas <- importPAS('pas.txt') 
  setFilterStart()
# calculate bkg and pwr and add to end of data frame -----
pas <- cbind(pas, getBg(pas)) 
  cbind(averagePower(pas))

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