A wrapper around mco_get_gridmet to download GridMET normal dataset (1981--2010). Here, the normals are defined as the daily mean values for the 1981--2010 period.

mco_get_gridmet_normals(
  x = mt_state %>% sf::st_buffer(10000),
  elements = c("precipitation_amount", "daily_minimum_temperature",
    "daily_maximum_temperature"),
  out_dir = tempdir(),
  p = c(0, 0.025, 0.25, 0.5, 0.75, 0.975, 1),
  overwrite = FALSE,
  ...
)

Arguments

x

An object of class sf.

elements

Gridmet variables to download.

out_dir

The directory in which to write the normals.

p

A vector of percentiles to calculate.

overwrite

Overwrite output if it exists?

...

Additional arguments passed on to mco_get_gridmet.

Value

A raster brick of the desired MACA V2 dataset normals.

Examples

if (FALSE) { test <- mco_get_gridmet_normals() }