home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / misc / 29771 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  2.5 KB

  1. Path: sparky!uunet!utcsri!ois.db.toronto.edu!panos
  2. Newsgroups: comp.os.os2.misc
  3. From: panos@db.toronto.edu (Panos Economopoulos)
  4. Subject: Re: PMGlobe (astronomical calculations)
  5. Message-ID: <92Sep10.215716edt.42040@ois.db.toronto.edu>
  6. Organization: Department of Computer Science, University of Toronto
  7. References: <1992Sep10.131650.24408@unlinfo.unl.edu>
  8. Date: 11 Sep 92 01:57:24 GMT
  9. Lines: 56
  10.  
  11. rlosee@unlinfo.unl.edu (Robert Losee) writes:
  12.  
  13. >My question is this; is the code available for the program?  It seems 
  14. >to be written at IBM, I think by the guy who wrote REXX (my favorite 
  15. >language) Cowlisha (sp?).  I could learn two things from it:
  16.  
  17. >1) the calculations needed to project sunlight on the earth and then 
  18. >project this onto a 2 dimensional screen
  19.  
  20. There is an X-Windows program named ``sunclock'' which does the
  21. same thing. The only difference is that the earth is not projected 
  22. on the screen as a sphere but is mapped onto a square (the whole
  23. window). The program itself can be found, most probably, in
  24. any archive site that carries the group   ``comp.sources.x''
  25.  
  26. The following excerpt is from the manual page. The reference by Meeus
  27. plus any book on graphics (with information about transformations,
  28. projections etc) should be a good starting point.
  29.  
  30. ....
  31.  
  32. HOW IT WORKS
  33.      ``sunclock'' calculates the position of the Sun using the  algo-
  34.      rithm in chapter 18 of:
  35.  
  36.      "Astronomical Formulae for Calculators" by Jean  Meeus,  Third
  37.      Edition, Richmond: Willmann-Bell, 1985.
  38.  
  39.      and Mercator projects the illuminated area onto  map  image.
  40.      The  Sun's  position  is  calculated to better than one arc-
  41.      second in accuracy.
  42.  
  43.  
  44. AUTHOR
  45.      John Mackin, Basser Department of Computer Science,  Univer-
  46.      sity   of  Sydney,  Sydney,  Australia;  <john@cs.su.oz.AU>.
  47.      Based on a Suntools program by John Walker, Autodesk,  Inc.;
  48.      <kelvin@acad.uu.NET>.
  49.  
  50. ..............
  51.  
  52. >If anyone knows if and where I can get the code I'd be very 
  53. >appreciative.  Thanks.
  54.  
  55. >--
  56. >*-------------------------------------------------------------------------*
  57. >Robert D. Losee                 BITNET: ucas402@unlvm
  58. >University of Nebraska          Internet: rlosee@unlinfo.unl.edu
  59. >326 Admin Bldg                  FAX: (402) 472-5280
  60.  
  61.  
  62. -------------------------------------------------------------------------
  63. Panos Economopoulos --         panos@csri.toronto.edu      (ARPA/CSNet)
  64. University of Toronto          {uunet, ...}!utcsri!panos   (UUCP)
  65.                                panos@csri.utoronto       (Bitnet)
  66.                                panos@csri.toronto.cdn      (CDNnet/EAN/X.400)
  67.