Learn R Programming

spatialEco (version 1.3-0)

download.daymet: Download DAYMET

Description

Batch download of daily gridded DAYMET climate data

Usage

download.daymet(
  years,
  tiles,
  data.type = "all",
  download.folder = getwd(),
  http = "https://thredds.daac.ornl.gov/thredds/fileServer/ornldaac/1328/tiles"
)

Arguments

years

Years to download (valid years 1980-2015)

tiles

Tile index value (see url for tile index grid in notes section)

data.type

Type of climate metric: 'all', 'vp', 'tmin', 'tmax', 'swe', 'srad', 'prcp', 'dayl'.

download.folder

local download directory, defaults to current working directory

http

option to change URL

Value

DAYMET netCDF format climate metrics

References

Thornton P.E., S.W. Running and M.A. White (1997) Generating surfaces of daily meteorological variables over large regions of complex terrain. Journal of Hydrology 190: 214-251.

Thornton, P.E. and S.W. Running (1999) An improved algorithm for estimating incident daily solar radiation from measurements of temperature, humidity, and precipitation. Agriculture and Forest Meteorology. 93:211-228.

Thornton, P.E., H. Hasenauer and M.A. White (2000) Simultaneous estimation of daily solar radiation and humidity from observed temperature and precipitation: An application over complex terrain in Austria. Agricultural and Forest Meteorology 104:255-271.

Examples

Run this code
# NOT RUN {
# Download 2009-2010 min and max temp for tiles 11737 and 11738  
 laramie.plains <- c(11737, 11738)
 my.years <- c(seq(2009,2010,1))
 download.daymet(years=my.years, tiles=laramie.plains, data.type=c('tmin','tmax')) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab