nearbyStations

0th

Percentile

Find DWD stations close to given coordinates

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 = FALSE, ...)
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 selectDWD. Each can be a vector of entries. DEFAULTS: NA (ignored)

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

Further arguments passed to selectDWD

Value

metaIndex subset with additional columns "dist" and "url"

See Also

selectDWD, metaIndex

Aliases
  • nearbyStations
Examples
# NOT RUN {
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")

# }
Documentation reproduced from package rdwd, version 1.2.0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.