get_usgs_gage: A function to grab daily stream flow measurements from the...

Description Usage Arguments Value Author(s) Examples

View source: R/get_usgs_gage.R

Description

A function to grab daily stream flow measurements from the USGS waterdata.usgs.gov server.

Usage

1
get_usgs_gage(flowgage_id,begin_date="1979-01-01",end_date="2013-01-01")

Arguments

flowgage_id

flowgage_id Gage is a TEXT/String rather than numeric or the query will fail on gages with leading 0s

begin_date

begin_date begin_date is a TEXT/String for the start date for the data you want. Default is the beginning of the cfsr dataset.

end_date

end_date end_date is a TEXT/String for the end date for the data you want. Default is in the future sometime

Value

area

The area above the gage [km2]

declat

Decimal Lat

declon

Decimal Lon

flowdata

Dataframe with the historical flow data - flow is in cubic meters per day

Author(s)

Daniel R Fuka

Examples

1
2
3
4
flowgage_id="04216500"
flowgage=get_usgs_gage(flowgage_id)

## The function is currently defined as

EcoHydRology documentation built on March 29, 2021, 3:01 p.m.