View source: R/nearbyStations.R
| nearbyStations | R Documentation | 
Select DWD stations within a given radius around a set of coordinates
nearbyStations(
  lat,
  lon,
  radius,
  res = NA,
  var = NA,
  per = NA,
  mindate = NA,
  hasfileonly = TRUE,
  mindex = metaIndex,
  current = FALSE,
  statname = "nearbyStations target location",
  quiet = rdwdquiet(),
  ...
)
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  | 
mindex | 
 Index with metadata for selecting data.
See https://bookdown.org/brry/rdwd/fileindex.html#metaindex
DEFAULT:   | 
current | 
 Get current   | 
statname | 
 Character: name for target location. DEFAULT: "nearbyStations target location"  | 
quiet | 
 Logical: suppress progress messages? DEFAULT: FALSE through   | 
... | 
 Further arguments passed to   | 
metaIndex subset with additional columns "dist" and "url"
Berry Boessenkool, berry-b@gmx.de, Mar 2017, Aug 2025
selectDWD(), metaIndex,
website use case with nearbyStations
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 website use case
# "plot all rainfall values around a given point" (ca section 21):
# browseURL("https://bookdown.org/brry/rdwd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.