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

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'.

Examples

if (FALSE) {
library(RAWSmet)

waWALD <-
  wrcc_createRawsObject(wrccID = 'waWALD')

}