Is there an algorithm to calculate average temperature by latitude? I googled for a long time but could only find this (source):
T = To – a.sin^2λ
Where
T = Temperature
To = Average equatorial temperature
a = a constant
λ = latitude.
But I have several problems with this:
- There is no mentioning of a source
- It's not mentioned what a is or what its value is
- Is the dot between a and sin ("a.sin") meant to be a multiplication sign?
So I was wondering if someone can explain if this algorithm is correct or if there is a better one, or none at all.
I found a confirmation for a basic relation of latitude and temperature here:
I could use a lookup table (but I would have to generate it by some algorithm anyway), but I'd rather have a realtime calculation for certain reasons.
So does anyone know if the algorithm above is correct, and can explain what the dot means?
I would like to implement this in C#, but any language with a C-like syntax would be fine for me.
Bonus question: Any chance to cover precipitation in a similar way? Thanks in advance!