This is a course on hydrological modelling using a R software package. Part 1 presumes that you have at least a basic knowledge of hydrology and ideally some experience of R. Part 2 requires a more detailed knowledge of R along with some knowledge of the git version control system.
Useful primers for R can be found on multiple websites such as that of Hadley Wickham or on CRAN but complete knowledge of their contents is not expected.
To make use of the examples on which Part 1 of the course is based requires
Installation instructions for R are available from CRAN for Linux, Windows and Mac. Full details of the R version and packages used in building this version of the training material can be found here.
While it is possible to complete the course using the built in R GUI’s for Windows and Mac it is recommended to install an editor with syntax highlighting. Popular choices include the Rstudio IDE, VSCode (Instructions here) or Emacs with ESS all of which provide an integrated development environment.
dynatop
and
dynatopGIS
These and there dependencies can be install in the standard way for R packages. At the R command prompt type
install.packages('dynatop', repos =c('https://waternumbers.r-universe.dev','https://cloud.r-project.org'))
install.packages('dynatopGIS', repos = c('https://waternumbers.r-universe.dev', 'https://cloud.r-project.org'))
For completing Part 2 of the course which focuses on developing dynatop further software is required.
Details on installing git can be found on the software’s webpage. It is presumed that git is available from the command line.
Pandoc provides installation instructions.
The most efficient method of installing the tools required for building R packages depends upon the platform:
This is required to fork and alter the source code.
Download the data for the examples as a zip file. Extracting this should give a directory “eden_data” with four subdirectories. In the code provided is is presumed that the working directory of the R session is “eden_data”.
To save copying and pasting from the web pages the R code used in the training course is available. These scripts should be used alongside the course material.