msavi2

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

Compute the Modified Soil Adjusted Vegetation Index of the input data. 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).

\[MSAVI2 = (2 * NIR + 1)^2 - 8 (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 MSAVI.