View source: R/getWatershedOfStation.R
getWatershedOfStation | R Documentation |
Given a USGS site this function retrieves the watershed polygon
getWatershedOfStation(siteID, printMap = FALSE, exportMap = FALSE)
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 |
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 |
watershed <- getWatershedOfStation("02131000", printMap = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.