Description Usage Arguments Value References Examples
View source: R/airsis_parseData.R
Raw character data from AIRSIS are parsed into a tibble.
The incoming fileString
can be read in directly from AIRSIS using airsis_downloadData()
or from a local
file using readr::read_file()
.
The type of monitor represented by this fileString is inferred from the column names
using airsis_identifyMonitorType()
and appropriate column types are assigned.
The character data are then read into a tibble and augmented in the following ways:
Longitude, Latitude and any System Voltage values, which are only present in GPS timestamp rows, are propagated foward using a last-observation-carry-forward algorithm'
Longitude, Latitude and any System Voltage values, which are only present in GPS timestamp rows, are propagated backwords using a first-observation-carry-backward algorithm'
GPS timestamp rows are removed'
1 | airsis_parseData(fileString)
|
fileString |
character string containing AIRSIS data as a csv |
Dataframe of AIRSIS raw monitor data.
Interagency Real Time Smoke Monitoring
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Fail gracefully if any resources are not available
try({
library(PWFSLSmoke)
fileString <- airsis_downloadData(20150701, 20151231, provider='USFS', unitID='1026')
tbl <- airsis_parseData(fileString)
summary(tbl)
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.