/

NDVI

Calculates NDVI on imagery with RGB and NIR bands.


Description

A processing block that computes the Normalized Difference Vegetation Index (NDVI).

See this block on the marketplace.

How it works

NDVI is used as an indicator for vegetation health, and it's computed via the following formula:

NDVI=NIRRedNIR+RedNDVI=\frac{NIR - Red}{NIR + Red}

Input bands are of data type unsigned integer, while the output is of type float. All metadata elements provided by the input dataset as properties are propagated to the output tiles.

ParameterOverview
output_original_rasterboolean / required
If true, the output of the original reflectance raster file is supplied ain addition to the NDVI image. The default value is false.

Compatibility

Data blocks

The Pléiades and SPOT data blocks need to first be converted to GeoTIFF with the processing blocks DIMAP → GeoTIFF Conversion or Pansharpening.

Catalog datasets

Use in combination with Processing from Storage.

Example

An example using the data block Pléiades Reflectance (Download) and the processing block Pansharpening Pléiades/SPOT:

{
  "oneatlas-pleiades-fullscene:1": {
    "ids": null,
    "bbox": [112.92237013578416, 0.8438737493332328, 112.93480049818756, 0.8715453455591357],
    "time": null,
    "limit": 1,
    "order_ids": null,
    "time_series": null
  },
  "pansharpen:1": {
    "method": "SFIM",
    "include_pan": false
  },
  "ndvi:1": {
    "output_original_raster": false
  }
}

Capabilities

Input

raster
up42_standard
bands
[
  "red",
  "nir"
]
dtype
{
  "or": [
    "uint16",
    "uint8"
  ]
}
formatGTiff
sensor
{
  "or": [
    "Pleiades",
    "SPOT",
    "Hexagon",
    "Sentinel2",
    "Landsat8",
    "PNEO"
  ]
}

Output

To know more please check the block capabilities specifications.