vp
) files from the ENRAM data repositoryR/download_vpfiles.R
download_vpfiles.Rd
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
)
character. YYYY-MM-DD start date of file selection. Days will be ignored.
character. YYYY-MM-DD end date of file selection. Days will be ignored.
character (vector). 5-letter country/radar code(s) (e.g. "bejab") of radars to include in file selection.
character. Path to local directory where files should be downloaded and unzipped.
logical. TRUE for re-downloading and overwriting previously downloaded files of the same names.
select_vpfiles
# 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)
# }