reclassify_raster
Reclassify raster values by mapping old cell values to new ones using a dictionary, for custom recoding in geospatial analysis.
Instructions
Reclassify raster values using a mapping dictionary. Args: raster_path: Path to the input raster. reclass_map: Dictionary mapping old values to new values (e.g., {1: 10, 2: 20}). output_path: Path to save the reclassified raster. Returns: Dictionary with status and message.
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>",
"reclass_map": "<reclass_map>",
"output_path": "<output_path>"
},
"name": "reclassify_raster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raster_path | Yes | ||
| reclass_map | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||