GetCoDwrData: Get CO DWR data for specified sites.

Description Usage Arguments Details Value Examples

View source: R/other_strflow_get.R

Description

GetCoDwrData downloads and processes CO DWR data from web feed.

Usage

1
2
GetCoDwrData(siteIDs, paramCodes, timeInt = 1, startDate = NULL,
  endDate = NULL)

Arguments

siteIDs

A single site ID or vector of site IDs to download and process. Site IDs should match the standardized CO DWR IDs (e.g., "RIOALACO" for RIO GRANDE RIVER AT ALAMOSA).

paramCodes

A single or list of parameter codes to download. CO DWR parameters include (list not inclusive) GAGE_HT, DISCHRG, AIRTEMP, COND, DO, DO_SAT, PH, PRECIP, TDS, TURBID, WATTEMP, WATTEMP2.

timeInt

Time interval to download. Options are "raw", "hourly", or "daily". (DEFAULT="raw"). Note that the hourly and daily options are means.

startDate

(OPTIONAL) The start date to download for (format "mm/dd/yy").

endDate

(OPTIONAL) The end date to download for (format "mm/dd/yy").

Details

GetCoDwrData downloads Colorado Department of Water Resources data for specified sites and outputs a dataframe with consistent date and data columns for use with other rwrfhydro tools.

Value

dataframe

Examples

1
2
3
4
## Not run: 
str.RIO <- GetCoDwrData(c("RIOSFKCO", "RIOWAGCO","RIODELCO"), 
           paramCodes=c("GAGE_HT", "DISCHRG"), timeInt="hourly", 
           startDate="06/01/14", endDate="06/30/14")

mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.