compute_statistics
Compute pixel statistics (min, max, mean, std, histogram) for a STAC item using band math expressions and optional AOI clipping.
Instructions
Compute pixel statistics (min/max/mean/std/histogram) for a STAC item.
expression is band math over asset names, e.g. "(nir-red)/(nir+red)" for NDVI on Sentinel-2 (Earth Search asset names). Optionally clip to an AOI GeoJSON Feature. Backed by TiTiler /stac/statistics.
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": {
"catalog": "<catalog>",
"collection_id": "<collection_id>",
"item_id": "<item_id>"
},
"name": "compute_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | No | ||
| catalog | Yes | ||
| item_id | Yes | ||
| expression | No | ||
| aoi_geojson | No | ||
| collection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||