irg: IRG

View source: R/irg.R

irgR Documentation

IRG

Description

Wrapper function for one step IRG calculation. Only defaults.

Usage

irg(DT)

Arguments

DT

data.table of NDVI time series

Details

data.table must have columns:

  • 'id' - individual identifier

  • 'yr' - year of observation

  • 'NDVI' - NDVI value

  • 'DayOfYear' - day of year/julian day of observation

  • 'SummaryQA' - summary quality value for each sample (provided by MODIS)

Value

Extended data.table 'irg' column of instantaneous rate of green-up calculated for each day of the year, for each individual and year.

See Also

Other irg: calc_irg()

Examples

# Load data.table
library(data.table)

# Read in example data
ndvi <- fread(system.file("extdata", "sampled-ndvi-MODIS-MOD13Q1.csv", package = "irg"))

# Calculate IRG for each day of the year and individual
out <- irg(ndvi)

robitalec/irg documentation built on Sept. 19, 2023, 9:33 p.m.