Modelling temperature effects using time series data