Learn R Programming

PRSim (version 1.5)

runoff_multi_site_T: Sample runoff and temperature data of two catchments with a similar discharge regime

Description

Observed runoff data from two catchments in Switzerland.

Usage

data("runoff_multi_site_T")

Arguments

Format

A list of two data frames (one list per station) of the following 5 variables.

YYYY

a numeric vector, year

MM

a numeric vector, month

DD

a numeric vector, day

Qobs

a numeric vector, observed runoff

T

a numeric vector, average temperature

Details

The data contains runoff for two Swiss gages: (i) Thur Andelfingen (FOEN 2044) and (ii) Alpbach Erstfeld (FOEN 2299).

References

Brunner, M. I. and Eric Gilleland in preparation.

Examples

Run this code
data(runoff_multi_site_T)
str(runoff_multi_site_T) 
runoff_multi_site_T[[1]]$timestamp <- paste(runoff_multi_site_T[[1]]$YYYY, 
runoff_multi_site_T[[1]]$MM, runoff_multi_site_T[[1]]$DD, sep=" ")
runoff_multi_site_T[[1]]$timestamp <- 
as.POSIXct(strptime(runoff_multi_site_T[[1]]$timestamp,format="%Y %m %d", tz="GMT"))
plot(runoff_multi_site_T[[1]]$timestamp[1:1000], runoff_multi_site_T[[1]]$Qobs[1:1000], type="l", 
  xlab="Time [d]", ylab=expression(paste("Discharge [m"^3,"/s]")))

Run the code above in your browser using DataLab