PWFSLSmoke (version 1.2.100)

airsis_downloadData: Download AIRSIS data

Description

Request data from a particular station for the desired time period. Data are returned as a single character string containing the AIRIS output.

Usage

airsis_downloadData(startdate = strftime(lubridate::now(), "%Y0101", tz
  = "UTC"), enddate = strftime(lubridate::now(), "%Y%m%d", tz =
  "UTC"), provider = "USFS", unitID = NULL,
  baseUrl = "http://xxxx.airsis.com/vision/common/CSVExport.aspx?")

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

unit identifier

baseUrl

base URL for data queries

Value

String containing AIRSIS output.

References

Interagency Real Time Smoke Monitoring

Examples

Run this code
# NOT RUN {
fileString <- airsis_downloadData( 20150701, 20151231, provider='USFS', unitID='1026')
df <- airsis_parseData(fileString)
# }

Run the code above in your browser using DataLab