airsis_identifyMonitorType: Identify AIRSIS monitor type

Description Usage Arguments Value References Examples

View source: R/airsis_identifyMonitorType.R

Description

Examine the column names of the incoming dataframe (or first line of raw text) to identify different types of monitor data provided by AIRSIS.

The return is a list includes everything needed to identify and parse the raw data using readr::read_csv():

The monitorType will be one of:

Usage

1

Arguments

df

dataframe or raw character string containing AIRSIS data

Value

List including monitorType, rawNames, columnNames and columnTypes.

References

Interagency Real Time Smoke Monitoring

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Fail gracefully if any resources are not available
try({

fileString <- airsis_downloadData( 20150701, 20151231, provider='USFS', unitID='1026')
monitorTypeList <- airsis_identifyMonitorType(fileString)

}, silent = FALSE)

## End(Not run)

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.