Prepare MODIS land cover data for the SDA workflow.

MODIS_LC_prep(
  site_info,
  time_points,
  outdir = NULL,
  qc.filter = c("000", "001")
)

Arguments

site_info

Bety list of site info including site_id, lon, and lat.

time_points

A vector contains each time point within the start and end date.

outdir

Where the final CSV file will be stored.

qc.filter

values that will pass the QC check. the check will be skipped if it's NULL.

Value

A data frame containing MODIS land cover types for each site and each time step.

Details

This function enables the feature of grabbing pre-extracted MODIS LC CSV files such that any site that has records will be skipped (See Line 33). In more detail, we will be loading the previous `LC.csv` file, which contains previous extracted land cover records and trying to match that with current requests (location, time). Any requests that fail the match will be regarded as new extractions and combine with the previous `LC.csv` file.

Author

Dongchen Zhang