Failure to calculate equation of time and declination of the sun

AI Thread Summary
The discussion centers on difficulties in calculating the equation of time and the declination of the sun. The user, Dwayne, reports unexpected values in his calculations, initially struggling with output discrepancies for both metrics. After implementing a degrees to radians converter, the declination results improved, but the equation of time became significantly inaccurate. Dwayne identified a mistake in converting the sun's mean longitude back to degrees, which led to further adjustments. Despite these corrections, he continues to face minor discrepancies in his results.
dwaynie
Messages
9
Reaction score
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:

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:
Astronomy news on Phys.org
Getting closer, still one month off though:

Code:
1) Failure:
test_equation_of_time(TestSolarCalculations):
Expected 2011-10-01 10:23:00 UTC, not 2011-10-28 17:02:35 UTC.

2) Failure:
test_suns_declination(TestSolarCalculations):
Expected -3.18, not 1.380604820284565.
 
When your computer calculates sine and cosine, is it calculating trig functions for an angle in radians or an angle in degrees?

(Excel, for example, has to have the angles converted into radians before calculating the sine or cosine.)
 
Cool! So I added a degrees to radians converter. But whereas my declination of the sun is getting really close, my equation of time has gotten way off by 10 months!

Code:
1) Failure:
test_equation_of_time(TestSolarCalculations):
Expected 2011-10-01 10:23:00 UTC, not 2011-01-06 01:08:11 UTC.

2) Failure:
test_suns_declination(TestSolarCalculations):
Expected -3.18, not -3.2087920449753007.

Any ideas? I hope my script remains readable.

https://gist.github.com/1278755"

Have you seen this by the way?

http://www.youtube.com/watch?v=y2R3FvS4xr4"

--Dwayne
 
Last edited by a moderator:
I realized I forgot to convert my sun's mean longitude back to degrees before calculating the equation of time. Now I'm back to being just a month off.

Code:
1) Failure:
test_equation_of_time(TestSolarCalculations):
Expected 2011-10-01 10:23:00 UTC, not 2011-10-28 10:59:31 UTC.

2) Failure:
test_suns_declination(TestSolarCalculations):
Expected -3.18, not -3.2087920449753007.

--Dwayne
 
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
Thread 'Could gamma-ray bursts have an intragalactic origin?'
This is indirectly evidenced by a map of the distribution of gamma-ray bursts in the night sky, made in the form of an elongated globe. And also the weakening of gamma radiation by the disk and the center of the Milky Way, which leads to anisotropy in the possibilities of observing gamma-ray bursts. My line of reasoning is as follows: 1. Gamma radiation should be absorbed to some extent by dust and other components of the interstellar medium. As a result, with an extragalactic origin, fewer...
This hypothesis of scientists about the origin of the mysterious signal WOW seems plausible only on a superficial examination. In fact, such a strong coherent radiation requires a powerful initiating factor, and the hydrogen atoms in the cloud themselves must be in an overexcited state in order to respond instantly. If the density of the initiating radiation is insufficient, then the atoms of the cloud will not receive it at once, some will receive it earlier, and some later. But then there...
Back
Top