Downloading daily (meteorological) data from the Synop stations available in the https://www.ogimet.com/ repository

ogimet_daily(date = c(Sys.Date() - 30, Sys.Date()), coords = FALSE,
  station = c(12326, 12330))

Arguments

date

start and finish of date (e.g., date=c("2018-05-01","2018-07-01") )

coords

add geographical coordinates of the station (logical value TRUE or FALSE)

station

WMO ID of meteorological station(s). Character or numeric vector

Examples

# downloading data for Poznan-Lawica poznan <- ogimet_daily(station = 12330, date = c("2019-01-01","2019-03-31"), coords = TRUE)
#> [1] 12330 #> 2019 03 #> 2019 02 #> 2019 01
#> Error in function (type, msg, asError = TRUE) { if (!is.character(type)) { i = match(type, CURLcodeValues) typeName = if (is.na(i)) character() else names(CURLcodeValues)[i] } typeName = gsub("^CURLE_", "", typeName) fun = (if (asError) stop else warning) fun(structure(list(message = msg, call = sys.call()), class = c(typeName, "GenericCurlError", "error", "condition")))}(18L, "transfer closed with outstanding read data remaining", TRUE): transfer closed with outstanding read data remaining
head(poznan)
#> Error in head(poznan): object 'poznan' not found