Prepare Landtrendr AGB data for the SDA workflow.

Landtrendr_AGB_prep(
  site_info,
  start_date,
  end_date,
  time_points,
  AGB_indir,
  outdir = NULL,
  export_csv = TRUE,
  allow_download = FALSE,
  buffer = NULL,
  skip_buffer = TRUE
)

Arguments

site_info

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

start_date

Start date of SDA workflow.

end_date

End date of SDA workflow.

time_points

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

AGB_indir

Where the Landtrendr AGB data can be accessed.

outdir

Where the final CSV file will be stored.

export_csv

Decide if we want to export the CSV file.

allow_download

If data is missing, should we download the missing data?

buffer

buffer area to calculate the min var of AGB data.

skip_buffer

flag to skip calculating min var based on buffer area.

Value

A data frame containing AGB median and sd for each site and each time step.

Author

Dongchen Zhang