Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

http://bodmas.org/kepler/sun.html

Works out for us... first, these formulas use a different "days" value... they want the number of days before 2000 which is the -877 number that you got before. Whereas our previous calculations use the number of days since the epoch which is 2000 days or something like that. So, I've added a couple of variables up near the top... one is TheDate which you put the entire yyyy-MM-dd hh:mm:ss, we then use that to calculate DaysBefore

Once we have that, it is relatively easy to plug values we've already calculated into the formulas for creating LST and HA, which then helps us calculate ALT and AZ.

Down at the bottom, I've hardcoded the observer_lat and the observer_lon but those are values that you'd probably get from a textbox on the screen, or from a GPS... if you get them from the screen, though, you have to insure that you end up with the lat/lon formatted as decimals with West longitude expressed as a negative number or South Latitude expressed as a negative number.

Note, if their result values are slightly different than our results, it is because they round the DaysBefore to -877.04167 whereas when we calculate it is something like -877.041666666666679

If you want to get their exact numbers, then go to where we are calculating LST and uncomment the line with the rounded value and comment out the line that uses DaysBefore.

Open in new window