View source: R/pat_applyCorrection.R
pat_applyCorrection | R Documentation |
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
pat_applyCorrection(pat = NULL, name = c("EPA_FASM"))
pat |
Previously generated houly pat object. |
name |
Name of correction to apply. One of |
A PurpleAir Timeseries pat object with an additional
"pm2.5_corrected"
variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.