Description Usage Arguments Details Examples
View source: R/downloadMosaic.R
The downloadMosaic
function downloads mosaic NetCDF files from the Daymet THREDDS server.
1 2 | downloadMosaic(years, variables, destinationDirectory,
retryFailedDownloads = TRUE)
|
years |
A numeric vector specifying the years to download |
variables |
A character vector specifying the variables to download |
destinationDirectory |
Character string of the file path to the target folder for downloaded files |
retryFailedDownloads |
logical; If TRUE the function will check (by opening) to see if the netCDF files are corrupt. |
The function will download all files for the variables and years specified. The THREDDS server URL is hard-coded into the function and will need to be updated whenever the URL changes.
1 2 3 4 | downloadMosaic(years = 1980:1990,
variables = c("tmin", "tmax", "prcp"),
destinationDirectory = "C:/USER/Data/Daymet",
retryFailedDownloads = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.