
Set one or more parameter values in a Simstrat-AED2 simstrat.par file
Source: R/set_simstrat_param.R
set_simstrat_param.RdThin, aeme-free wrapper for editing a Simstrat-AED2 simstrat.par
(JSON) file in place. Intended for a Simstrat-AED2-only workflow where a
user just wants to tweak parameters, run the model, and load the output.
Usage
set_simstrat_param(
path_simstrat,
...,
par_file = file.path(path_simstrat, "simstrat.par")
)Arguments
- path_simstrat
filepath; directory containing the Simstrat-AED2 configuration
- ...
named parameter/value pairs to set, using a dot-separated path into the nested JSON structure, e.g.
`ModelParameters.f_wind` = 1.3or`Simulation.Reference year` = 2020. Values must be of the same type (numeric, logical, character) as the current value in the file.- par_file
filepath; path to the
simstrat.parfile to edit. Defaults tosimstrat.parinpath_simstrat.