GetSites: GetSites

Description Usage Arguments Value Examples

View source: R/GetSites.R

Description

This function gets the table of sites from the WaterML web service

Usage

1
GetSites(server, west = NULL, south = NULL, east = NULL, north = NULL)

Arguments

server

The URL of the web service ending with .WSDL, for example: http://icewater.usu.edu/MudLake/cuahsi_1_0.asmx?WSDL alternatively this can be the REST URL to get the sites.

west

Optional parameter: The west longitude of the geographic bounding box in decimal degrees. Allowed values are between -180.0 and +180.0

south

Optional parameter: The south latitude of the geographic bounding box in decimal degrees. Allowed values are between -90.0 and +90.0

east

Optional parameter: The east longitude of the geographic bounding box in decimal degrees. Allowed values are between -180.0 and +180.0

north

Optional parameter: The north latitude of the geographic bounding box in decimal degrees. Allowed values are between -90.0 and +90.0

Value

a data.frame of sites. The data.frame has the following columns:

The output data.frame also has attributes with information about the status: download.time, parse.time, download.status, parse.status These attributes can be used for troubleshooting WaterOneFlow/WaterML server errors.

Examples

1
2
3
4
5
6
#Getting all sites from a service
sites <- GetSites("http://hydroportal.cuahsi.org/ipswich/cuahsi_1_1.asmx?WSDL")

#Getting a subset of sites restricted by geographical area
server <- "http://hydroportal.cuahsi.org/NEON/cuahsi_1_1.asmx?WSDL"
sites_subset <- GetSites(server, west=-115.0, south=40.0, east=-110.0, north=42.0)

jirikadlec2/waterml documentation built on Dec. 17, 2020, 1:55 a.m.