checkGRDCzeroes: Check zero-flow values in GRDC discharge record

Description Usage Arguments Value

Description

Plot and subset a given period (in days) on each side of every zero-flow period in record for a given GRDC station. The output is a plot with a panel showing discharge for each zero-flow period.

Usage

1
2
3
4
5
6
7
8
9
checkGRDCzeroes(
  GRDCstatsdt,
  in_GRDC_NO,
  period = 15,
  yearthresh,
  maxgap,
  in_scales = "free_x",
  labelvals
)

Arguments

GRDCstatsdt

formatted data.table including a "path" column to access GRDC standard daily discharge record text file for the gauging station of interest.

in_GRDC_NO

GRDC unique identifier of the station to be investigated.

period

(integer) number of days on each side of zero-flow values to subset.

yearthresh

(integer) minimum year from which to analyze discharge record

maxgap

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

in_scales

(character) should panel scales be fixed ("fixed", the default), free ("free"), or free in one dimension ("free_x", "free_y")?

labelvals

(logical) whether to label individual discharge values

Value

data.table subset of GRDCstatsdt, including only records for zero-flow days +- period


messamat/globalIRmap documentation built on July 4, 2021, 10:48 a.m.