write_raster
Convert numpy arrays to raster files by copying geospatial metadata from reference rasters for consistent GIS data output.
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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | ||
| reference_raster | Yes | ||
| output_path | Yes | ||
| dtype | No |