NARRdownloadNetCDF: Downloads NARR NetCDF files

View source: R/NARRdownloadNetCDF.R

NARRdownloadNetCDFR Documentation

Downloads NARR NetCDF files

Description

Downloads NARR surface level NetCDF files for a specified variable for a specified time step and range of years.

Usage

NARRdownloadNetCDF(
  interval = "daily",
  startYear = 1979,
  endYear = 1979,
  destination = ".",
  variable = "acpcp",
  quiet = FALSE
)

Arguments

interval

Optional. Time interval of NARR data. Can be '3h' or 'daily', which is the default.

startYear

Optional. The first year to download. Default is 1979.

endYear

Optional. The last year to download. Default is 1979.

destination

Optional. The destination directory for the downloaded files. The default is the current directory.

variable

Optional. The variable to be downloaded. Acceptable values are given at https://www.esrl.noaa.gov/psd/data/gridded/data.narr.monolevel.html. Some of the more popular variables are acpcp, (accumulated precipitation), air.2m (air temperature at 2m), rhum.2m (Relative Humidity at 2m), uwnd.10m (U-wind at 10 m), and vwnd.10m(V-wind at 10 m. Default is acpcp.

quiet

Optional. Suppresses display of messages, except for errors. Because this function can be very slow to execute, the default value is FALSE, to provide information on the downloading.

Value

Writes the specified files to the destination directory. If successful, returns TRUE. If unsuccessful, returns FALSE.

Author(s)

Kevin Shook and Bastien Ferland-Raymond

Examples

## Not run: 
NARRdownloadNetCDF('3h', 1979, 2015)
## End(Not run)

CentreForHydrology/Reanalysis documentation built on Nov. 23, 2022, 2:57 a.m.