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

Description Usage Arguments See Also Examples

View source: R/download_vpfiles.R

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

1
2
3
4
5
6
7
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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)

bioRad documentation built on July 1, 2020, 10:18 p.m.