Description Usage Arguments Value Examples
search for EURO-CORDEX netCDF files, get the data from the netCDF files and put them into a data.frame
1 2 | read_eurocordex_data(dir, variable, domain, driver, experiment, ensemble,
institute, model, downscaling_realisation, time_frequency, time, stations)
|
dir |
string: file direcotory |
variable |
string: model variable, see EURO-CORDEX Doc |
domain |
string: model domain, see EURO-CORDEX Doc |
driver |
string: driving global model, see EURO-CORDEX Doc |
experiment |
string: experiment type (historical, rcp2.6, rcp4.5, rcp8.5), see EURO-CORDEX Doc |
ensemble |
string: ensemble (e.g. r12i1p1), see EURO-CORDEX Doc |
institute |
string: institution who did the model run, see EURO-CORDEX Doc |
model |
string: used RCM (regional climate model), see EURO-CORDEX Doc |
downscaling_realisation |
string: version of the downscaling realisation (most often 'v1'), see EURO-CORDEX Doc |
time_frequency |
string: time frequency of model output (e.g. 'day'), see EURO-CORDEX Doc |
stations |
data.frame of three columns station_name, lon, and lat |
time_lim |
string, numeric or integer: array of length 2 containing start and end time to read in format 'YYYYMMDD' (as character, numeric or integer) |
data.frame with first column "time" and last column "time_posix". further columns in between are denoted according to idxStations$station_name; each row contains data of one time step
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # define directory that contains the model data
dir <- '/my/data/directory/for/EUROCORDEX/data'
# define EURO-CORDEX model run details
variable <- 'sfcWind'
domain <- 'EUR-11'
driver <- 'ICHEC-EC-EARTH'
experiment <- 'rcp85'
ensemble <- 'r12i1p1'
institute <- 'CLMcom'
model <- 'CCLM4-8-17'
downscaling_realisation <- 'v1'
time_frequency <- 'day'
time <- c('20110201', '20170301')
# define stations
stations <- data.frame(c('abc', 'def', 'ghi', 'jkl'), c(10.31, 11.12, 9.2, 9.31), c(55.19, 54.77, 55.02, 53.2), c(44, 1, 5, 107), stringsAsFactors = FALSE)
names(stations) <- c('station_name', 'lon', 'lat', 'elev')
# read in the data
my_data <- read_eurocordex_data(dir, variable, domain, driver, experiment, ensemble, institute, model, downscaling_realisation, time_frequency, time, stations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.