View source: R/process_outputs.R
| process_outputs_LWFB90 | R Documentation | 
Returns selected groups of variables in the chosen temporal aggregation
process_outputs_LWFB90(x, selection = set_outputLWFB90(), prec_interval = NULL)
| x | Named list with items  | 
| selection | A [7,5]-matrix with row and column names, flagging the
desired groups of variables at specified time intervals (see
 | 
| prec_interval | The precipitation interval of the simulation
that produced  | 
A named list containing the selected groups of variables in the
desired temporal resolution. The names are constructed from
selection's row names and column names, suffixed by '.ASC' as a
reminiscence to the former text file output of LWF-Brook90.
data("slb1_soil")
data("slb1_meteo")
opts <- set_optionsLWFB90(startdate = as.Date("2002-06-01"), enddate = as.Date("2002-06-05"))
parms <- set_paramLWFB90()
soil <- cbind(slb1_soil, hydpar_wessolek_tab(texture = slb1_soil$texture))
outsel <- set_outputLWFB90()
outsel[,] <- 1L
res <- run_LWFB90(options_b90 = opts,
           param_b90 = parms,
           climate = slb1_meteo,
           soil = soil)
# Calculate output-aggregations using the returned object
process_outputs_LWFB90(res, selection = outsel)
# or calculate aggregations at run time by passing the function via output_fun-arg
run_LWFB90(options_b90 = opts,
           param_b90 = parms,
           climate = slb1_meteo,
           soil = soil,
           rtrn_input = FALSE,
           output_fun = process_outputs_LWFB90,
           selection = outsel)$output_fun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.