download_knmi_data_hour: Download KNMI hourly data to file

View source: R/download_knmi_data_hour.R

download_knmi_data_hourR Documentation

Download KNMI hourly data to file

Description

More info, zie https://www.knmi.nl/kennis-en-datacentrum/achtergrond/data-ophalen-vanuit-een-script # nolint

Usage

download_knmi_data_hour(
  stations,
  variables,
  start_date,
  end_date,
  output_file = "knmi_download.txt"
)

Arguments

stations

list of integers. For an overview, see https://www.daggegevens.knmi.nl/klimatologie/uurgegevens

variables

list of variables, options are:

  • "WIND = DD:FH:FF:FX"Wind

  • "TEMP = T:T10N:TD"Temperature

  • "SUNR = SQ:Q"Sunshine duration and global radiation

  • "PRCP = DR:RH"Precipitation and potential evaporation

  • "VICL = VV:N:U"Visibility, cloud cover and relative humidity

  • "WEER = M:R:S:O:Y:WW"Weather phenomena, weather types

  • "ALL"all variables

start_date

date interpretable string to define start of the period

end_date

date interpretable string to define end of the period

output_file

path/filename of the output_file_name

Value

response containing, status_code, content,...

See Also

Other download_functions: download_zenodo(), extract_soil_map_data(), read_kmi_data(), read_kml_file(), read_knmi_data(), read_mow_data()

Examples

## Not run: 
download_knmi_data_hour(c(310, 319), "PRCP", "2011-01-01", "2012-02-17",
  output_file = "knmi_output_download.txt"
)

## End(Not run)

inbo/inborutils documentation built on Nov. 23, 2023, 4:42 a.m.