The airnow_createMetaDataframes()
function uses the airnow_downloadSites()
function
to download site metadata from AirNow and restructures that data into a format that is compatible
with the PWFSLSmoke package ws_monitor data model.
The meta
dataframe in the ws_monitor data model has metadata associated with monitoring
site locations for a specific parameter and must contain at least the following columns:
monitorID -- per deployment unique ID
longitude -- decimal degrees E
latitude -- decimal degrees N
elevation -- height above sea level in meters
timezone -- olson timezone
countryCode -- ISO 3166-1 alpha-2
stateCode -- ISO 3166-2 alpha-2
The meta
dataframe will have rownames matching monitorID
.
This function takes a dataframe obtained from AirNowTech's
monitoring_site_locations.dat
file, splits it up into separate dataframes,
one for each parameter, and performs the following cleanup:
Parameters included in AirNow data include at least the following list:
BARPR
BC
CO
NO
NO2
NO2Y
NO2X
NOX
NOOY
OC
OZONE
PM10
PM2.5
PRECIP
RHUM
SO2
SRAD
TEMP
UV-AETH
WD
WS
Setting parameters=NULL
will generate a separate dataframe for each of the above parameters.