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

View source: R/download_vpfiles.R

download_vpfilesR 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. Start date of file selection, in YYYY-MM-DD format. Days will be ignored.

date_max

Character. End date of file selection, in YYYY-MM-DD format. Days will be ignored.

radars

Character (vector). 5-letter country/radar code(s) to include in file selection.

directory

Character. Path to local directory where files should be downloaded and unzipped.

overwrite

Logical. When TRUE, re-download and overwrite previously downloaded files of the same names.

Value

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.

See Also

  • select_vpfiles()

  • read_vpfiles()

Examples


# Download (and overwrite) data from radars "bejab" and "bewid".
download_vpfiles(
  date_min = "2016-10-01",
  date_max = "2016-10-31",
  radars = c("bejab", "bewid"),
  directory = tempdir(),
  overwrite = TRUE
)


bioRad documentation built on Oct. 20, 2023, 5:06 p.m.