process_modis_merge | R Documentation |
Get mosaicked or merged raster from multiple MODIS hdf files.
process_modis_merge(
path = NULL,
date = NULL,
subdataset = NULL,
fun_agg = "mean",
...
)
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. |
a SpatRaster
object
Curvilinear products (i.e., swaths) will not be accepted.
MODIS products downloaded by functions in amadeus
,
MODISTools,
and luna are accepted.
Insang Song
download_data
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.