AppEEARS_proc: Filters and gap-fills downloaded MODIS AppEEARS data

View source: R/AppEEARS_proc.R

AppEEARS_procR Documentation

Filters and gap-fills downloaded MODIS AppEEARS data

Description

This function filters and gap-fills downloaded MODIS LAI data from the lpdaac AppEEARS download portal. There are several choices for processing this data:

  • The LAI data is processed using the phenofit R package https://github.com/kongdd/phenofit. A rough fit is done using a weighted Whittaker smoother and then curve fitting is done using an assymetric Gaussian function.

  • The LAI data is processed by using a Savitsky-Golay filter to remove noise and then missing data is interpolated with a spline.

  • The LAI data is processed by using a Savitsky-Golay filter to remove noise and then missing data is interpolated by fitting a double logistic curve using the greenbrown R package.

Usage

AppEEARS_proc(
  unpacked_LAI,
  fit_method,
  plot = FALSE,
  write_output = FALSE,
  save_dir = NULL
)

Arguments

unpacked_LAI

Output from the AppEEARS_unpack_QC function

fit_method

There are several options available from the phenofit package including AG", "Beck", "Elmore", "Gu", "Klos", "Zhang".

write_output

Binary indicating whether to write each individual driver file to disk. Default value is FALSE.

save_dir

Optional parameter when write_output = TRUE. The save directory for files to be placed in. For example, "C:/

Plot

Binary, where plot = TRUE generates a plot and plot = FALSE does not


psavoy/StreamLightUtils documentation built on April 5, 2022, 11:05 p.m.