Design Complex Light Regimes
Check that the intended irradiances are acheivable by the lights
Check formatting of the heliospectra matrices
Check that the 9th white channel is set to 0
Format regime_matrix for csv output that Heliospectra lights can parse
Turn Heliospectra into disco lights
Format regime_matrix for json output that Heliospectra lights can pars...
Add white (5700k) LED to intensities matricies after calculations
Internal function to make a calibration dataframe from user-supplied v...
Internal function to check matrix for NAs
Internal function. Find the intensities corresponding to the closest i...
Internal function. Find the closest wavelengths to the stated peaks
Internal function. Takes vector of timepoints (POSICxt format) and con...
Remove empty white (5700k) LED from calculations
Tidy intensities generated by algorithm so that lights can accept them
Create a regime (matrix) to program lights to achieve intended irradia...
Use non-linear least squares to interpolate intensities
Read a heliospectra script (json format) into a matrix.
Use a system of linear equations to calculate intensities
Write the schedule to file that Heliospectra can parse
A system for accurately designing complex light regimes using LEDs. Takes calibration data and user-defined target irradiances and it tells you what intensities to use. For more details see Vong et al. (2025) <doi:10.1101/2025.06.06.658293>.