plot_GRDCflags: Plot all GRDC time series with data quality flags

Description Usage Arguments Details Value

Description

Creates pngs of streamflow time series plots of daily discharge (m^3/s; with flags for 0-flow values and potential outlier) for all GRDC gauges with at least 10 years of data, excluding years with more than 20 days of missing data.

Usage

1
2
3
4
5
6
7
plot_GRDCflags(
  in_GRDCgaugestats,
  yearthresh,
  inp_resdir,
  maxgap,
  showmissing = FALSE
)

Arguments

in_GRDCgaugestats

data.table (or list of data.tables) with time series and intermittency statistics for all GRDC gauging stations.

yearthresh

(integer) minimum year from which to plot discharge record.

inp_resdir

(character) path to the results directory in which to create folder and write output plots

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 are written into two separate newly created directories in inp_resdir called GRDCir_rawplots_yearthresh_YYYYMMDD and GRDCper_rawplots_yearthresh_YYYYMMDD (e.g., GRDCir_rawplots_1800_20200512 and GRDCper_rawplots_1800_20200512). The first contains plots for non-perennial gauging stations and the second contains plots for perennial gauging stations.

Each plot is generated by plotGRDCtimeseries and shows the time series of daily streamflow values for a station. For the flagging criteria, see documentation for flagGRDCoutliers.

Value

nothing (empty data.table)


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