Learn R Programming

bioRad (version 0.5.1)

download_vpfiles: Download vertical profile (vp) files from the ENRAM data repository

Description

Download and unzip a selection of vertical profile (vp) files from the ENRAM data repository, where these are stored as monthly zips per radar.

Usage

download_vpfiles(
  date_min,
  date_max,
  radars,
  directory = ".",
  overwrite = FALSE
)

Arguments

date_min

character. YYYY-MM-DD start date of file selection. Days will be ignored.

date_max

character. YYYY-MM-DD end date of file selection. Days will be ignored.

radars

character (vector). 5-letter country/radar code(s) (e.g. "bejab") of radars to include in file selection.

directory

character. Path to local directory where files should be downloaded and unzipped.

overwrite

logical. TRUE for re-downloading and overwriting previously downloaded files of the same names.

Examples

Run this code
# NOT RUN {
# Download data from radars "bejab" and "bewid", even if previously
# downloaded (overwrite = TRUE). Will successfully download 2016-10 files,
# but show 404 error for 2016-11 files (as these are not available).
# }
# NOT RUN {
dir.create("~/bioRad_tmp_files")
download_vpfiles(
  date_min = "2016-10-01",
  date_max = "2016-11-30",
  radar = c("bejab", "bewid"),
  directory = "~/bioRad_tmp_files",
  overwrite = TRUE
)
# clean up:
unlink("~/bioRad_tmp_files", recursive = T)
# }

Run the code above in your browser using DataLab