Using R in Hydrology - EGU2018 Short Course
Conveners: Louise Slater, Shaun Harrigan, Tobias Gauster, Alexander Hurley, Guillaume Thirel, Claudia Vitolo
- Where? Wednesday 11 April at 10:30–12:00 in Room -2.16 (basement!); http://meetingorganizer.copernicus.org/EGU2018/session/28914
- What? This session is aimed at hydrologists who are interested in hearing more about R as well as those who are advanced R programmers wanting to discuss recent developments in an open environment.
- The session is organised in cooperation with the Young Hydrologic Society (YHS).
- Participants are invited to post and discuss questions in the Hydrology in R Facebook group.
Layout of the session:
The running order of the short course follows a typical hydrological analysis workflow:
- Introduction to the short course - Louise Slater
- Accessing hydrological data using web APIs (a demo of the rnrfa package) - Claudia Vitolo
- Processing, modelling and visualising hydrological data in R (tidyverse; piping, mapping and nesting) - Alexander Hurley
- Extracting netCDF climate data for hydrological analyses (reading and visualising gridded data) - Louise Slater
- Hydrological modelling and teaching modelling (airGR and airGRteaching) - Guillaume Thirel
- Typical hydrological tasks in R (List columns, Leaflet and coordinate transformation, Open Street Maps) - Tobias Gauster
Packages and data required
- To follow along, participants may wish to run the following code before the session: install.packages(c("rnrfa", "lfstat", "osmdata", "tidyverse", "sf", "leaflet", "ncdf4","lubridate", "ggplot2", "raster", "rgdal", "airGRteaching", "airGR"))
- For the netCDF presentation, sample gridded data for 2015-06 can be downloaded directly by clicking here and the catchment shapefile can be downloaded from here (see acknowledgments in presentation).
- airGR - a description of the airGR package (IRSTEA GR Hydrological Models)
- R-Resources for Hydrology - a detailed list of R resources for hydrology (slightly outdated now)
- rnrfa - an R package to interact with the UK National River Flow Archive (GitHub repo)
- hddtools - an R package to facilitate access to a variety of online open data sources for hydrologists