Skip to contents

aquacrop_wrapper takes parameter values as an input for an AquaCrop simulation and returns a result list as requested by the CroptimizR package. [Experimental]

Usage

aquacrop_wrapper(
  param_values,
  situation,
  model_options = list(AQ = AQ, cycle_length = 70, growth_length = NULL, defaultpar =
    Spinach, output = "croptimizr", daily_output = c(1, 2)),
  ...
)

Arguments

param_values

list of crop parameters to modify from the default

situation

character vector of scenario names as listed in the Scenario_s tibble

model_options

list of model options: AQ is the aquacrop path as generated by the path_config function, cycle_length an integer representing the length of the simulation period in days, growth_length an integer representing the length of the growth period in days, defaultpar is the default parameter list as designed by the read_CRO function, output defines the shape of the output that is returned and daily_output defines the daily output variables that are generated by AquaCrop.

Value

a dataframe or list (if model_options$output = 'croptimizr') of daily outputs of AquaCrop, concatenated over the different scenario's.

Examples


if (FALSE) y <- aquacrop_wrapper(param_values = params,
                      situation = Scenario_s$Scenario,
                      model_options = list(AQ=AQ, defaultpar=Spinach,
                                           output = "croptimizr", daily_output = c(1,2)))