ReadCoDwrGage: Read standard-format text data table downloaded from CO DWR

Description Usage Arguments Details Value See Also Examples

View source: R/read_observations.R

Description

ReadCoDwrGage reads CO DWR gage data table (streamflow and/or stage) and puts into a dataframe.

Usage

1
2
ReadCoDwrGage(pathGageData, returnMetric = TRUE, returnEnglish = TRUE,
  timeZone = "America/Denver")

Arguments

pathGageData

The full pathname to the streamflow/stage time series text file as downloaded from CO DWR. The file should include the standard CO DWR header info and the data time series with standard CO DWR columns.

returnMetric

Logical: Return variables in these units (cms and m)

returnEnglish

Logical: Return variables in english units (cfs and ft)

timeZone

(OPTIONAL) The time zone for the gage data (DEFAULT="America/Denver", which is MST/MDT). Time zone name must be R-friendly for your current OS. See: http://stat.ethz.ch/R-manual/R-devel/library/base/html/timezones.html

Details

ReadCoDwrGage reads a streamflow or stage time series data table (standard CO DWR data format) and outputs a dataframe with consistent date and data columns for use with other rwrfhydro tools.

Value

A dataframe containing the flow and/or stage data.

See Also

Other obsDataReads: GetStage4Files, ReadAmerifluxCSVOldFormat, ReadAmerifluxNCOldFormat, ReadUsgsGage

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Take a text file downloaded from the CO DWR website for 15-minute flow 
## at Alamosa River and create a dataframe called "obsStr15min.alaterco".

## Not run: 
obsStr15min.alaterco <- 
  ReadCoDwrGage("../OBS/STRFLOW/ALATERCO_41715103512.txt")
obsStr15min.alaterco <- 
  ReadCoDwrGage("../OBS/STRFLOW/ALATERCO_41715103512.txt", returnEnglish=FALSE)

## End(Not run)

NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.