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 the climate change signal of 1971-2000 and 2071-2100 for temperature over the Alpine region of 2 CMIP5 models "NorESM1-M" 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_timeseries

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
## thats what userinput_CMIP5_changesignal looks like:
## it contains a single list named user.input
## describing 2 CMIP5 models in the alpine region
data("userinput_CMIP5_changesignal")
is.list(userinput_CMIP5_changesignal)
str(userinput_CMIP5_changesignal)

data(modelinput_test)

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

## example summary though the statistics not make much sense with 2 models
summary(wux.test, parms = "delta.air_temperature")

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