nearbyStations {rdwd} | R Documentation |
Find DWD stations close to given coordinates
Description
Select DWD stations within a given radius around a set of coordinates
Usage
nearbyStations(
lat,
lon,
radius,
res = NA,
var = NA,
per = NA,
mindate = NA,
hasfileonly = TRUE,
statname = "nearbyStations target location",
quiet = rdwdquiet(),
...
)
Arguments
lat |
Coordinates y component [degrees N/S, range 47:55] |
lon |
Coordinates x component [degrees E/W, range 6:15] |
radius |
Maximum distance [km] within which stations will be selected |
res , var , per |
Restrictions for dataset type as documented in
|
mindate |
Minimum dataset ending date (as per metadata). DEFAULT: NA |
hasfileonly |
Logical: only return entries for which there is an open-access file available? DEFAULT: TRUE |
statname |
Character: name for target location. DEFAULT: "nearbyStations target location" |
quiet |
Logical: suppress progress messages? DEFAULT: FALSE through |
... |
Further arguments passed to |
Value
metaIndex
subset with additional columns "dist" and "url"
Author(s)
Berry Boessenkool, berry-b@gmx.de, Mar 2017
See Also
selectDWD()
, metaIndex
,
website use case with nearbyStations
Examples
m <- nearbyStations(49.211784, 9.812475, radius=30,
res=c("daily","hourly"), var= c("precipitation","more_precip","kl") ,
mindate=as.Date("2016-05-30"), statname="Braunsbach catchment center")
# View(m)
# for a continued example of this, see the vignette in chapter
# use case: plot all rainfall values around a given point
# browseURL("https://bookdown.org/brry/rdwd")