alpha_opic
Calculate alpha-opic metrics (E/ELR/EDI) per CIE S 026 from SPD or channel data. Choose alpha (S, M, L, rhodopic, melanopic) or get all five.
Instructions
CIE S 026 alpha-opic E/ELR/EDI. Provide spd (exact-spectrum route) OR channels (binned route).
spd accepts a .spd file path, 2-column text, or a list of [wavelength, value].
alpha: 1=S,2=M,3=L,4=rhodopic,5=melanopic; omit for all five.
For the spd path, a scale_warning key is attached (CORE-3): non-None when the SPD looks
RELATIVE/normalized (peak <= 1.5) and the E/EDI values are shape indicators rather than
lux-scale, else None. The channel path is unaffected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spd | No | ||
| alpha | No | ||
| channels | No | ||
| channel_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||