download_daymet_tiles: Function to batch download gridded 'Daymet' data tiles

View source: R/download_daymet_tiles.r

download_daymet_tilesR Documentation

Function to batch download gridded 'Daymet' data tiles

Description

Function to batch download gridded 'Daymet' data tiles

Usage

download_daymet_tiles(
  location = c(18.9103, -114.6109),
  tiles,
  start = 1980,
  end = 1980,
  path = tempdir(),
  param = "ALL",
  silent = FALSE,
  force = FALSE
)

Arguments

location

location of a point c(lat, lon) or a bounding box defined by a top left and bottom-right coordinates c(lat, lon, lat, lon)

tiles

which tiles to download, overrides geographic constraints

start

start of the range of years over which to download data

end

end of the range of years over which to download data

path

where should the downloaded tiles be stored (default = tempdir())

param

climate variable you want to download vapour pressure (vp), minimum and maximum temperature (tmin,tmax), snow water equivalent (swe), solar radiation (srad), precipitation (prcp) , day length (dayl). The default setting is ALL, this will download all the previously mentioned climate variables.

silent

suppress the verbose output

force

TRUE or FALSE (default), override the conservative end year setting

Value

downloads netCDF tiles as defined by the Daymet tile grid

Examples


## Not run: 
Download a single tile of minimum temperature
download_daymet_tiles(location = c(18.9103, -114.6109),
                      start = 1980,
                      end = 1980,
                      param = "tmin")
                      
# For other practical examples consult the included
# vignette. 

## End(Not run)

daymetr documentation built on Sept. 15, 2023, 5:07 p.m.