pat_applyCorrection: Apply correction to PurpleAir PM2.5 data.

View source: R/pat_applyCorrection.R

pat_applyCorrectionR Documentation

Apply correction to PurpleAir PM2.5 data.

Description

A correction equation is applied to fields of the incoming pat object to generate a "pm2.5_corrected" time series which is added to the returned pat object.

The default, "EPA_FASM" correction is described on slide 37 of a presentation on the correction of PurpleAir data for the EPA Fire and Smoke Map.

This correction has two parts:

Low Concentration (pm2.5\_cf\_1 <= 343 \mu g/m^3):

pm2.5\_corrected = 0.52 * pm\_2.5\_cf\_1 - 0.086 * humidity + 5.75

High Concentration (pm2.5\_cf\_1 > 343 \mu g/m^3):

pm2.5\_corrected = 0.46 * pm2.5\_cf\_1 + 3.93 * 10^{-4} * pm2.5\_cf\_1^2 + 2.97

Usage

pat_applyCorrection(pat = NULL, name = c("EPA_FASM"))

Arguments

pat

Previously generated houly pat object.

name

Name of correction to apply. One of "EPA_FASM"

Value

A PurpleAir Timeseries pat object with an additional "pm2.5_corrected" variable.


MazamaScience/AirSensor2 documentation built on Oct. 31, 2024, 1:39 a.m.