focal_statistics
Compute focal (moving window) statistics on a raster to analyze local neighborhood values. Select from mean, min, max, or standard deviation and specify an odd window size.
Instructions
Compute focal (moving window) statistics on a raster. Args: raster_path: Path to the input raster. statistic: Statistic to compute ('mean', 'min', 'max', 'std'). size: Window size (odd integer). output_path: Optional path to save the result. Returns: Dictionary with status, message, and output path if saved.
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": {
"raster_path": "<raster_path>",
"statistic": "<statistic>"
},
"name": "focal_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raster_path | Yes | ||
| statistic | Yes | ||
| size | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||