Recent content by dwaynie

  1. D

    Failure to calculate equation of time and declination of the sun

    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. 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...
  2. D

    Failure to calculate equation of time and declination of the sun

    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! 1) Failure: test_equation_of_time(TestSolarCalculations): Expected 2011-10-01 10:23:00 UTC, not 2011-01-06 01:08:11 UTC. 2)...
  3. D

    Failure to calculate equation of time and declination of the sun

    Getting closer, still one month off though: 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.
  4. D

    Failure to calculate equation of time and declination of the sun

    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: 1) Failure...
  5. D

    Need help understanding U.S. Naval Observatory's messed up algorithm

    Cool - thanks man! As for example calculations, I ended up using this online calculator: http://www.esrl.noaa.gov/gmd/grad/solcalc/ --Dwayne
  6. D

    Need help understanding U.S. Naval Observatory's messed up algorithm

    Cool - thanks man! As for example calculations, I ended up using this online calculator: http://www.esrl.noaa.gov/gmd/grad/solcalc/ --Dwayne
  7. D

    Need help understanding U.S. Naval Observatory's messed up algorithm

    Much obliged! Do you know of any example calculations of the equation of time and the declination of the sun? I got to test my code with some real results to make sure it's working right. Also, is it possible to make this algorithm even more accurate? Maybe somebody's running some sort of live...
  8. D

    Need help understanding U.S. Naval Observatory's messed up algorithm

    Man! I can't believe you did it. Thanks a lot! I was able to piece together this: https://gist.github.com/1278755" I hope it's all correct? The unladen swallow part wasn't me though :) It was my Japanese friend, much respect to him! And to you. You did something Navy.mil couldn't. That's...
  9. D

    Need help understanding U.S. Naval Observatory's messed up algorithm

    Hello! I'm trying to calculate the equation of time and the declination of the sun based on the U.S. Naval Observatory's algorithm: http://aa.usno.navy.mil/faq/docs/SunApprox.php" But not the U.S. Naval Obseravtory, or any of the astronomers I've tried to contact, has been eager to help me...
Back
Top