wrcc_EBAMQualityControl: Apply Quality Control to raw WRCC EBAM tibble

View source: R/wrcc_EBAMQualityControl.R

wrcc_EBAMQualityControlR Documentation

Apply Quality Control to raw WRCC EBAM tibble

Description

Perform various QC measures on WRCC EBAM data.

Any numeric values matching the following are converted to NA

  • x < -900

  • x == -9.9899

  • x == 99999

The following columns of data are tested against valid ranges:

  • Flow

  • AT

  • RHi

  • ConcHr

A POSIXct datetime column (UTC) is also added based on DateTime.

Usage

wrcc_EBAMQualityControl(
  tbl,
  valid_Longitude = c(-180, 180),
  valid_Latitude = c(-90, 90),
  remove_Lon_zero = TRUE,
  remove_Lat_zero = TRUE,
  valid_Flow = c(16.7 * 0.95, 16.7 * 1.05),
  valid_AT = c(-Inf, 45),
  valid_RHi = c(-Inf, 50),
  valid_Conc = c(-Inf, 5000),
  flagAndKeep = FALSE
)

Arguments

tbl

Single site titbble created by wrcc_parseData().

valid_Longitude

Range of valid Longitude values.

valid_Latitude

Range of valid Latitude values.

remove_Lon_zero

Logical specifying removal of rows where Longitude == 0.

remove_Lat_zero

Logical specifying removal of rows where Latitude == 0.

valid_Flow

Range of valid Flow values.

valid_AT

Range of valid AT values.

valid_RHi

Range of valid RHi values.

valid_Conc

Range of valid ConcHr values.

flagAndKeep

Logical specifying flagging, rather than removal, of bad data during the QC process.

Value

Cleaned up tibble of WRCC monitor data.

See Also

wrcc_qualityControl


MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.