Exports multiple geometry chunks to Google Drive in a single batch task. The function processes spatial data using Google Earth Engine (GEE) and exports results in CSV format.
batch_drive_export(
sf_list,
imgs,
stat_fun,
band,
stat,
scale,
folder = ".geelite_tmp_drive",
user = NULL,
description = "geelite_export",
verbose = FALSE
)
(data.frame) A data frame containing extracted statistics with
columns id
, band
, zonal_stat
, and date-based values.
[mandatory] (list) A list of sf data.frames representing geometry chunks to be processed.
[mandatory] (ee$ImageCollection) The Earth Engine image collection to extract statistics from.
[mandatory] (ee$Reducer) The reducer function to apply to extract statistics.
[mandatory] (character) The band name from the image collection (e.g., "NDVI").
[mandatory] (character) The statistical function name (e.g., "mean").
[mandatory] (numeric) The spatial resolution in meters for 'reduceRegions'.
[optional] (character) Name of the Google Drive folder
where the export will be stored. Default is ".geelite_tmp_drive"
.
[optional] (character) If multiple rgee user profiles exist, specify the user profile directory.
[optional] (character) A custom description for the
export task. Default is "geelite_export"
.
[optional] (logical) If TRUE
, progress messages will
be printed. Defaults to FALSE
.