delineateWatershed: Delineate watershed based on location specification

Description Usage Arguments Examples

View source: R/watershed.R

Description

Uses StreamStats API https://streamstats.usgs.gov/streamstatsservices/#

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
delineateWatershed(
  xlocation,
  ylocation,
  rcode = NULL,
  includeparameters = c("false", "true"),
  includeflowtypes = c("false", "true"),
  includefeatures = c("true", "false"),
  crs,
  simplify = NULL
)

Arguments

xlocation

X location of the most downstream point of desired study area.

ylocation

Y location of the most downstream point of desired study area.

rcode

2-3 character code that identifies the Study Area (either a State or a Regional Study)

includeparameters

string Comma separated list of region parameters to compute. Default: true, will return all parameters for region

includeflowtypes

string Not yet implemented

includefeatures

string true Comma separated list of features to include in response. See Feature resource for more information. Default: true, returns delineated basin and pourpoint

crs

string ESPSG spatial reference code. The function rgdal::showEPSG might come in handy.

simplify

boolean Whether to simplify returned result, defaut: true

Examples

1
2
3
4
5
6
## Not run: 
# Delineate a watershed and extract parameters using WGS83
ws1 <- delineateWatershed(xlocation = -72.9249, ylocation = 42.3170, crs = 4326,
includeparameters = "true")

## End(Not run)

markwh/streamstats documentation built on Sept. 29, 2021, 8:42 a.m.