compute_ndvi
Compute Normalized Difference Vegetation Index (NDVI) from a raster by specifying red and near-infrared band indices and save the result as a GeoTIFF file.
Instructions
Compute NDVI (Normalized Difference Vegetation Index) and save to GeoTIFF.
Parameters:
source: input raster path.
red_band_index: index of red band (1-based).
nir_band_index: index of near-infrared band (1-based).
destination: output NDVI raster path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"red_band_index": "<red_band_index>",
"nir_band_index": "<nir_band_index>",
"destination": "<destination>"
},
"name": "compute_ndvi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| red_band_index | Yes | ||
| nir_band_index | Yes | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||