Downloading hourly or daily (meteorological) data from the Synop stations available at https://www.ogimet.com/

ogimet(interval, date, coords = FALSE, station, precip_split = TRUE)

Arguments

interval

'daily' or 'hourly' dataset to retrieve - given as character

date

start and finish of date (e.g., date=c("2018-05-01","2018-07-01") ) - character or Date class object

coords

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

station

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

precip_split

whether to split precipitation fields into 6/12/24h numeric fields (logical value TRUE (default) or FALSE); valid only to hourly time step

Examples

# downloading data for Poznan-Lawica poznan <- ogimet(interval = "daily", date=c("2019-06-01","2019-07-08"), station = 12330, coords = TRUE, precip_split = TRUE )
#> [1] 12330 #> 2019 07 #> 2019 06 #> 2019 05
head(poznan)
#> station_ID Lon Lat Date TemperatureCAvg TemperatureCMax #> 3 12330 16.83333 52.41667 2019-07-08 15.0 18.6 #> 4 12330 16.83333 52.41667 2019-07-07 17.4 20.8 #> 5 12330 16.83333 52.41667 2019-07-06 16.7 20.0 #> 6 12330 16.83333 52.41667 2019-07-05 18.3 21.9 #> 7 12330 16.83333 52.41667 2019-07-04 16.0 20.5 #> 8 12330 16.83333 52.41667 2019-07-03 17.2 23.3 #> TemperatureCMin TdAvgC HrAvg WindkmhDir WindkmhInt WindkmhGust PresslevHp #> 3 11.2 7.4 60.9 WNW 22.5 46.8 1010.0 #> 4 12.2 12.7 75.1 W 13.5 36.0 1007.3 #> 5 14.8 11.5 71.8 W 19.2 46.8 1012.3 #> 6 15.0 4.7 41.6 W 17.9 43.2 1017.5 #> 7 11.3 4.7 48.4 WNW 17.3 43.2 1021.0 #> 8 10.1 6.5 51.1 WNW 21.6 57.6 1018.0 #> Precmm TotClOct lowClOct SunD1h VisKm SnowDepcm #> 3 0.0 5.9 5.4 5.8 49.2 NA #> 4 2.3 7.0 5.2 <NA> 37.9 NA #> 5 NA 7.3 6.2 2.3 46.0 NA #> 6 NA 6.5 5.4 13.0 50.2 NA #> 7 0.0 4.8 4.1 10.4 50.0 NA #> 8 0.0 3.2 3.4 11.8 50.0 NA