download.thredds
Usage
download_thredds(
site_info,
dates,
varid,
dir_url,
data_url,
run_parallel = FALSE,
outdir = NULL
)Arguments
- site_info
list containing site_id, site_name, lat, lon, time_zone. Derived from BETY using a PEcAn .xml settings file with site information. Can use the get_site_info function to generate this list.
- dates
vector of start and end date for dataset as YYYYmmdd, YYYY-mm-dd, YYYYjjj, or date object.
- varid
character vector of shorthand variable name. i.e. LAI
- dir_url
catalog url of data from ncei.noaa.gov/thredds website
- data_url
opendap url of data from ncei.noaa.gov/thredds website
- run_parallel
Logical. Download and extract files in parallel?
- outdir
file location to place output
Examples
if (FALSE) { # \dontrun{
results <- download_thredds(
site_info = site_info,
dates = c("19950201", "19961215"),
varid = "LAI",
dir_url = "https://www.ncei.noaa.gov/thredds/catalog/cdr/lai/files",
data_url = "https://www.ncei.noaa.gov/thredds/dodsC/cdr/lai/files",
run_parallel = TRUE,
outdir = NULL)
} # }