Learn R Programming

CSHShydRology (version 1.4.2)

ch_read_ECDE_flows: Reads a file of WSC daily flows from ECDataExplorer (ECDE)

Description

Reads in a file WSC daily flows as returned from the Windows program ECDataExplorer, converts the Date, and omits the last 3 lines as these contain the data disclaimer and not data. The function can read values from a url.

Usage

ch_read_ECDE_flows(filename)

Value

Returns a dataframe with the last three rows removed:

ID

stationID

PARAM

Parameter 1 for Flow 2 for Level

Date

original charater string converted to date format

Flow

Daily mean flow m\(^3\)/sec

SYM

Quality flag

Arguments

filename

Datafile retrieved from ECDataExplorer.

Author

Paul Whitfield

Examples

Run this code
if (FALSE) {
# Not run as requires a file returned by the Windows program ECDataExplorer
# Using a dummy file name as an example
mfile <- "04JD005_Daily_Flow_ts.csv"
mdata <- ch_read_ECDE_flows(mfile)}

# \donttest{
# Not tested automatically as it is slow to read from a url
url1 <- "https://zenodo.org/record/7007830/files/08NL007_Daily_Flow_ts.csv"
values <- ch_read_ECDE_flows(url1)
# }

Run the code above in your browser using DataLab