View source: R/modelSetupRun.R
settings_searchFiles | R Documentation |
This function search user-defined folders for CWatM data inputs and automatically updates a settings named list
settings_searchFiles(settingsList = NULL, ...)
settingsList |
named |
... |
additional arguments (see details) |
This function assumes that the CWatM data folders' structure and file names follows the convention described in the models' documentation:
https://cwatm.iiasa.ac.at/. The user can provoke a call to settings_setFilePaths()
, if character
FILE_PATHS are provided.
In order to search for a specific file, the function uses a set of pre-defined variable-specific search expressions.
When updated with a new file path; the followin comment ("Updated") is appended to the settings table. If the search results with multiple matchs, the first one is updated
and the following comment is appended to the settings table: "Multiple results were found; taken the first one".
named list
; a CWatM settings list.
## Not run: my_settings <- settings_ini2list(inipath = "./cwatm/settings_template.ini") # set user-defined paths root = "d:/cwatm/model_data" maps = "d:/cwatm/model_data/maps" meteo = "./climate" my_settings <- settings_searchFiles(settingsList = my_settings, PathRoot = root, PathMaps = maps, PathMeteo = meteo) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.