PurpleAirQC_hourly_AB_00: Apply hourly aggregation QC using "AB_OO" algorithm

View source: R/PurpleAirQC_hourly_AB_00.R

PurpleAirQC_hourly_AB_00R Documentation

Apply hourly aggregation QC using "AB_OO" algorithm

Description

Creates a pm25 timeseries by averaging aggregated data from the A and B channels and applying the following QC logic:

  1. Create pm25 by averaging the A and B channel aggregation means

  2. Invalidate data where: (min_count < 20)

  3. No further QC

Usage

PurpleAirQC_hourly_AB_00(pat = NULL, min_count = 20, returnAllColumns = FALSE)

Arguments

pat

A PurpleAir timeseries object.

min_count

Aggregation bins with fewer than min_count measurements will be marked as NA.

returnAllColumns

Logical specifying whether to return all columns of statistical data generated for QC algorithm or just the final pm25 result.

Value

Data frame with columns datetime and pm25.

Note

Purple Air II sensors reporting after the June, 2019 firmware upgrade report data every 2 minutes or 30 measurements per hour. The default setting of min_count = 20 is equivalent to a required data recovery rate of 67

Examples


library(AirSensor)

df_00 <- 
  example_pat %>%
  pat_qc() %>%
  PurpleAirQC_hourly_AB_00()
  
names(df_00)
  
plot(df_00, pch = 16, cex = 0.8, col = "red")


MazamaScience/AirSensor documentation built on April 28, 2023, 11:16 a.m.