newhall_daymet_subset(): Used to create a subset of the DAYMET data corresponding to the extent of an input spatial object x.

newhall_daymet_subset(
  x,
  start_year = 1991,
  end_year = 2020,
  force = FALSE,
  DAYMET_PATH = tempdir()
)

Arguments

x

A SpatVector, SpatRaster, SpatExtent, or any other object type suitable to use with terra::ext()

start_year

integer. First year in range to download

end_year

integer. Last year in range to download.

force

logical. Force download when files exist in DAYMET_PATH? Default: FALSE

DAYMET_PATH

Default: file.path(newhall_data_dir("cache"), "DAYMET")

Value

A SpatRaster object

References

Thornton, M.M., R. Shrestha, Y. Wei, P.E. Thornton, S-C. Kao, and B.E. Wilson. 2022. Daymet: Monthly Climate Summaries on a 1-km Grid for North America, Version 4 R1. ORNL DAAC, Oak Ridge, Tennessee, USA. doi:10.3334/ORNLDAAC/2131