airsis_createRawDataframe: Obain AIRSIS Data and Create a Raw Tibble

Description Usage Arguments Value Note See Also Examples

View source: R/airsis_createRawDataframe.R

Description

Obtains monitor data from an AIRSIS webservice and converts it into a quality controlled, metadata enhanced "raw" tibble ready for use with all raw_~ functions.

Steps involved include:

  1. download CSV text

  2. parse CSV text

  3. apply quality control

  4. apply clustering to determine unique deployments

  5. enhance metadata to include: elevation, timezone, state, country, site name

Usage

1
2
3
4
5
6
airsis_createRawDataframe(startdate = strftime(lubridate::now(),
  "%Y010100", tz = "UTC"), enddate = strftime(lubridate::now(),
  "%Y%m%d23", tz = "UTC"), provider = NULL, unitID = NULL,
  clusterDiameter = 1000,
  baseUrl = "http://xxxx.airsis.com/vision/common/CSVExport.aspx?",
  saveFile = NULL, flagAndKeep = FALSE)

Arguments

startdate

desired start date (integer or character representing YYYYMMDD[HH])

enddate

desired end date (integer or character representing YYYYMMDD[HH])

provider

identifier used to modify baseURL ['APCD'|'USFS']

unitID

character or numeric AIRSIS unit identifier

clusterDiameter

diameter in meters used to determine the number of clusters (see addClustering)

baseUrl

base URL for data queries

saveFile

optional filename where raw CSV will be written

flagAndKeep

flag, rather then remove, bad data during the QC process

Value

Raw tibblee of AIRSIS data.

Note

The downloaded CSV may be saved to a local file by providing an argument to the saveFile parameter.

See Also

airsis_downloadData

airsis_parseData

airsis_qualityControl

addClustering

Examples

1
2
3
4
5
6
## Not run: 
raw <- airsis_createRawDataframe(startdate=20160901, provider='USFS', unitID='1033')
raw <- raw_enhance(raw)
rawPlot_timeseries(raw,tlim=c(20160908,20160917))

## End(Not run)

PWFSLSmoke documentation built on Oct. 6, 2018, 1:03 a.m.