wrcc_createRawsObject: Obtain RAWS data and create a timeseries object.

View source: R/wrcc_createRawsObject.R

wrcc_createRawsObjectR Documentation

Obtain RAWS data and create a timeseries object.

Description

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

Steps involved include:

  1. download data text

  2. parse data text

  3. standardized names

Usage

wrcc_createRawsObject(
  wrccID = NULL,
  meta = NULL,
  startdate = strftime(lubridate::now(tzone = "UTC"), "%Y%m0101", tz = "UTC"),
  enddate = strftime(lubridate::now(tzone = "UTC"), "%Y%m%d23", tz = "UTC"),
  password = NULL,
  baseUrl = "https://wrcc.dri.edu/cgi-bin/wea_list2.pl",
  verbose = FALSE
)

Arguments

wrccID

Station identifier found in 'meta'.

meta

Tibble of RAWS metadata containing wrccID.

startdate

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

enddate

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

password

Password required for access to archival data.

baseUrl

Base URL for data queries.

verbose

Logical flag controlling detailed progress statements.

Value

Timeseries object with 'meta' and 'data'.

References

RAWS USA Climate Archive

See Also

wrcc_downloadData

wrcc_parseData

Examples

## Not run: 
library(RAWSmet)

waWALD <-
  wrcc_createRawsObject(wrccID = 'waWALD')


## End(Not run)


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