An R package for running the GOTM-WET model. WETr
holds version 0.1 of the Water Ecosystems Tool (WET). This package does not contain the source code for the model, only the executables. Use wet_version()
to figure out what version of GOTM you are running. This package was inspired by GOTMr.
WET was originally published in: WET – a new generation of flexible aquatic ecosystem modelling software, in preparation, by Schnedler-Meyer, N. A., Hu, F., Bolding, K., Andersen, T. K., Nielsen, A., and Trolle, D.
FABM-PCLake was originally published in: FABM-PCLake – linking aquatic ecology with hydrodynamics, Geoscientific Model Development 9: 2271-2278, by Hu, F., Bolding, K., Bruggeman, J., Jeppesen, E., Flindt, M. R., van Gerven, L., Janse, J. H., Janssen, A. B. G., Kuiper, J. J., Mooij, W. M., and Trolle, D. 2016.
The original PCLake model was published in: A model of nutrient dynamics in shallow lakes in relation to multiple stable states, Hydrobiologia 342/343: 1-8, by Janse, J. 1997.
You can install WETr from Github with:
# install.packages("devtools")
devtools::install_github("aemon-j/WETr")
library(WETr)
library(gotmtools)
# copy test files to your current wd
copy_testcase(folder = ".")
# run WET
run_wet(sim_folder = ".", yaml_file = "gotm.yaml", verbose = TRUE)
# list available variables
list_vars("output.nc")
# load variable to R
tot_chla <- get_vari(ncdf = "output.nc", var = "wet_chla_calculator_result")
# plot variable
plot(tot_chla$Datetime, tot_chla$V14, 'l')