download_vpfiles {bioRad}R Documentation

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.

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).
## 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)

## End(Not run)

[Package bioRad version 0.5.2 Index]