Modelling
R Packages
for CRHM and other hydrological applications
R is Free Open Source Software (FOSS), used widely for data handling and statistical analysis. It is available for all computer platforms at http://www.r-project.org/. Using R is made much easier by RStudio, a free development environment available at http://www.rstudio.com/. As well as acting as a stand-alone program, R can be used as a programming language. The language is extensible with several thousands of packages, each of which contains many functions.
The input functions allow data to be read in, infilled and exported to CRHM .obs files. All of the functions that create or change .obs files write to
The post-processing functions read in data from any CRHM
All of the code is also
The following packages, together with manuals and release notes, are available through the Centre for Hydrology GitHub Repository:
CRHMr : Reads in CRHM inputs and outputs: does aggregation, interpolation, imputation, and creates .obs files
MSCr : Reads daily and sub-daily meteorological data from the Meteorological Service of Canada (MSC) web server, and saves to CRHM .obs files: also reads daily and monthly data from the Adjusted and Homogenized Canadian Climate Data (AHCCD)
- Reanalysis: reates .obs files from several types of reanalysis files, including ERA, WATCH and NARR
- WISKIr: Reads time series directly from a WISKI web server