getStns_EDEN: Retrieve station coordinates from EDEN

View source: R/getStnsEDEN.R

getStns_EDENR Documentation

Retrieve station coordinates from EDEN

Description

Scrapes EDEN station coordinate data.

Usage

getStns_EDEN(url = "https://sofia.usgs.gov/eden/stationlist-area.php?area=WCA3")

Arguments

url

character string. Web address with EDEN stations (e.g., https://sofia.usgs.gov/eden/stationlist-area.php?area=WCA3).

Value

dataframe getCoords_EDEN returns a dataframe with EDEN stations in the requested region.

Examples

## Not run: 
tst <- getStns_EDEN()
### generate list of all stations
areas <- c("WCA1", "WCA2", "WCA3", "BCNP", "ENP", "Pennsuco", "FLBay", "GOM")
area.urls <- c(paste0("https://sofia.usgs.gov/eden/stationlist-area.php?area=", areas))
stn.list <- lapply(X = area.urls, getStns_EDEN)
stns     <- do.call(c, stn.list)

## End(Not run)


troyhill/SFNRC documentation built on Dec. 30, 2024, 4:32 p.m.