Posted: 03:24am 28 Dec 2011 |
Copy link to clipboard |
Print this post |
|
TassyJim's Sunrise/Sunset algorithm was put into my precision time keeping algorithms. In all documents and even the source code I have acknowleged/credited TassyJim for his more accurate sunrise/sunset algorithm.
I have also run the program from TassyJim using the same parameters.
I get the following results Sunrise 5:48 azimuth 119.168
Sunset 20:10 azimuth 240.868
Both his/mine algorithms are the same???
Its really the matter of putting in the right variables.
I did several locations checks and they were within one minute of the calculated
Internet times.
Note: The date format must be in the European format Date/Month/Year.
Note: The PIC32 RTC feeds date to the algorithm for the calculation.
Note: My sunrise/sunset test algorithm is for Columbus, Ohio USA EDT +5 hrs.
Sunrise 18:46
Impossible? 6:46 in the evening?
Check this link out.
http://www.thebackshed.com/forum/forum_posts.asp?TID=4434&PN =3
Also, do the following "down under" test below.
=======================
TassyJim sunrise sunset
=======================
Sydney, Australia Lat: -33 deg 53' South Long: 151 deg 10 East
Posted: 13 December 2011 at 8:50am | IP Logged
latitude is negative for South and in decimal degrees.
Longitude is Positive for East and in decimal degrees. <----------
Decimal Latitude = -33.88333 Link A: (above)
Decimal Longittude = 151.16667 Link A: (above)
Time zone -11 Eastern summer time.
Actual Results
\> run
Lat-deg=? -33.88333
Long-deg=? 151.16667
Time zone-hrs=? -11
Year= ? 2011
Month= ? 12
Day= ? 18
Sunrise at 05:39, azimuth 119.16
Sunset at 20:04, azimuth 240.814
Internet calculated sunrise/sunset for the date = Sunrise 5:39 AM Sunset 8:04 PM - LinkB (above)
Edited by DuinoMiteMegaAn 2011-12-29 |