Description Usage Arguments Value Examples
This function allows you to filter observation data relevant to your time-series analysis. A single phase and observation period is selected. Observations of stations closed out of or within this period are deleted. All observations of a station with less than a selected number of observations is available are removed.
1 | dwd_filter(dwd_data, dwd_phase_id, obs_start, obs_end, obs_min)
|
dwd_data |
tibble containing processed DWD observation data which shall be filtered (return of |
dwd_phase_id |
phase_id of selected phase according to DWD (not BBCH!) definition. |
obs_start |
start of observation period (year). |
obs_end |
end of observation period (year, included). |
obs_min |
minimum number of available observations per station. |
A tidyverse tibble containing the filtered observation data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## set directory where data files shall be saved
my_dir <- "C:/Users/.../my_folder"
## download
# both data + meta files
dwd_download("RBU",1900,2019,"JMSM",my_dir)
## create directory to folder containing files to be processed
folder_dir <- paste0(my_dir, "/RBU") # modify abbreviation accordingly
## process and join all files in folder
rbu_data <- dwd_process(dir)
## filter time-series relevant data
rbu_data <- dwd_filter(rbu_data, dwd_phase_id=4, obs_start=1950, obs_end=2018, obs_min=25)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.