Take the 2-minute tour ×
Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. It's 100% free, no registration required.

Summary: What "well-known" and short parametrized mathematical function describes daily and hourly temperature for a given location?

If you look at the mean daily temperature graph for a given location, it looks like a sine wave with a period of one year.

Similarly, the hourly temperature for a given day for a given location also looks like a sine wave with a period of one day.

However, closer inspection (Fourier analysis) shows that they're not. There are fairly strong components of frequency 2/year and 3/year for the daily temperature, and the hourly temperature also has strong non-single-period terms.

Is there a parametrized function that reasonably describes the daily mean temperature and (a separate function) the hourly mean temperature? The parameters would be location-based.

I realize I can keep taking more Fourier terms to increase accuracy, but I was hoping for something more elegant. For example, maybe the graph is a parametrized version of sin^2(x) or some other "well-known" function.

share|improve this question
1  
Interesting question, although I'm not sure whether it really falls under the scope of physics. It's basically just mathematical modeling, which physicists do a lot, but so do meteorologists and the thing you're modeling is a meteorological phenomenon. (I'm not going to close it, though, unless the community at large seems to think it's inappropriate. As I said, it's interesting, and I don't feel like the argument for closing is terribly strong.) –  David Z Dec 16 '10 at 2:09
    
I'd be happy to move it to statistics or another appropriate site if enough people dislike it here. –  barrycarter Dec 16 '10 at 2:37
1  
These harmonics are typical for a saw-tooth signal. Try to fit your function with a sum of a sine and a saw-tooth functions, both of the same period. I would not include higher frequencies in the function since they have no physical meaning. –  gigacyan Dec 16 '10 at 8:28
    
What physical meaning does the sawtooth have (just out of curiousity). I'll try your suggestion and report results. –  barrycarter Dec 16 '10 at 15:23
    
@barrycarter: I think what you should really be looking for is a meteorology site. Unfortunately, there isn't a meteorology Stack Exchange yet, but one has been proposed. At this point, I'd recommend that you search the web for an existing meteorology forum and try asking your question there. (You might want to also post it as an example question on the proposal at Area 51, I think it would be recognized as a good question there.) –  David Z Dec 16 '10 at 22:44
show 2 more comments

2 Answers

There's no simple and surely no analytic function describing the daily cycles of the temperature. It's not hard to see why: while you could add some higher harmonics etc., the actual process clearly contains many unsmooth points. During the day, when the Sun is visible, the temperature typically increases, and the rate of increase is maximum around the noon. The maximum temperature during the day is reached around 2 p.m. in average.

However, after the sunset, the Sun's warming effect goes pretty much strictly to zero. So the second derivative of the temperature is discontinuous after the sunset. Moreover, the time of the sunrise and sunset depend on the seasons and latitude. You can't get any universal answer for what you're looking for, and even a function that would be OK would have to depend on several parameters and contain unsmooth functions such as the absolute value.

share|improve this answer
add comment

Even a very simple model, say an infinetly thick conductive slab in space so that you only have to deal with radiative effects (solar absorption, and thermal heat loss) gets messy, the solar input is zero at night but follows a curve during the day (easily computable via geometry), but solar input at sunrise and sunset will be discontuous in the first time derivative, which should introduce high order harmonics. Also the Stefan Boltzmann equation is nonlinear in temperature. Then add an atmosphere, it heats the surface until the thermal structure supports convection, so different transport mechanisms are important during different times of day. Then add clouds and variable weather systems....

If you just want to reasonably reproduce the curves, I'd use only a couple of annual and daily harmonics, otherwise you are probably going to overfit the data. But the statisticians would be the best people to consult about it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.