scale_ndvi: Scale NDVI

View source: R/scale.R

scale_ndviR Documentation

Scale NDVI

Description

Using filtered NDVI time series, scale it to 0-1.

Usage

scale_ndvi(DT)

Arguments

DT

data.table of NDVI time series

Details

This functions expects the input DT is the output of previous four filtering steps, or filter_ndvi.

Value

data.table with appended 'scaled' column of 0-1 scaled NDVI.

See Also

Other scale: scale_doy()

Examples

# Load data.table
library(data.table)

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

# Filter and scale NDVI time series
filter_ndvi(ndvi)
scale_ndvi(ndvi)

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