Learn R Programming

hddtools (version 0.5)

tsGRDC: Interface for the Global Runoff Data Centre database of Monthly Time Series

Description

This function interfaces the Global Runoff Data Centre monthly mean daily discharges database.

Usage

tsGRDC(stationID, plotOption = FALSE)

Arguments

stationID
7 string that identifies a station, GRDC station number is called "grdc no" in the catalogue.
plotOption
boolean to define whether to plot the results. By default this is set to TRUE.

Value

The function returns a list of 3 tables:
mddPerYear
This is a table containing mean daily discharges for each single year (n records, one per year). It is made of 7 columns which description is as follows:
LQ: lowest monthly discharge of the given year month: associated month of occurrence MQ: mean discharge of all monthly discharges in the given year HQ: highest monthly discharge of the given year month: associated month of occurrence n: number of available values used for MQ calculationFirst item
mddAllPeriod
This is a table containing mean daily discharges for the entire period (Calculated only from years with less than 2 months missing). It is made of 6 columns which description is as follows:
LQ: lowest monthly discharge from the entire period MQ_1: mean discharge of all monthly discharges in the period [m3/s] MQ_2: mean discharge volume per year of all monthly discharges in the period [km3/a] MQ_3: mean runoff per year of all monthly discharges in the period [mm/a] HQ: highest monthly discharge from the entire periode n: number of available months used for MQ calculation
mddPerMonth
This is a table containing mean daily discharges for each month over the entire period (12 records covering max. n years. Calculated only for months with less then or equal to 10 missing days). It is made of 7 columns which description is as follows:
LQ: lowest monthly discharge of the given month in the entire period year: associated year of occurrence (only the first occurrence is listed) MQ: mean discharge from all monthly discharges of the given month in the entire period HQ: highest monthly discharge of the given month in the entire period year: associated year of occurrence (only the first occurrence is listed) std: standard deviation of all monthly discharges of the given month in the entire period n: number of available daily values used for computation

Details

Please note that not all the GRDC stations listed in the catalogue have monthly data available.

Examples

Run this code
## Not run: ------------------------------------
#   Adaitu <- tsGRDC(stationID = "1577602")
#   Adaitu <- tsGRDC(stationID = catalogueGRDC()$grdc_no[1000],
#                    plotOption = TRUE)
## ---------------------------------------------

Run the code above in your browser using DataLab