Computes statistical summaries for a given spatial feature (sf_chunk
)
from an Earth Engine ee$ImageCollection
over a specified date range.
This function extracts values for a specific band and applies a chosen
reducer.
local_chunk_extract(sf_chunk, imgs, dates, band, stat, stat_fun, scale)
(data.frame) A data frame containing extracted statistics with
columns id
, band
, zonal_stat
, and date-based values.
[mandatory] (sf) An sf data frame containing geometry.
[mandatory] (ee$ImageCollection) The Earth Engine image collection to extract statistics from.
[mandatory] (character) A vector of date strings corresponding to images in the collection.
[mandatory] (character) The name of the band to extract.
[mandatory] (character) The statistical function to apply (e.g., "mean").
[mandatory] (ee$Reducer) The Earth Engine reducer function.
[mandatory] (numeric) The spatial resolution in meters for reduce operations.