reclassify_raster
Reclassifies raster values using a mapping dictionary, transforming specific input values into desired output values. Saves the modified raster to a specified path for enhanced 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.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
output_path | Yes | ||
raster_path | Yes | ||
reclass_map | Yes |
Input Schema (JSON Schema)
{
"properties": {
"output_path": {
"title": "Output Path",
"type": "string"
},
"raster_path": {
"title": "Raster Path",
"type": "string"
},
"reclass_map": {
"additionalProperties": true,
"title": "Reclass Map",
"type": "object"
}
},
"required": [
"raster_path",
"reclass_map",
"output_path"
],
"title": "reclassify_rasterArguments",
"type": "object"
}