# Compute spectral index

Compute normalized difference spectral indices (NDVI, NDWI, NBR) from Sentinel-2 or Landsat time series. Produces temporal aggregates (mean, max, min, stddev, range) aligned to the terrain analysis grid.

Inputs:

* Satellite Imagery Package - ZIP file from [Search & download Planetary Computer](https://toolbox.nextgis.com/t/planetary_search) containing Sentinel-2 or Landsat band GeoTIFFs and manifest.json with time_series;
* Spectral Index. Type of normalized difference index to compute:
  - NDVI (Vegetation) (NDVI);
  - NDWI (Water) (NDWI);
  - NBR (Burn Ratio) (NBR);
* Generate series - tick to generate series rasters (max, min, std etc.) if multiple inputs are provided.

Outputs:

* ZIP archive with spectral index aggregates, statistics, and manifest;
* Human-readable summary of the spectral index results;
* JSON manifest string describing all outputs.

Launch the tool: [https://toolbox.nextgis.com/t/spectral_indices](https://toolbox.nextgis.com/t/spectral_indices)

Example:

![image](docs_toolbox/source/_static/spectral_indices_input_en.png)![image](docs_toolbox/source/_static/spectral_indices_result_en.png)

**Try the tool in action**

1. Click on the **Demo** button above the tool form. The fields are filled in with demo values.
2. Click on the **Run** button.
