Collect all drivers for site-level simulations into a nested data frame with one row for each site.

collect_drivers_sofun(site_info, params_siml, meteo, fapar, co2, params_soil)

Arguments

site_info

A data frame containing site meta info (rows for sites). Required columns are: "sitename", "year_start", "year_end", "lon", "lat", "elv". See prepare_setup_sofun for details.

params_siml

A nested data frame with rows for each site containing simulation parameters for SOFUN. See rsofun:run_pmodel_f_bysite or rsofun:run_biomee_f_bysite.

meteo

A nested data frame with rows for each site and meteorological forcing data time series nested inside a column named "data".

fapar

A nested data frame with rows for each site and fAPAR forcing data time series nested inside a column named "data".

co2

A nested data frame with rows for each site and CO2 forcing data time series nested inside a column named "data".

params_soil

Soil texture data descriptor, a data frame with columns "layer", "fsand", "fclay", "forg" and "fgravel".

Value

A rsofun input data frame (see rsofun:p_model_drivers) for a detailed description of its structure and contents).