home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sources / wanted / 5436 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

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