The different sets of data (time, THz-TDS, temperature, images) had to be linked together prior to further analysis. Temperature data was acquired each second, an image every 2 seconds, and THz-TDS data every 20 seconds. The temperature assigned to each terahertz spectrum was calculated as the average temperature during its acquisition. This way, terahertz data could be plotted as a function of time as well as temperature and linked to images via their time stamps for visual clarification.