spd_to_channels
Averages a spectral power distribution into 3- or 9-channel bins. Accepts spd as file path, two-column text, or list of wavelength-value pairs, with channel_type selecting 3-channel (RGB) or 9-channel binning.
Instructions
Average a spectral power distribution into the 3- or 9-channel bins.
spd: a .spd file path, 2-column text, or list of [wavelength, value]. channel_type: 0=3ch [r,g,b], 1=9ch [b1..r3].
The str|list annotation is load-bearing: an untyped arg makes FastMCP stringify a list-of-pairs
over the wire, which parse_spd then mis-reads as 2-column text (DEF-1/DEF-2 class).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spd | Yes | ||
| channel_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||