process_gridmet | R Documentation |
The process_gridmet()
function imports and cleans raw gridded surface meteorological
data, returning a single SpatRaster
object.
process_gridmet(
date = c("2023-09-01", "2023-09-10"),
variable = NULL,
path = NULL,
extent = NULL,
...
)
date |
character(1 or 2). Date (1) or start and end dates (2). Format YYYY-MM-DD (ex. September 1, 2023 = "2023-09-01"). |
variable |
character(1). Variable name or acronym code. See gridMET Generate Wget File for variable names and acronym codes. (Note: variable "Burning Index" has code "bi" and variable "Energy Release Component" has code "erc"). |
path |
character(1). Directory with downloaded netCDF (.nc) files. |
extent |
numeric(4) or SpatExtent giving the extent of the raster
if |
... |
Placeholders. |
a SpatRaster
object
Layer names of the returned SpatRaster
object contain the variable acronym,
and date.
Mitchell Manware
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
## Not run:
gridmet <- process_gridmet(
date = c("2023-01-01", "2023-01-10"),
variable = "Precipitation",
path = "./data/pr"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.