R/get_radolan_urls_for_measurements.R
get_radolan_urls_for_measurements.Rd
Determine the URLs to the Radolan files that are required to calibrate a model. For each day of measurement files (for the day of measurements and the five days before) are required.
get_radolan_urls_for_measurements(user_id, spot_id, sampling_time = "1050", date_range = NULL, all_in_range = FALSE, n_days_before = 5)
user_id | user id |
---|---|
spot_id | bathing spot id |
sampling_time | expected sampling time. Will be used to select the corresponding Radolan files. |
date_range | vector of two Date objects giving the first and last day of
rain data to be loaded. If |
all_in_range | if |
n_days_before | number of days before a measurement for which to load rain data |
named vector of character containing the URLs to the Radolan files required for the measurements storted in the database. The names of the elements are strings in which the date and time is encoded in the format yyyymmddHHMM, e.g. "201809171050" for "2019-09-18 10:50"
if (FALSE) { urls <- get_radolan_urls_for_measurements(user_id = 5, spot_id = 41) }