cefa_downloadData: Download RAWS FW13 data

View source: R/cefa_downloadData.R

cefa_downloadDataR Documentation

Download RAWS FW13 data

Description

Request data for a particular station. Data are returned as a single character string containing the RAWS output.

Station identifiers can be found at https://cefa.dri.edu/raws/RAWSfw13list.xlsx and can be downloaded with cefa_createMeta.

Usage

cefa_downloadData(nwsID = NULL, baseUrl = "https://cefa.dri.edu/raws/fw13/")

Arguments

nwsID

NWS RAWS station identifier.

baseUrl

Base URL for data queries.

Value

String containing RAWS data.

References

Program for Climate, Ecosystem and Fire Applications

Examples

## Not run: 
# Fail gracefully if any resources are not available
try({

library(RAWSmet)

fileString <- cefa_downloadData(nwsID = 500742)
print(readr::read_lines(fileString)[1:10])

}, silent = FALSE)

## End(Not run)

MazamaScience/RAWSmet documentation built on May 6, 2023, 6:57 a.m.