scale_to_nd: Center on 0 and/or scale raster layer to [-1, 1] range

Description Usage Arguments Value

Description

This is a helper function to scales values of a raster to the same range of normalized difference indexes (NDVI, EVI, ecc). "Normalizing" rasters may be useful to enable an optimal confrontation of Rao'index values resulting from get_rao_index function among heterogenous rasters.

Usage

1
scale_to_nd(raster_stack, scale = TRUE)

Arguments

raster_stack

a Raster* object (RasterLayer, RasterStack, RasterBrick)

scale

a boolean indicating whether to scale values to [-1, 1] on top of centering on 0, or not.

Value

a Raster* object scaled to [-1, 1] values


mbask/spacetimerao documentation built on May 17, 2019, 11:08 a.m.