getWatershedOfStation: Get Watershed of USGS Station

View source: R/getWatershedOfStation.R

getWatershedOfStationR Documentation

Get Watershed of USGS Station

Description

Given a USGS site this function retrieves the watershed polygon

Usage

getWatershedOfStation(siteID, printMap = FALSE, exportMap = FALSE)

Arguments

siteID

USGS station ID

printMap

if TRUE this function prints a leaflet map and appends it to the output

exportMap

if TRUE this function appends the leaflet map to the output without printing it

Value

a list of watershed properties

name name

description name of the watershed

name HUC

description hydraullic unit code of watershed

name stationName

description name of the USGS station

name stationID

description ID of the USGS station

name stationLatitude

description Latitude coordinate of USGS station

name stationLongitude

description Longitude coordinate of USGS station

name polygon

description polygon(SpatialPolygonsDataFrame) describing the watershed

Examples


watershed <- getWatershedOfStation("02131000", printMap = TRUE)



JerryHMartin/waterDataSupport documentation built on Jan. 25, 2023, 2:36 a.m.