write_raster
Write a numpy array to a raster file using metadata from a reference raster. Provide array values, reference raster path, output path, and optional data type.
Instructions
Write a numpy array to a raster file using metadata from a reference raster. Args: array: 2D or 3D list (or numpy array) of raster values. reference_raster: Path to a raster whose metadata will be copied. output_path: Path to save the new raster. dtype: Optional data type (e.g., 'float32', 'uint8'). 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": {
"array": "<array>",
"reference_raster": "<reference_raster>",
"output_path": "<output_path>"
},
"name": "write_raster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | ||
| reference_raster | Yes | ||
| output_path | Yes | ||
| dtype | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||