tfc_from_efc {SeaVal} | R Documentation |
Get tercile probability forecast from ensemble forecasts
Description
The function takes a data table containing ensemble predictions and reduces it to predicted tercile probabilities.
The data table should either have a column 'tercile_cat' or it will be generated in the process (by add_tercile_cat
).
In particular, if you don't know the tercile category of the ensemble predictions, your data table should contain hindcasts as well,
such that the tercile categories are calculated correctly.
The probability for 'below', for example, is the fraction of ensemble members predicting below normal (for this coordinate).
Usage
tfc_from_efc(dt, by = setdiff(dimvars(dt), "member"), keep_cols = NULL, ...)
Arguments
dt |
The data table. |
by |
Names of columns to group by. |
keep_cols |
A vector of column names that you want to keep. Column names in by are kept automatically. |
... |
passed on to |
Value
A new data table with tercile forecasts
Examples
test_dt = ecmwf_monthly[lat < 0 & month == 11]
tfc = tfc_from_efc(test_dt)