plot_coastalir: Plot coastal intermittent rivers

Description Usage Arguments Details Value

Description

Utility function: plot discharge time series for GRDC or GSIM gauging stations that have been deemed to be near marine waters.

Usage

1
2
3
4
5
6
7
8
plot_coastalir(
  in_gaugep = in_gaugep,
  dt = GRDCstatsdt,
  yearthresh,
  dbname = "grdc",
  inp_resdir = inp_resdir,
  plotseries = TRUE
)

Arguments

in_gaugep

sf object of gauges with column called class99_19_rsp9_buf3k1 indicating whether the gauge is located within 3 km of marine waters.

dt

formatted data.table (generated in analyzemerge_gaugeir).

yearthresh

(integer) minimum year from which to plot discharge record

dbname

(character) 'GRDC' or 'GSIM". Will determine whether to use plotGRDCtimeseries or plotGSIMtimeseries

inp_resdir

(character) path to directory where to save plots. A directory will be created called " 'winterir_rawplots_o(yearthresh)_(date)'

plotseries

(logical) whether to generate plots

Details

so-called marine stations were defined as those within 3 km of a coastline.

Value

subset of input dt only including only intermittent rivers within 3 km of a coastline


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