Skip to content

rabutler/CoRiverNF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoRiverNF

Travis-CI Build Status

A data only R package containing natural flow data for the Colorado River Basin. Data is included at the natural flow basin node level used by the Colorado River Simulation (CRSS).

The package is a convenient way to access the Colorado River Natural Flow data available here. Every effort will be made to update the package to include the most recent natural flow data.

The current data is based on the 1906-2015 natural flow data with a date of August 14, 2017.

Using in R

The data can be accessed by installing this package from GitHub:

if(!require(devtools)){
    install.packages('devtools')
    library(devtools)
}
devtools::install_github('BoulderCodeHub/CoRiverNF', build_vignettes = TRUE)

The package includes monthly, calendar year, and water year data for total and intervening natural flow in 6 data sets:

  • monthlyTot
  • monthlyInt
  • cyAnnTot
  • cyAnnInt
  • wyAnnTot
  • wyAnnInt

You can easily access these data using natural flow node abbreviated names, and the methods used by xts objects to subset time series data. For example, the 2000-2015 data at Lees Ferry can be accessed with cyAnnTot$LeesFerry['2000/']. For more examples see the vignette: vignette('CoRivNatFlow', package = 'CoRiverNF').

Reproducing the Data

The included data can be recreated by downloading the package code, or copying the code and Excel file located in data-raw.

To run the code, edit the path to the Excel file located in the "User Input" section of the getHistoricalNFData.R file and then source that file.

Log

  • 2018-01-24: version 0.4.1 available
  • 2017-09-06: version 0.4.0 available - updated to 1906 - 2015 data
  • 2017-02-10: version 0.3 available - updated to 1906 - 2014 data
  • 2016-10-18: version 0.2 available
  • 2016-06-16: version 0.1 ready for use

About

R data package for Colorado River Natural Flows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 100.0%