LICA - AstroCalc
This is free software created by Carlos Tapia to analyse spectra of lamps and to to derive parameters as CCT, melatonin supression index etc.
You can download the AstroCalc code from Carlos Tapia pages .
"LICA AstroCalc, a software to analyze the impact of artificial light: Extracting parameters from the spectra of street and indoor lamps"
C. Tapia & J. Zamorano (2018) Journal of Quantitative Spectroscopy and Radiative Transfer vol 214, 33-38 https://doi.org/10.1016/j.jqsrt.2018.04.022