compute_index
Compute NDVI, NDWI, or NBR statistics for a Sentinel-2 L2A scene over a bounding box, with cloud masking and optional map or GeoTIFF output.
Instructions
Compute NDVI, NDWI or NBR on one Sentinel-2 L2A scene, reading only the bbox window.
Clouds, shadows and no-data are masked with the SCL layer. Returns min, max, mean, std
and the share of valid pixels, plus file paths when `save` is set. No raster data is
returned. Area is limited (default 100 km²).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | [west, south, east, north] in WGS84 degrees, e.g. [12.47, 41.9, 12.5, 41.92] | |
| save | No | Also write the index map to the output folder | none |
| index | Yes | Spectral index: ndvi (vegetation), ndwi (water), nbr (burn). | |
| catalog | No | STAC catalog. Defaults to the server's configured catalog. | |
| item_id | Yes | Sentinel-2 L2A scene id from search_scenes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| note | No | ||
| index | Yes | ||
| stats | Yes | ||
| item_id | Yes | ||
| outputs | No | format -> file path | |
| datetime | Yes | ||
| resolution_m | No |