airnow_createMetaDataframes: Create Dataframes of AirNow Site Location Metadata

Description Usage Arguments Value See Also Examples

View source: R/airnow_createMetaDataframes.R

Description

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:

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:

  1. BARPR

  2. BC

  3. CO

  4. NO

  5. NO2

  6. NO2Y

  7. NO2X

  8. NOX

  9. NOOY

  10. OC

  11. OZONE

  12. PM10

  13. PM2.5

  14. PRECIP

  15. RHUM

  16. SO2

  17. SRAD

  18. TEMP

  19. UV-AETH

  20. WD

  21. WS

Setting parameters=NULL will generate a separate dataframe for each of the above parameters.

Usage

1
2
airnow_createMetaDataframes(parameters = NULL,
  pwfslDataIngestSource = "AIRNOW", addGoogleMeta = TRUE)

Arguments

parameters

vector of names of desired pollutants or NULL for all pollutants

pwfslDataIngestSource

identifier for the source of monitoring data, e.g. 'AIRNOW'

addGoogleMeta

logicial specifying wheter to use Google elevation and reverse geocoding services

Value

List of 'meta' dataframes with site metadata for unique parameters (e.g: "PM2.5", "NOX").

See Also

airnow_downloadSites

Examples

1
2
3
4
## Not run: 
metaList <- airnow_createMetaDataframes(parameters="PM2.5")

## End(Not run)

MazamaScience/PWFSLSmoke documentation built on March 17, 2019, 9:27 p.m.