T&D: better data structure
Currently temperature data is read as a pair of arrays: one for timestamps, one for temperature. Better alignment/filtering could be enforced by using an array of pairs [(time, temp), (time, temp)...] (or 2-d array).
That could also make the file combination loop cleaner.
Maybe using a complex data structure (dataframe?) could make things easier?