Learn R Programming

wux (version 2.2-1)

userinput_CMIP5_timeseries: Example userinput for models2wux

Description

This example userinput_CMIP5_changesignal can be used to test the models2wux functionality. A userinput is a list of configurations used to read and process climate model data. In general, you should store it as an own file somewhere on your system. It calculates a time series of the historical run 1971-2005 and RCP 8.5 2006-2100 for temperature over the Alpine region of 2 CMIP5 models "MIROC5" and "CanESM2". It aggregates the monthly NetCDF model output to boreal seasons, winter, spirng, summer and autumn. It also stores the output as a csv-file in your "/tmp" directory.

Usage

data(userinput_CMIP5_timeseries)

Arguments

Details

See "Configfile userinput" section in models2wux.

See Also

models2wux, userinput_CMIP5_changesignal

Examples

Run this code
## thats what userinput_CMIP5_timeseries looks like:
## it contains a single list named user.input
## describing 2 CMIP5 models in the alpine region
data("userinput_CMIP5_timeseries")
is.list(userinput_CMIP5_timeseries)
str(userinput_CMIP5_timeseries)

data(modelinput_test)

## reading in these data and process them:
## Not run: wux.test <- models2wux(userinput_CMIP5_timeseries,
#                                 modelinput = model.input)## End(Not run)
## if you had a file "/tmp/userinput_CMIP5_timeseries.R" which contains a
## list 'user.input with the same content as 'userinput_CMIP5_timeseries'
## you could read the data also like this:
## Not run: wux.test <- models2wux("/tmp/userinput_CMIP5_timeseries.R",
#                         modelinput = model.input)## End(Not run)

## the result is what the data.set would look like, if you ran the code
## above:
data(CMIP5_example_timeseries)
wux.test <- CMIP5_example_timeseries

## Not run: require(lattice)
# xyplot(air_temperature ~ year|season,
#        groups=acronym,
#        data = wux.test,
#        type = c("l", "g"),
#        main = "Temperature trends for Alpine Region" )
# ## End(Not run)

Run the code above in your browser using DataLab