- from
character. List of paths to MODIS/VIIRS files.
- locs
sf/SpatVector object. Unique locs where covariates
will be calculated.
- locs_id
character(1). Site identifier. Default is "site_id"
- radius
numeric. Radii to calculate covariates.
Default is c(0, 1000, 10000, 50000)
.
- preprocess
function. Function to handle HDF files.
- name_covariates
character. Name header of covariates.
e.g., "MOD_NDVIF_0_"
.
The calculated covariate names will have a form of
"{name_covariates}{zero-padded buffer radius in meters}
",
e.g., 'MOD_NDVIF_0_50000' where 50 km radius circular buffer
was used to calculate mean NDVI value.
- subdataset
Indices, names, or search patterns for subdatasets.
Find detail usage of the argument in notes.
- fun_summary
character or function. Function to summarize
extracted raster values.
- package_list_add
character. A vector with package names to load
these in each thread. Note that sf
, terra
, exactextractr
,
doParallel
, parallelly
and dplyr
are the default packages to be
loaded.
- export_list_add
character. A vector with object names to export
to each thread. It should be minimized to spare memory.
- max_cells
integer(1). Maximum number of cells to be read at once.
Higher values will expedite processing, but will increase memory usage.
Maximum possible value is 2^31 - 1
.
See exactextractr::exact_extract
for details.
- geom
FALSE/"sf"/"terra".. Should the function return with geometry?
Default is FALSE
, options with geometry are "sf" or "terra". The
coordinate reference system of the sf
or SpatVector
is that of from.
- scale
character(1). Scale expression to be applied to the raw values.
It is crucial that users review the technical documentatio of the MODIS product
they are using to ensure proper scale.
An example for the MOD11A1 product's LST_Day_1km variable (land surface temperature)
would be scale = "* 0.02"
.
Default is NULL
, which applies no scale.
- ...
Arguments passed to preprocess
.