local_chunk_extract | R Documentation |
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)
sf_chunk |
[mandatory] (sf) An sf data frame containing geometry. |
imgs |
[mandatory] (ee$ImageCollection) The Earth Engine image collection to extract statistics from. |
dates |
[mandatory] (character) A vector of date strings corresponding to images in the collection. |
band |
[mandatory] (character) The name of the band to extract. |
stat |
[mandatory] (character) The statistical function to apply (e.g., "mean"). |
stat_fun |
[mandatory] (ee$Reducer) The Earth Engine reducer function. |
scale |
[mandatory] (numeric) The spatial resolution in meters for reduce operations. |
(data.frame) A data frame containing extracted statistics with
columns id
, band
, zonal_stat
, and date-based values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.