PWFSLSmoke (version 1.2.100)

raw_enhance: Process Raw Monitoring Data to Create raw_enhance Object

Description

Processes raw monitor data to add a uniform time axis and consistent data columns that can be handled by various raw~ functions. All original raw data is retained, and the following additional columns are added:

  • dataSource

  • longitude

  • latitude

  • temperature

  • humidity

  • windSpeed

  • windDir

  • pressure

  • pm25

The datetime column in the incoming dataframe may have missing hours. This time axis is expanded to a uniform, hourly axes with missing data fields added for data columns.

Usage

raw_enhance(df)

Arguments

df

raw monitor data, as created by airsis_createRawDataframe or wrcc_createRawDataframe

Value

Dataframe with original raw data, plus new columns with raw naming scheme for downstream use.

Examples

Run this code
# NOT RUN {
library(MazamaWebUtils)
df <- airsis_createRawDataframe(startdate=20160901, enddate=20161015, provider='USFS', unitID=1012)
df <- raw_enhance(df)
rawPlot_timeseries(df, tlim=c(20160908,20160917))
# }

Run the code above in your browser using DataCamp Workspace