Travis build status GPL license GitHub version


Streamflow reconstruction using linear dynamical system. The method was described in Nguyen and Galelli (2018) and used in Nguyen et al (2019). Please cite Nguyen and Galelli (2018) when using the package.

To install this package, type the following commands into your RStudio console:

devtools::install_github('ntthung/ldsr', build_vignettes = TRUE)

Note that if you don’t already have Rtools (a set of tools to build packages from sources), RStudio will prompt you to install it. Just follow the instructions. After Rtools installation is complete, type the above install_github command again.

To view the package’s vignette, type



Nguyen, H. T. T., & Galelli, S. (2018). A linear dynamical systems approach to streamflow reconstruction reveals history of regime shifts in northern Thailand. Water Resources Research, 54, 2057– 2077.

Nguyen, H. T. T., Turner, S. W., Buckley, B. M., & Galelli, S. (2019). Coherent streamflow variability in Monsoon Asia over the past eight centuries—links to oceanic drivers.