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. Start date of file selection, in YYYY-MM-DD
format. Days will be ignored.
Character. End date of file selection, in YYYY-MM-DD
format. Days will be ignored.
Character (vector). 5-letter country/radar code(s) to include in file selection.
Character. Path to local directory where files should be downloaded and unzipped.
Logical. When TRUE
, re-download and overwrite previously
downloaded files of the same names.
NULL
. The function's primary effect is to download selected vertical profiles
files from ENRAM data repository to a specified local directory, and to provide
a message and a progress bar in the console indicating the download status. Message will show
a 404 error for files that are not available.
# \donttest{
# Download (and overwrite) data from radars "bejab" and "bewid".
download_vpfiles(
date_min = "2018-10-01",
date_max = "2018-10-31",
radars = c("bejab", "bewid"),
directory = tempdir(),
overwrite = TRUE
)
#> Downloading data from https://aloftdata.s3-eu-west-1.amazonaws.com
#> bejab_vpts_201810.csv.gz: successfully downloaded
#> bewid_vpts_201810.csv.gz: successfully downloaded
# }