Identify DWD weather station ID from station name
findID(name = "", exactmatch = TRUE, mindex = metaIndex, quiet = rdwdquiet())
Char: station name(s) that will be matched in mindex
to obtain
id. DEFAULT: ""
Single object: Index used to select id
if name
is given. DEFAULT: metaIndex
Logical: suppress length warnings? DEFAULT: FALSE through rdwdquiet()
Character string (vector) with ID(s)
used in selectDWD()
, metaInfo()
# NOT RUN {
# Give weather station name (must be existing in metaIndex):
findID("Potsdam")
findID("potsDam") # capitalization is ignored
# all names containing "Hamburg":
findID("Hamburg", exactmatch=FALSE)
findID("Potsdam", exactmatch=FALSE)
# vectorized:
findID(c("Potsdam","Berlin-Buch"))
# German Umlauts are changed to ue, ae, oe, ss
findID("Muenchen", FALSE)
berryFunctions::convertUmlaut("M?nchen") # use this to convert umlauts in lists
# }
Run the code above in your browser using DataLab