reconstruct_spectrum
Reconstructs a 401-value 380-780nm spectrum from sky and sun channel sets, supporting faithful or reference methods, and returns divergence from flat or neutral sun models.
Instructions
Reconstruct a 401-value 380-780 nm @1 nm per-nm spectrum from sky+sun channel sets (spec §5.2).
method: 'faithful' (flat §9.3a step-expansion + neutral sun -> reproduces the legacy 2.0 method) or 'reference' (reference-SPD-shaped sky + air-mass colored direct sun; re-integrates to the channel bin totals). sun_spectral: 'colored' (air-mass solar SPD by solar_zenith) | 'neutral' (flat). dseries_sky=True reconstructs a per-timestep CIE D-series sky from sky_cct. sun_spd: optional 401-value physical sun reference that overrides the air-mass template. Returns the spectrum + the flat-vs-reference and neutral-vs-colored-sun divergence (always surfaced).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | reference | |
| sky_cct | No | ||
| sky_spd | No | ||
| sun_spd | No | ||
| dseries_sky | No | ||
| channel_type | No | ||
| sky_channels | Yes | ||
| solar_zenith | No | ||
| sun_channels | Yes | ||
| sun_spectral | No | colored |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||