# NOT RUN {
# Load sample data as in Load() example:
example(Load)
rsdrms <- RatioSDRMS(sampleData$mod, sampleData$obs)
# Reorder the data in order to plot it with PlotVsLTime
rsdrms_plot <- array(dim = c(dim(rsdrms)[1:2], 4, dim(rsdrms)[4]))
rsdrms_plot[, , 2, ] <- rsdrms[, , 1, ]
rsdrms_plot[, , 4, ] <- rsdrms[, , 2, ]
# }
# NOT RUN {
PlotVsLTime(rsdrms_plot, toptitle = "Ratio ensemble spread / RMSE", ytitle = "",
monini = 11, limits = c(-1, 1.3), listexp = c('CMIP5 IC3'),
listobs = c('ERSST'), biglab = FALSE, siglev = TRUE,
fileout = 'tos_rsdrms.eps')
# }
# NOT RUN {
# The following example uses veriApply combined with .RatioSDRMS instead of RatioSDRMS
# }
# NOT RUN {
require(easyVerification)
RatioSDRMS2 <- s2dverification:::.RatioSDRMS
rsdrms2 <- veriApply("RatioSDRMS2",
sampleData$mod,
# see ?veriApply for how to use the 'parallel' option
Mean1Dim(sampleData$obs, 2),
tdim = 3, ensdim = 2)
# }
Run the code above in your browser using DataLab