Example userinput for models2wux

Share:

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

1

Details

See "Configfile userinput" section in models2wux.

See Also

models2wux, userinput_CMIP5_changesignal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.