SW2toTable | R Documentation |
The main purpose of this function is the side-effect of writing easy-to-share, daily simulation output of relevant variables to disk.
metric_SW2toTable_daily(
path,
name_sw2_run,
id_scen_used,
list_years_scen_used,
zipped_runs = FALSE,
out = "across_years",
dir_out_SW2toTable = file.path("..", "Outputs"),
format_share_SW2toTable = c("rds", "csv"),
outputs_SW2toTable = c("all", "meteo", "snow", "radiation", "waterbalance",
"evapotranspiration", "soiltemperature", "VWC", "SWP", "SWAat30bar", "MDD"),
share_soillayer_ids = NULL,
...
)
path |
A character string. The path to the simulation project folder that contains the individual folder of each simulated site. |
name_sw2_run |
A character string. The name of the folder
(or zip archive, see |
id_scen_used |
An integer vector. The numbers of scenarios for which metrics are to be calculated. |
list_years_scen_used |
A list of integer vectors.
Each scenario in |
zipped_runs |
A logical value. Describes whether |
out |
A character string. Signaling whether the functions returns a time series of yearly values or an aggregate (e.g., mean) across years. One of “ts_years” or “across_years”. |
dir_out_SW2toTable |
A character string. The path at which output is stored on disk. |
format_share_SW2toTable |
A character string. The function produces
output files in format of either “rds” via |
outputs_SW2toTable |
A vector of character strings. If “all”, then all implemented output variables are included. |
share_soillayer_ids |
A numeric vector. The indices of simulated
soil layers to include in the output files. If |
... |
Additional arguments |
This is not a metric as any of the regular metrics produced by the package.
This function produces files as side-effect which utilizes a different output mechanism than the regular metrics provided by the package. To make this possible, a few hacks are required:
The argument out
is set to “across_years”
despite the fact that this function produces daily output.
The function returns dummy output that is processed by the regular output mechanism of the package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.