normalized_difference

eolab.georastertools.processing.algo.normalized_difference(bands: ndarray) ndarray[source]

Compute the Normalized Difference Vegetation Index The coefficient ranges from -1 to 1 in each pixel.

The function considers the bands of the input data in the following order : Red, NIR (Near Infra-Red).

\[NDVI = \frac{NIR - RED}{NIR + RED}\]
Parameters:

input_data (np.ndarray) – Numpy array of 3 dimensions (number of bands, number of lines, number of columns) with number of bands > 1.

Returns:

Numpy array of the size (number of lines, number of columns) containing the computed TNDVI.