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,
...
)
rank of the stations: "synop" (default), "climate", or "precip"
vector of years (e.g., 1966:2000)
leave the columns with measurement and observation statuses (default status = FALSE - i.e. the status columns are deleted)
add coordinates of the station (logical value TRUE or FALSE)
name or ID of meteorological station(s). It accepts names (characters in CAPITAL LETTERS) or stations' IDs (numeric)
three types of column names possible: "short" - default, values with shorten names, "full" - full English description, "polish" - original names in the dataset
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
meteorological data for the hourly time interval
# \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')
#> /tmp/RtmpWCv8r5/file15e82bb92d98
#> /tmp/RtmpWCv8r5/file15e86187dda4
#> /tmp/RtmpWCv8r5/file15e86187dda4
#> /tmp/RtmpWCv8r5/file15e82634e308
#> /tmp/RtmpWCv8r5/file15e8243400c0
#> /tmp/RtmpWCv8r5/file15e83e27c5b2
#> /tmp/RtmpWCv8r5/file15e8656b2209
#> /tmp/RtmpWCv8r5/file15e83f985376
head(hourly)
#> rank id station yy mm day hour t2m t_wet ice_indicator
#> 1 KLIMATYCZNA 249180010 PSZCZYNA 1984 1 1 0 3.0 0.0 W
#> 2 KLIMATYCZNA 249180010 PSZCZYNA 1984 1 1 6 4.2 2.4 W
#> 3 KLIMATYCZNA 249180010 PSZCZYNA 1984 1 1 12 6.8 4.1 W
#> 4 KLIMATYCZNA 249180010 PSZCZYNA 1984 1 1 18 5.2 3.0 W
#> 5 KLIMATYCZNA 249180010 PSZCZYNA 1984 1 2 0 4.3 0.0 W
#> 6 KLIMATYCZNA 249180010 PSZCZYNA 1984 1 2 6 6.4 3.2 W
#> ventil_indicator rh wd_code ws cl_tot visibility_code
#> 1 78 0 0 0
#> 2 71 SW 9 5 7
#> 3 61 WSW 8 6 7
#> 4 66 SW 8 8 7
#> 5 62 0 0 0
#> 6 53 WSW 12 6 7
# }