home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!ukma!seismo!hal!newton!stevem
- From: stevem@newton.CSS.GOV (Steve Masters)
- Newsgroups: comp.sources.wanted
- Subject: Re: Need algorithm for calculating Sun/Moon Angle based on Date/Time
- Message-ID: <109@newton.CSS.GOV>
- Date: 18 Dec 92 18:13:58 GMT
- References: <1992Dec16.144608.20377@sparky.imd.sterling.com>
- Organization: ENSCO, Inc., Melbourne, FL
- Lines: 28
-
- In article <1992Dec16.144608.20377@sparky.imd.sterling.com> dwb@IMD.Sterling.COM writes:
- >
- > I am in desperate need of an algorithm which given and latitude
- >and longitude along with a Date and Time will calculate the Sun/Moon
- >azimuth and elevation. The phase of the Moon would also be usefull but
- >is not required.
-
- The best reference for the algorithms you seek is Jean Meuss' "Astronomical
- Algorithms" published by Wilmann-Bell. This book has all of the tools
- you need to build your own programs to compute these and other similar
- astronomical events. If you need "relatively good" accuracy (say, within
- a degree, but not within seconds of arc), this reference is good.
- The equations are stated clearly and the author calls your attention
- to potential computational problems. The book cost about $20 or so
- (a bargain at twice the price :) ).
-
- You will find that there is not a single (or even a couple) equation(s)
- that will fulfill your needs. You will need to build a series of routines
- to find the current sun/moon position in the sky. If you don't mind
- time, angle, and trig conversions, its really not too hard.
-
- There are probably "low-precision" formulas that will give reasonable
- estimates under most circumstances. If you haven't yet, you might
- consider posting your request to the 'sci.astro' group.
-
- Steve Masters stevem@osiris.CSS.GOV
- ENSCO, Inc.
- Melbourne, FL 32940
-