downloadMosaic: Download netCDF mosaic files.

Description Usage Arguments Details Examples

View source: R/downloadMosaic.R

Description

The downloadMosaic function downloads mosaic NetCDF files from the Daymet THREDDS server.

Usage

1
2
downloadMosaic(years, variables, destinationDirectory,
  retryFailedDownloads = TRUE)

Arguments

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.

Details

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.

Examples

1
2
3
4
downloadMosaic(years                = 1980:1990,
               variables            = c("tmin", "tmax", "prcp"),
               destinationDirectory = "C:/USER/Data/Daymet",
               retryFailedDownloads = TRUE)

Conte-Ecology/zonalDaymet documentation built on Aug. 11, 2021, 12:52 a.m.