Recommendations of approaches to modify TOML for automatic optimisation of Wflow #902
AquaPore
started this conversation in
Feature request
Replies: 1 comment 1 reply
|
Dear Joseph, There is no to use a specific package to modify the toml file. You can adjust the config object in memory to adjust these value/scale/offset values. See e.g. this test as an example: Lines 361 to 374 in e8293d5 For example: using Wflow
# read toml file
config = Wflow.Config("path/to/settings.toml")
# adjust toml settings
config.input.static["soil__thickness"] = Wflow.InputEntry(;
scale = [3.0],
offset = [100.0],
netcdf_variable_name = "SoilThickness",
)
# run wflow with the modified config object
Wflow.run(config) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Dear Wflow users,
I will be looking to build a package to automatically optimise Wflow. I could use the approach I performed in my paper Multistep optimization of HyPix model for flexible vertical scaling of soil hydraulic parameters
The parameters to be optimised can be listed in a CSV file, where you tick the parameters, specify their feasible ranges, and indicate whether log transformation is required.
I guess an approach that would cause the least interference with the current excellent setup of the Wflow model would be to modify the TOML file. Either:
Option 1: modify .value
Option 2: modify .scale or offset.
I am writing to seek your views and whether you have any recommended packages that can modify the TOML file?
Looking forward for your suggestions?
Joseph A.P. Pollacco
All reactions