readformatGSIMmon: Read and pre-format GSIM monthly data

Description Usage Arguments Details Value Source

View source: R/IRmapping_functions.R

Description

Reads text file of monthly discharge indices for a single GSIM station. Creates columns for year, month, and season (to join with seasonal indices) Estimate the minimum possible number of monthly zero-flow days based on indices

Usage

1

Arguments

path

(character) path to the text file of monthly discharge data in standard GSIM format (.mon file).

Details

compute yearly number of days of missing data

the monthly minimum number of zero flow days n0 is estimated as follows:
1. If MAX == 0, then n0 = n.available 2. else if MIN7 == 0, then n0 = 7 3. else if MIN == 0, then n0 = 1, 4. else n0 = 0

1
For more information on GSIM, see [Gudmundsson et al. (2018)](https://essd.copernicus.org/articles/10/787/2018/).

Value

data.table of monthly indices, with additional attributes including the estimated minimum number of zero-flow days "mDur_minmo"

Source

Gudmundsson, L., Do, H. X., Leonard, M., & Westra, S. (2018). The Global Streamflow Indices and Metadata Archive (GSIM) – Part 2: Quality control, time-series indices and homogeneity assessment. Earth System Science Data, 10(2), 787–804. https://doi.org/10.5194/essd-10-787-2018


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