dwaynie
- 9
- 0
Calculating the equation of time and the declination of the sun
Hi,
I'm trying to calculate the equation of time and the declination of the sun in the prettiest way possible:
https://gist.github.com/1278755"
But right now I'm getting some unexpected values:
Can anybody see what's wrong?
--Dwayne
Hi,
I'm trying to calculate the equation of time and the declination of the sun in the prettiest way possible:
https://gist.github.com/1278755"
But right now I'm getting some unexpected values:
Code:
1) Failure:
test_suns_declination(TestSolarCalculations):
Expected -3.18, not -0.8773192601265396.
2) Failure:
test_equation_of_time(TestSolarCalculations):
Expected 2011-10-01 10:23:00 +0100, not 301.80925318673167.
Can anybody see what's wrong?
--Dwayne
Last edited by a moderator: