weighted_band_sum
Calculate a weighted sum of raster bands using specified weights to generate a single-band output, enabling precise geospatial data analysis. Input multi-band raster, define weights, and save the result to a destination file.
Instructions
Compute a weighted sum of all bands in a raster using specified weights.
Parameters:
- source: Path to the input multi-band raster file.
- weights: List of weights (must match number of bands and sum to 1).
- destination: Path to save the output single-band raster.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destination | Yes | ||
source | Yes | ||
weights | Yes |
Input Schema (JSON Schema)
{
"properties": {
"destination": {
"title": "Destination",
"type": "string"
},
"source": {
"title": "Source",
"type": "string"
},
"weights": {
"items": {
"type": "number"
},
"title": "Weights",
"type": "array"
}
},
"required": [
"source",
"weights",
"destination"
],
"title": "weighted_band_sumArguments",
"type": "object"
}