plotGRDCtimeseries: Plot a GRDC time series

Description Usage Arguments Details Value

Description

Creates a plot of daily discharge (m^3/s) for a GRDC gauging station, with flags for 0-flow values and potential outliers. Save plot to png if path is provided.

Usage

1
2
3
4
5
6
plotGRDCtimeseries(
  GRDCgaugestats_record,
  outpath = NULL,
  maxgap = 366,
  showmissing = FALSE
)

Arguments

GRDCgaugestats_record

data.table of formatted daily discharge records for a single GRDC station. In this project, e.g. the output from comp_GRDCdurfreq. Must contain at least five columns: GRDC_NO, dates, Original, flag_mathis, missingdays
Alternatively, a named list or vector with a column called "path" towards a standard GRDC text file containing daily discharge records for a single gauging station.

outpath

(character) path for writing output png plot (default is no plotting).

maxgap

(integer) threshold number of missing daily records to consider a calendar year unfit for analysis.

showmissing

(logical) whether to show records in years with number of missing daily records beyond maxgap.

Details

the output graphs show the time series of daily streamflow values for the station. For the flagging criteria, see documentation for flagGRDCoutliers.

Value

plot


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.