Batches multiple geometry chunks into fewer ee_table_to_drive
tasks,
reducing overhead and leveraging Google Earth Engine's parallel processing.
extract_drive_stats(
sf_chunks,
imgs,
band,
stat,
stat_fun,
scale,
folder = ".geelite_tmp_drive",
user = NULL,
pb,
pb_step
)
(data.frame) A merged data frame containing extracted statistics from all Drive exports.
[mandatory] (list) A list of sf data frames representing geometry chunks.
[mandatory] (ee$ImageCollection) The Earth Engine image collection to extract statistics from.
[mandatory] (character) The band name (e.g., "NDVI").
[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 reduceRegions.
[optional] (character) Name of the Google Drive folder where
exports will be stored. Defaults to ".geelite_tmp_drive"
.
[optional] (character) GEE user profile name, if applicable.
[mandatory] (Progress bar object) A progress bar instance from
progress::progress_bar
or similar package. Used to track task
progress.
[mandatory] (numeric) The step size for updating the progress bar.