focal_statistics
Calculate moving window statistics like mean, min, max, or std on raster data. Define window size and optionally save results for geospatial analysis using GIS MCP Server.
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.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
output_path | No | ||
raster_path | Yes | ||
size | No | ||
statistic | Yes |
Input Schema (JSON Schema)
{
"properties": {
"output_path": {
"default": null,
"title": "Output Path",
"type": "string"
},
"raster_path": {
"title": "Raster Path",
"type": "string"
},
"size": {
"default": 3,
"title": "Size",
"type": "integer"
},
"statistic": {
"title": "Statistic",
"type": "string"
}
},
"required": [
"raster_path",
"statistic"
],
"title": "focal_statisticsArguments",
"type": "object"
}