| process_outputs_LWFB90 {LWFBrook90R} | R Documentation | 
Aggregate and group model outputs similar to ancient LWFB90 textfile outputs (.ASC-files)
Description
Returns selected groups of variables in the chosen temporal aggregation
Usage
process_outputs_LWFB90(x, selection = set_outputLWFB90(), prec_interval = NULL)
Arguments
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   | 
Value
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.
Examples
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
[Package LWFBrook90R version 0.5.3 Index]