extract_band
Extracts a specific band from a multi-band raster using its 1-based index and saves it as a single-band GeoTIFF file.
Instructions
Extract a specific band from a multi-band raster and save it as a single-band GeoTIFF.
Parameters:
source: path or URL of the input raster.
band_index: index of the band to extract (1-based).
destination: path to save the extracted band raster.
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": {
"source": "<source>",
"band_index": "<band_index>",
"destination": "<destination>"
},
"name": "extract_band"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| band_index | Yes | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||