ch_read_ECDE_flows {CSHShydRology} | R Documentation |
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)
Arguments
filename |
Datafile retrieved from ECDataExplorer. |
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 |
SYM |
Quality flag |
Author(s)
Paul Whitfield
Examples
## Not run:
# 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)
## End(Not run)
# 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)
[Package CSHShydRology version 1.4.2 Index]