nebula_color
Computes perceived color of nebular spectra across standard observers, returning XYZ, xy, u'v', CIELAB, sRGB hex, dominant wavelength, purity, observer deltas, and scotopic/photopic ratio.
Instructions
Perceived colour of a nebular spectrum under each observer: XYZ, xy, u'v', CIELAB, sRGB hex, dominant wavelength and purity, plus Δu'v' and ΔE2000 between observers and the scotopic/photopic ratio (rod sensitivity, relevant to visual observing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ebv | No | Foreground reddening E(B-V), CCM89 R_V=3.1. Omit for none. | |
| lines | No | Custom emission lines: {line key, label or wavelength in nm: relative flux}. | |
| fwhm_kms | No | Velocity FWHM for custom lines. | |
| template | No | Template key; omit to build a custom spectrum. | |
| observers | No | Standard observers to compare; default CIE 1931 2° and CIE 1964 10°. | |
| blackbody_k | No | Use a blackbody continuum (K). | |
| include_scotopic | No | ||
| synchrotron_alpha | No | Radio-to-optical spectral index α (S_ν ∝ ν^-α) for a synchrotron continuum. | |
| continuum_fraction | No | Fraction of visible energy in the continuum. | |
| apply_typical_reddening | No | Use the template's typical E(B-V) when ebv is omitted. |