CDECsnowQuery: Get snow survey data (California only) from the CDEC website.

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/CDECsnowQuery.R

Description

Get snow survey data (California only) from the CDEC website.

Usage

1
CDECsnowQuery(course, start_yr, end_yr)

Arguments

course

integer, course number (e.g. 129)

start_yr

integer, the starting year (e.g. 2010)

end_yr

integer, the ending year (e.g. 2013)

Details

This function downloads data from the CDEC website, therefore an internet connection is required. The 'SWE' column contains adjusted SWE if available ('Adjusted' column), otherwise the reported SWE is used ('Water' column).

Value

a data.frame object, see examples

Note

Snow course locations, ID numbers, and other information can be found here: http://cdec.water.ca.gov/misc/SnowCourses.html

Author(s)

D.E. Beaudette

References

http://cdec.water.ca.gov/cgi-progs/snowQuery

Examples

1
2
3
4
5
## Not run: 
# get data for course numbe 129
x <- CDECsnowQuery(course=129, start_yr=2010, end_yr=2011)

## End(Not run)

sharpshootR documentation built on May 2, 2019, 4:46 p.m.