Download example models
For each wflow Model a test model is available that can help to understand the data requirements and the usage of each Model. The TOML configuration file per available model are listed in the Table below:
model | TOML configuration file |
---|---|
wflow_sbm + kinematic wave | sbm_config.toml |
wflow_sbm + groundwater flow | sbm_gwf_config.toml |
wflow_sediment | sediment_config.toml |
The associated Model files (input static, forcing and state files) can easily be downloaded and for this we share the following Julia code (per Model) that downloads the required files to your current working directory. For running these test model see also Usage and Command Line Interface.
wflow_sbm + kinematic wave
# urls to TOML and netCDF of the Moselle example model
= "https://raw.githubusercontent.com/Deltares/Wflow.jl/master/test/sbm_config.toml"
toml_url = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.9/staticmaps-moselle.nc"
staticmaps = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.6/forcing-moselle.nc"
forcing = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.6/instates-moselle.nc"
instates
# create a "data" directory in the current directory
= joinpath(@__DIR__, "data")
datadir mkpath(datadir)
= joinpath(@__DIR__, "sbm_config.toml")
toml_path
# download resources to current and data dirs
download(staticmaps, joinpath(datadir, "staticmaps-moselle.nc"))
download(forcing, joinpath(datadir, "forcing-moselle.nc"))
download(instates, joinpath(datadir, "instates-moselle.nc"))
download(toml_url, toml_path)
wflow_sbm + groundwater flow
# urls to TOML and netCDF of the Moselle example model
= "https://raw.githubusercontent.com/Deltares/Wflow.jl/master/test/sbm_gwf_config.toml"
toml_url = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.3/staticmaps-sbm-groundwater.nc"
staticmaps = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.1/forcing-sbm-groundwater.nc"
forcing
# create a "data" directory in the current directory
= joinpath(@__DIR__, "data")
datadir mkpath(datadir)
= joinpath(@__DIR__, "sbm_gwf_config.toml")
toml_path
# download resources to current and data dirs
download(staticmaps, joinpath(datadir, "staticmaps-sbm-groundwater.nc"))
download(forcing, joinpath(datadir, "forcing-sbm-groundwater.nc"))
download(toml_url, toml_path)
wflow_sediment
# urls to TOML and netCDF of the Moselle example model
= "https://raw.githubusercontent.com/Deltares/Wflow.jl/master/test/sediment_config.toml"
toml_url = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.3/staticmaps-moselle-sed.nc"
staticmaps = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.3/forcing-moselle-sed.nc"
forcing = "https://github.com/visr/wflow-artifacts/releases/download/v0.2.0/instates-moselle-sed.nc"
instates
# create a "data" directory in the current directory
= joinpath(@__DIR__, "data")
datadir mkpath(datadir)
= joinpath(@__DIR__, "sediment_config.toml")
toml_path
# download resources to current and data dirs
download(staticmaps, joinpath(datadir, "staticmaps-moselle-sed.nc"))
download(forcing, joinpath(datadir, "forcing-moselle-sed.nc"))
download(instates, joinpath(datadir, "instates-moselle-sed.nc"))
download(toml_url, toml_path)