hydroDat | R Documentation |
Five data sets obtained from the “HYDAT” database,
Environment and Climate Change Canada's database of historical
hydrometric data. The data were obtained using the tidyhydat
package. The data have been trimmed so that there are no gaps in
the observation dates and are presented in “raw” form and in
discretised form as deciles of the residuals (difference between
raw values and the daily mean over years).
data("linLandFlows") data("ftLiardFlows") data("portMannFlows") data("portMannSedLoads") data("portMannSedCon")
Data frames with observations on the following 3 variables.
Date
Dates on which observations were made.
Value
Numeric vector of observation values.
mean
The mean over years of Value
.
resid
The difference Value - mean
.
deciles
A factor with levels d1
, ..., d10
,
which are the deciles of the variable resid
The variable mean
was calculated as follows:
yday <- as.POSIXlt(X$Date)$yday mn <- tapply(X$Value,yday,mean,na.rm=TRUE) mean <- mn[as.character(yday)]
where X
is the data set being processed.
The data set linLandFlows
originally consisted of 2008 observations;
there were 1980 observations after “trimming”.
The data set ftLiardFlows
originally consisted of 22364 observations;
there were 11932 observations after “trimming”.
The data set portMannFlows
originally consisted of 6455 observations;
there were 3653 observations after “trimming”.
The data set portMannSedLoads
consists of 2771 observations;
no observations were trimmed.
The data set portMannSedCon
consists of 4597 observations;
no observations were trimmed.
The units of the “Flows” variables are cubic metres per second (m^3/s); the units of “portMannSedLoads” are tonnes; the units of “portMannSedCon” are milligrams per litre (mg/l).
The “linLandFlows” data were obtained at the Lindberg Landing hydrometric station on the Liard River in the Northwest Territories of Canada. The “ftLiardFlows” data were obtained at the Fort Liard hydrometric station on the Liard River in the Northwest Territories of Canada. The “portMann” data were obtained at the hydrometric station located at the Port Mann pumping station on the Fraser River in the Province of British Columbia in Canada.
Environment and Climate Change Canada's database “HYDAT”,
a database of historical hydrometric data. The data were obtained
vis the tidyhydat
package, which is available from “CRAN”,
https://cran.r-project.org
fit <- hmm(linLandFlows$deciles,K=4,itmax=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.