Learn R Programming

geeLite (version 1.0.2)

batch_drive_export: Perform a Single Drive Export for Multiple Geometry Chunks

Description

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.

Usage

batch_drive_export(
  sf_list,
  imgs,
  stat_fun,
  band,
  stat,
  scale,
  folder = ".geelite_tmp_drive",
  user = NULL,
  description = "geelite_export",
  verbose = FALSE
)

Value

(data.frame) A data frame containing extracted statistics with columns id, band, zonal_stat, and date-based values.

Arguments

sf_list

[mandatory] (list) A list of sf data.frames representing geometry chunks to be processed.

imgs

[mandatory] (ee$ImageCollection) The Earth Engine image collection to extract statistics from.

stat_fun

[mandatory] (ee$Reducer) The reducer function to apply to extract statistics.

band

[mandatory] (character) The band name from the image collection (e.g., "NDVI").

stat

[mandatory] (character) The statistical function name (e.g., "mean").

scale

[mandatory] (numeric) The spatial resolution in meters for 'reduceRegions'.

folder

[optional] (character) Name of the Google Drive folder where the export will be stored. Default is ".geelite_tmp_drive".

user

[optional] (character) If multiple rgee user profiles exist, specify the user profile directory.

description

[optional] (character) A custom description for the export task. Default is "geelite_export".

verbose

[optional] (logical) If TRUE, progress messages will be printed. Defaults to FALSE.