mco_get_gridmet_normals: A wrapper around mco_get_gridmet to download GridMET normal...

View source: R/mco_get_gridmet_normals.R

mco_get_gridmet_normalsR Documentation

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.

Description

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.

Usage

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

## Not run: 
test <- mco_get_gridmet_normals()

## End(Not run)

mt-climate-office/mcor documentation built on March 27, 2024, 6:30 p.m.