I have a PostgreSQL database and my data-set include time-series of temperature for two stations. I would like to look their pattern's similarity in similar time sequences.
For station number 1:
+------------+------------------+
|temperature |dt |
+------------+------------------+
| 4.22 |9/15/2007 12:12:12|
| 5.11 |9/15/2007 13:14:16|
| 6.16 |9/15/2007 14:16:02|
| 6.01 |9/15/2007 15:18:23|
| 7.09 |9/15/2007 16:21:01|
+------------+------------------+
For station number 2:
+------------+------------------+
|temperature |dt |
+------------+------------------+
| 3.12 |9/15/2007 12:12:12|
| 4.15 |9/15/2007 13:14:16|
| 5.26 |9/15/2007 14:16:02|
| 6.15 |9/15/2007 15:18:23|
| 7.23 |9/15/2007 16:21:01|
+------------+------------------+
I would like to ignore true values and compare time-series with respect to the pattern. Moreover, 1 time slice by 1 time slice comparison is enough for my work. Please help me on discrete Fourier transformation or slope to compare the patterns.