From a mathematical point of view, what would be the most correct way to calculate the correlation, Pearson, of two temperature measure devices that are not synchronized.
The first one is giving the temperature each hour. It's external so relatively stable.
The second device is giving an internal temperature with some chaotical measure points (sometimes 10 points in 15 minutes, after 1 hours with nothing). We can assume here the temperature might change quickly.
It's a bit more tricky than it looks like (at least to me), thanks for any help, ideas or hints
Well, you do not tell much about the scope you aim to, the quantity of data you have, etc. Talking in very general terms, before maths I would put physics.
1st point is: on physical grounds, do you expect the internal temperature to follow, with a time lag, the external one ?
2nd: is the lag much greater, or much shorter than the observation period (1h) ?
3rd: is the "chaos" due to what? might it have a long period component or not ?
Depending on the "evaluations" above you might proceed with a plain Pearson correlation, or with a time crossrelation analysis, or with a Fourier decomposition and filtering, etc.
addendum as per your comment
"How to calculate the correlation of two measures that are not taken at the same time, one with more points than the other, with holes."
So, given the situation that you describe, I would approach the problem as follows:
Take the irregular sequence, and interpolate. Since temperature is supposed not to vary abruptely, a spline or trigonometric interpolation should be appropriated. Which to choose, on which sub-intervals to apply, and up to which degree, is to be deducted from the actual data available (and from the physical background..). You get a y(t).
Now you can take the more regular sequence ($x(n \tau)$), and generate the list of 2-D points $\left(x(n\tau),\,y(n\tau) \right)$. On this it makes (some) sense to calculate the Pearson correlation.
If the $x$ also has some holes, you can interpolate it as well, to get a $x(t)$.
And once you have $x(t)$ and $y(t)$ you may perform (if you wish) a discrete or continuous time cross-relation, which is practically a correlation computation repeated for different values of time lag (for $\Delta t =0$ you get the correlation before): so it might be in any case more rich of information.