Downloading hourly (meteorological) data from the SYNOP / CLIMATE / PRECIP stations available in the danepubliczne.imgw.pl collection

meteo_imgw_hourly(
  rank = "synop",
  year,
  status = FALSE,
  coords = FALSE,
  station = NULL,
  col_names = "short",
  allow_failure = TRUE,
  ...
)

Arguments

rank

rank of the stations: "synop" (default), "climate", or "precip"

year

vector of years (e.g., 1966:2000)

status

leave the columns with measurement and observation statuses (default status = FALSE - i.e. the status columns are deleted)

coords

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

station

name or ID of meteorological station(s). It accepts names (characters in CAPITAL LETTERS) or stations' IDs (numeric)

col_names

three types of column names possible: "short" - default, values with shorten names, "full" - full English description, "polish" - original names in the dataset

allow_failure

logical - whether to proceed or stop on failure. By default set to TRUE (i.e. don't stop on error). For debugging purposes change to FALSE

...

other parameters that may be passed to the 'shortening' function that shortens column names

Value

meteorological data for the hourly time interval

Examples

# \donttest{
hourly = meteo_imgw_hourly(rank = "climate", year = 1984)
#>     Your system locale is: C.UTF-8 which may cause trouble.
#>     Please consider changing it manually while working with climate, e.g.:
#>     Sys.setlocale(category = 'LC_ALL', locale = 'en_US.UTF-8') 
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/k_t_format.txt
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/1981_1985/
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/1981_1985/1981_k.zip
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/1981_1985/1982_k.zip
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/1981_1985/1983_k.zip
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/1981_1985/1984_k.zip
#> https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/klimat/1981_1985/1985_k.zip
head(hourly)
#>          NSP     POST   ROK    MC    DZ    GG  TEMP  TTZW   TWLW   WENT  WLGW
#>        <int>   <char> <int> <int> <int> <int> <num> <num> <char> <char> <int>
#> 1: 249180010 PSZCZYNA  1984     1     1     0   3.0   0.0      W           78
#> 2: 249180010 PSZCZYNA  1984     1     1     6   4.2   2.4      W           71
#> 3: 249180010 PSZCZYNA  1984     1     1    12   6.8   4.1      W           61
#> 4: 249180010 PSZCZYNA  1984     1     1    18   5.2   3.0      W           66
#> 5: 249180010 PSZCZYNA  1984     1     2     0   4.3   0.0      W           62
#> 6: 249180010 PSZCZYNA  1984     1     2     6   6.4   3.2      W           53
#>      DKDK   FWR  ZOGK   WID
#>    <char> <int> <int> <int>
#> 1:            0     0     0
#> 2:     SW     9     5     7
#> 3:    WSW     8     6     7
#> 4:     SW     8     8     7
#> 5:            0     0     0
#> 6:    WSW    12     6     7
# }