process_merra2 {amadeus} | R Documentation |
The process_merra2()
function imports and cleans raw atmospheric
composition data, returning a single SpatRaster
object.
process_merra2(
date = c("2018-01-01", "2018-01-01"),
variable = NULL,
path = NULL,
extent = NULL,
...
)
date |
character(2). length of 10. Format "YYYY-MM-DD". |
variable |
character(1). MERRA2 variable name(s). |
path |
character(1). Directory with downloaded netCDF (.nc4) 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,
pressure level, date, and hour. Pressure level values utilized for layer
names are taken directly from raw data and are not edited to retain
pressure level information.
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:
merra2 <- process_merra2(
date = c("2024-01-01", "2024-01-10"),
variable = "CPT",
path = "./data/inst1_2d_int_Nx"
)
## End(Not run)