View source: R/calculate_covariates_auxiliary.R
calc_worker | R Documentation |
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,
...
)
dataset |
character(1). Dataset name. |
from |
SpatRaster(1). Cleaned |
locs_vector |
SpatVector(1). Cleaned |
locs_df |
data.frame(1). Cleaned |
fun |
character(1). Summary function. Passed to |
variable |
integer. Position within the layer name containing the variable name/code. |
time |
integer. Position within the layer name containing the time value(s). |
time_type |
character(1). Type of time observation. One of "date", "hour", "year", "yearmonth", "timeless". |
radius |
integer(1). Buffer distance (m). Passed from
|
level |
integer. Position within the layer name containing the vertical
pressure level value (if applicable). Default = |
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 |
... |
Placeholders. |
a data.frame
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.