Execute the whole workflow

mf_get_data(
  collection,
  variables,
  roi,
  time_range,
  path = tempfile("modisfast_"),
  earthdata_username,
  earthdata_password,
  parallel = FALSE,
  verbose = TRUE,
  import = TRUE,
  ...
)

Arguments

collection

string. mandatory. Collection of interest (see details of mf_get_url).

variables

string vector. optional. Variables to retrieve for the collection of interest. If not specified (default) all available variables will be extracted (see details of mf_get_url).

roi

object of class sf. mandatory. Area of region of interest. Must be a Simple feature collection with geometry type POLYGON, composed of one or several rows (i.e. one or several ROIs), and with at least two columns: 'id' (an identifier for the roi) and 'geom' (the geometry).

time_range

date(s) / POSIXlt of interest . mandatory. Single date/datetime or time frame : vector with start and end dates/times (see details).

path

string. Target folder for the data to download. Default : temporary folder.

earthdata_username

EarthData username

earthdata_password

EarthData username

parallel

boolean. Parallelize the download ? Default to FALSE

verbose

boolean. optional. Verbose (default TRUE)

import

boolean. Import the data as a SpatRast object ? defaut TRUE

...

Further arguments to be passed to mf_get_url, mf_download_data or mf_import_data

Value

a terra::SpatRast object