Extract covariate values from SpatRaster object passed from
process_*().
calc_worker(
dataset,
from,
locs_vector,
locs_df,
fun,
variable = 1,
time,
time_type = c("date", "hour", "year", "yearmonth", "timeless"),
radius,
level = NULL,
max_cells = 1e+08,
...
)a data.frame object
character(1). Dataset name.
SpatRaster(1). Cleaned SpatRaster object.
SpatVector(1). Cleaned SpatVector object passed
from calc_prepare_locs(). Contains location point/polygon values.
data.frame(1). Cleaned data.frame object passed from
calc_prepare_locs(). Contains location identifiers.
character(1). Summary function. Passed to terra::extract().
integer. Position within the layer name containing the variable name/code.
integer. Position within the layer name containing the time value(s).
character(1). Type of time observation. One of "date", "hour", "year", "yearmonth", "timeless".
integer(1). Buffer distance (m). Passed from
calc_prepare_locs(). Used in column naming.
integer. Position within the layer name containing the vertical
pressure level value (if applicable). Default = NULL.
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.
Placeholders.