Learn R Programming

PRSim (version 1.5)

weather_multi_sites: Sample temperature and precipitation of four catchments derived from the ERA5-Land gridded dataset

Description

Reanalysis data of four grid cells from ERA5-Land.

Usage

data("weather_multi_sites")

Arguments

Format

Contains two lists data_p and data_t containing precipitation and temperature data, respectively. Each list consists of four data frames (one list per station/grid cell) of the following 4 variables.

YYYY

a numeric vector, year

MM

a numeric vector, month

DD

a numeric vector, day

Precip/Temp

a numeric vector, observed precipitation/temperature

Details

The data contains data for four grid cells in the Pacific Northwest.

References

Brunner, M. I., and E. Gilleland (2021). Spatial compound hot-dry events in the United States: assessment using a multi-site multi-variable weather generator, in preparation.

Examples

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

Run the code above in your browser using DataLab