process_modis_merge {amadeus} | R Documentation |
Process MODIS .hdf files
Description
Get mosaicked or merged raster from multiple MODIS hdf files.
Usage
process_modis_merge(
path = NULL,
date = NULL,
subdataset = NULL,
fun_agg = "mean",
...
)
Arguments
path |
character. Full list of hdf file paths.
preferably a recursive search result from |
date |
character(1). date to query. Should be in
|
subdataset |
character(1). subdataset names to extract.
Should conform to regular expression. See |
fun_agg |
Function name or custom function to aggregate overlapping
cell values. See |
... |
For internal use. |
Value
a SpatRaster
object
Note
Curvilinear products (i.e., swaths) will not be accepted.
MODIS products downloaded by functions in amadeus
,
MODISTools,
and luna are accepted.
Author(s)
Insang Song
See Also
Examples
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
## Not run:
mod09ga_merge <- process_modis_merge(
path =
list.files("./data", pattern = "MOD09GA.", full.names = TRUE),
date = "2024-01-01",
subdataset = "sur_refl_b01_1",
fun_agg = "mean"
)
## End(Not run)
[Package amadeus version 1.1.6 Index]