fun.GageData: Download USGS Gage Data

View source: R/fun.GageData.R

fun.GageDataR Documentation

Download USGS Gage Data

Description

This a wrapper function for the package dataRetrieval to get USGS data. Daily means are the default data type.

Usage

fun.GageData(
  fun.myData.SiteID,
  fun.myData.Type = "Gage",
  fun.myData.DateRange.Start,
  fun.myData.DateRange.End,
  fun.myDir.export = getwd(),
  fun.myTZ = ContData.env$myTZ
)

Arguments

fun.myData.SiteID

Station/SiteID (can be a vector).

fun.myData.Type

data type is "Gage".

fun.myData.DateRange.Start

Start date for requested data. Format = YYYY-MM-DD.

fun.myData.DateRange.End

End date for requested data. Format = YYYY-MM-DD.

fun.myDir.export

Directory for export data. Default is current working directory.

fun.myTZ

Timezone for requested gage. Default is in env.UserDefinedValues.R. Can also be set with Sys.timezone().

Details

Gage height is converted to water level for compatibility with HOBOware output.

Value

Returns a csv file to specified directory with the requested daily mean data. During the data retrieval a summary is output to the console.

Examples

#Not intended to be accessed independant of function ContDataQC().
fun.GageData("01187300","Gage","2013-01-01","2013-12-31",getwd(),"","")
# with optional variable left blank
fun.GageData("01187300","Gage","2013-01-01","2013-12-31")

leppott/ContDataQC documentation built on Jan. 5, 2025, 10:12 a.m.