mco_get_smap.Rd
This is a wrapper for smapr::find_smap()
and smapr::download_smap()
that crops the resulting data to a ten kilometer buffer around the
state of Montana and allows the user to specify "latest" for the desired
dates
, returning the most recent SMAP product.
mco_get_smap( id = "SPL4SMGP", group = "Geophysical_Data", name = "sm_rootzone", dates = "latest", raw_dir = NULL )
id | A character vector of SMAP dataset to extract.
|
---|---|
group | The SMAP dataset group name to extract. |
name | The SMAP dataset variable name to extract. |
dates | An object of class Date or a character string formatted as
%Y-%m-%d (e.g., "2016-04-01") which specifies the date(s) to search.
To search for one specific date, this can be a Date object of length one. To
search over a time interval, it can be a multi-element object of class Date
such as produced by |
raw_dir | A directory in which to download the raw SMAP data. If missing, data are downloaded to a temporary directory. |
A raster brick of the desired SMAP dataset.
if (FALSE) { mco_get_smap() }