Description Usage Arguments Details Value
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.
1 2 3 4 5 6 7 | plot_GRDCflags(
in_GRDCgaugestats,
yearthresh,
inp_resdir,
maxgap,
showmissing = FALSE
)
|
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 |
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
.
The y-axis is square-root transformed.
Individual points show daily discharge values (in m^3/s).
blue lines link daily values (which may result in unusual patterns due to missing years).
red points are zero-flow flow values.
green points are non-zero flow daily values statistically flagged as potential outliers .
black points are zero-flow values flagged as potential outliers.
nothing (empty data.table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.