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

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.

See also

select_vpfiles

Examples

# 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).
# \dontrun{
dir.create("~/bioRad_tmp_files")
#> Warning: '/Users/amd427/bioRad_tmp_files' already exists
download_vpfiles(
  date_min = "2016-10-01",
  date_max = "2016-11-30",
  radars = c("bejab", "bewid"),
  directory = "~/bioRad_tmp_files",
  overwrite = TRUE
)
#> Downloading data from https://lw-enram.s3-eu-west-1.amazonaws.com
#> bejab201610.zip: successfully downloaded
#> bewid201610.zip: successfully downloaded
#> bejab201611.zip: http error 404
#> bewid201611.zip: http error 404
# clean up:
unlink("~/bioRad_tmp_files", recursive = T)
# }