sidfex.evaluate.subset | R Documentation |
Recompute multi-forecast statistics for a subset of already evaluated SIDFEx forecasts (various types of errors relative to observations and, if applicable, ensemble spread).
sidfex.evaluate.subset(eval.res = NULL, keep = NULL, do.multifcst.stats = TRUE, multifcst.stats.na.rm = TRUE)
eval.res |
a list with SIDFEx evaluation results as returned by |
keep |
a numeric vector with indices (length >= 2 and <= |
do.multifcst.stats |
a logical value specifying whether statistics across all elements of |
multifcst.stats.na.rm |
a logical value specifying whether to remove NAs before statistics are computed across forecast elements. |
a list with elements ens.merge
(inherited from eval.res
), evaluate.arguments
(to document the logical values specified for do.speedangle
(inherited from eval.res
) and do.multifcst.stats
), res.list
, and optionally multifcst.stats
if do.multifcst.stats=TRUE
and length(fcst$res.list)>1
. The element res.list
holds one element for each corresponding element in fcst$res.list
, with various types of forecast errors listed below. If fcst
is a single forecast element, only a single list with the types of forecast errors is returned.
See sidfex.evaluate
for details, including all error types.
Based on several spheRlab
and SIDFEx
functions.
Helge Goessling
sidfex.evaluate
, sidfex.read.fcst
, sidfex.read.obs
# Load the forecast data index
index = sidfex.load.index()
# Select a subset containing one specific forecast ensemble
subind = sidfex.fcst.search.extractFromTable(gid = "ecmwf001" , tid = "300234063991680", iy = 2019, idoy = c(1,65))
# Read the forecasts
fcst = sidfex.read.fcst(subind)
# Remap these seasonal-range forecasts to the first ten days only
fcst.remapped = sidfex.remaptime.fcst(fcst,newtime.DaysLeadTime=0:10)
# Compute forecast errors
errs = sidfex.evaluate(fcst = fcst.remapped)
# Show structure of errs
str(errs)
# Recompute multi-forecast statistics for small subset of forecasts
errs.sub = sidfex.evaluate.subset(eval.res = errs, keep = c(1,3))
# Show structure of errs.sub
str(errs.sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.