home *** CD-ROM | disk | FTP | other *** search
/ Hobbies & Leisure - Plus Bible Study & Games / HobbiesLeisurePlusBibleStudyAndGamesMapleMedia1995.disc1of1.iso / sunpow11 / sunpo.doc next >
Text File  |  1992-03-01  |  20KB  |  383 lines

  1.         ******* WARNING ***** WARNING ***** WARNING ***** WARNING *********
  2.         *                                                                 *
  3.         * THE AUTHOR OF THIS SOFTWARE DOES NOT PROVIDE ANY WARRANTY WHAT- *
  4.         * SOEVER! YOU USE IT OR TRY IT ENTIRELY AND STRICTLY AT YOUR OWN  *
  5.         * RISK. THE AUTHOR EXPRESSLY DISCLAIMS ANY LIABILITY FOR DAMAGE   *
  6.         * TO YOUR COMPUTER, FILES OR ASSOCIATED ELECTRO-MECHANICAL        *
  7.         * DEVICES. NOR IS THERE ANY GUARANTEE AS TO THE ACCURACY OF THE   *
  8.         * RESULTS OR AS TO THE FITNESS OF THE SUNPO PROGRAMS FOR ANY PAR- *
  9.         * TICULAR PURPOSE.                                                *
  10.         *                                                                 *
  11.         *    REMEMBER, YOU USE IT OR TRY IT SOLELY AT YOUR OWN RISK!      *
  12.         *                                                                 *
  13.         ******* WARNING ***** WARNING ***** WARNING ***** WARNING *********
  14.  
  15.         1.0 GENERAL INFORMATION
  16.         
  17.         SUNPO will calculate the azimuth and elevation of the sun as a
  18.         function of the date and time of day at any place on the earth
  19.         (with the possible exception of the poles and precisely where the
  20.         0 or 180 degree meridians cross the equator). It will also compute
  21.         the approximate times of sunrise and sunset and the azimuth of the
  22.         sun at those times. SUNPO does not take careful account of the fact
  23.         that a year isn't composed of exactly 365 twentyfour hour days, so
  24.         you may expect errors of a few degrees over a leap year cycle.
  25.  
  26.         Why would you want to know such things? Use your imagination!
  27.         Maybe you would like to know where the sun sets on June 21 (the
  28.         approximate date of the summer solstice in the northern hemi-
  29.         sphere) so that you can figure out where to plant a tree to put
  30.         the shade just where you want it on the longest day of the year.
  31.         Maybe you want to decide how big to make some awnings so that they
  32.         will block the sun's direct rays (or pass them) in some particular
  33.         season. SUNPO will tell you what you need to know about the sun's
  34.         position if you can figure out a reason to know it!
  35.  
  36.         SUNPO's results are displayed as a table showing the local and GMT
  37.         time in a 24 hour "military" format (for example, 6:34 PM would
  38.         appear as 1834). Azimuth angles are measured clockwise from north
  39.         (so, due south corresponds to an azimuth angle of 180 degrees).
  40.         Elevations are measured from a level horizon (straight up is a 90
  41.         degree elevation angle). Results may be saved in an ascii formatted
  42.         file for later printing if desired. There is no internal print 
  43.         command (at least not yet).
  44.  
  45.         In order to actually run SUNPO you need to know your geographical
  46.         longitude and latitude in at least degrees and minutes. You also
  47.         need to know or figure out a "time zone" value for your location.
  48.         Data for a few cities may be found below.
  49.  
  50.         SUNPO is distributed as Shareware. That means you may try it for a
  51.         reasonable period (say three weeks) at no cost, but that you should
  52.         register it and pay the registration fee if you use it after the
  53.         trial period. SUNPO is available as both a Windows (3.0) appli-
  54.         cation and as a DOS executable program.
  55.  
  56.         The Windows version was written using Borland International's
  57.         Turbo Pascal for Windows. The DOS version was compiled using
  58.         Borland's Turbo Pascal version 4.0.
  59.         
  60.         Windows and MS-DOS are trademarks of Microsoft Corporation.
  61.         Turbo Pascal is a trademark of Borland International,Inc.
  62.                
  63.         2.0 INSATLLATION INFORMATION
  64.  
  65.         2.1 STANDARD FILES
  66.         
  67.         The SUNPO files included in the authorized archive are:
  68.  
  69.              SUNPOW11.EXE - Windows 3.0 executable application file.
  70.              SUNPO.INI    - Initialization file for SUNPOW10.EXE.
  71.              SUNPO.DOC (this file)
  72.              SUNPOD10.EXE - DOS executable program file.
  73.  
  74.         Antivirus valiation data obtained using the McAfee Associates'
  75.         VALIDATE program are:
  76.  
  77.         SUNPOW11.EXE: Check Method 1  1D25; Check Method 2: 19AF
  78.         SUNPOD10.EXE: Check Method 1: 4013; Check Method 2: 10BF
  79.  
  80.         2.1 INSTALLATION HINTS
  81.         
  82.         SUNPO is so simple that no installation program is provided.
  83.         To install it about all you need to recover the files from the
  84.         SUNPOW11.ZIP (which you must have already done if you are reading
  85.         this), copy them to an appropriate directory, and "run" them.
  86.         
  87.         2.1.1 DOS Version
  88.         
  89.         If you want to run from a fixed disc, then copy SUNPOD10.EXE to
  90.         any directory you choose. Start it in the usual fashion for DOS
  91.         programs either from the fixed disc or a diskette. The DOS version
  92.         is interactive and queries you for needed data as it runs. However
  93.         it might be helpful to read some of the comments later in this
  94.         file.
  95.         
  96.         2.1.2 Windows Version
  97.  
  98.         The Windows version may also be run from either a diskette or a 
  99.         fixed disc. 
  100.         
  101.            A) Copy the SUNPOW11.EXE file to any handy directory. To run
  102.               it use the Program Manager File Run menu options and
  103.               type in the complete path name. Or add it to a program
  104.               group. See your Windows manual for details.
  105.  
  106.            B) As an option, copy the SUNPO.INI file to your base
  107.               Windows directory (the one where WIN.INI is found) and
  108.               edit it to replace the sample data with that appropriate
  109.               to your geographical location (also see discussion below).
  110.               Doing that will make it unnecessary for you to re-enter your
  111.               location data each time you want to run the Windows version
  112.               of SUNPO (SUNPO.INI is ignored by the DOS version of SUNPO).
  113.               
  114.               If you use SUNPO.INI, be sure to set the "TIMZON" parameter.
  115.               Your time zone is the number of hours you need to add to
  116.               Greenwich Mean Time (or more properly UTC) to get your local
  117.               24-hour time. West longitudes have negative (or zero) TIMZON
  118.               values (they are "earlier"), while East longitudes have
  119.               positive values. If you do not enter a value, one will be
  120.               calculated from your longitude, but it may not be correct
  121.               since local time zones don't adhere very closely to the way
  122.               the earth rotates.
  123.  
  124.         3.0 RUNNING SUNPO
  125.         
  126.         3.1 DOS Version
  127.         
  128.         Once you have started execution of SUNPOD10.EXE, you will be
  129.         queried for various information by the program and just enter
  130.         the needed data when asked to do so. Before starting, however, you
  131.         will need to calculate your latitude and longitude as fractional
  132.         numbers. Use a formula like:
  133.         
  134.             longitude = # of degrees + ( # of minutes / 60).
  135.             
  136.         Make longitude positive if your longitude is "East" and negative
  137.         if it is "West". Likewise, make yor latitude negative if you are
  138.         south of the equator.In addition, you will be asked to enter a
  139.         value for your "time zone". See Section 5.0 below for some hints.
  140.         
  141.         You will be asked if you want to store the results in a file.
  142.         If your response is a letter Y (which means YES) then you will
  143.         be asked to enter a file name. The file name can include a DOS
  144.         "path" if you like. If you choose the "file output" option you
  145.         will not see anything on the screen until the calculation and
  146.         file writing are complete. If you opt for screen output, then
  147.         you will, of course, see the data as they are generated.
  148.   
  149.         You will also be asked to enter the month (1-12), day (1-??),
  150.         a "start" hour, a "stop" hour and am "increment" in MINUTES.
  151.         The "start" hour is the hour at which the first calculation of
  152.         solar position is made. The next one will be calculated at a
  153.         time which is later by the "increment" you enter. The last result
  154.         is calculated at the "Stop" hour.
  155.        
  156.         At the end of each run you are asked whether you want to restart.
  157.         Answer with a Y or an N as you prefer.
  158.         
  159.         3.2 WINDOWS Version
  160.         
  161.         When you run the Windows version you must somehow enter most
  162.         of the same data required by the DOS version, but the manner
  163.         of entry conforms more to Windows style than the "stream" style
  164.         of the DOS version.
  165.         
  166.         When you start SUNPO you will be greeted by a more or less blank
  167.         screen. There is no "cursor". There is a standard menu bar at the
  168.         top of the screen. The menu choices are as follows:
  169.         
  170.         File  Control Data  Run  Sunrise  Reset Graph  Help
  171.        
  172.         3.2.1 The "File" Menu Item
  173.         
  174.         Clicking on the "File" option brings up a popup menu composed of
  175.         three items: "New", "SaveAs" and "Exit". Selecting "new" simply
  176.         clears any previous results from the screen and memory and resets
  177.         some in ternal flags. The File "SaveAs" option is chosen to initi-
  178.         ate saving of the current results into an ascii file. It works
  179.         pretty much as you would expect. The "Exit" option terminates SUNPO.
  180.          
  181.         3.2.2 The "Control Data" Menu Item
  182.         
  183.         This item also brings up a popup menu with two sub-choices:
  184.         "Observer Position" and "Time of Day".
  185.         
  186.         If you have not copied the SUNPO.INI file to your Windows directory
  187.         you should click on the "Observer Position" choice and enter your
  188.         geographical data, and a time zone value in the spots provided.
  189.         (See section 2.1.2 B (above) for a few comments on time zones, and
  190.         Section 5.0 (below) for sample data.)
  191.  
  192.         If you have made a change in the observer position or time zone
  193.         data, then when you exit from  the dialog via the "Ok" button you
  194.         will be asked if you wish to save the changes in the SUNPO.INI
  195.         file. If you answer "yes" then the file will be updated.
  196.         
  197.         You will need to execute the "Time of Day" dialog to set the month
  198.         and day of the month for which you want solar position data. Within
  199.         that dialog you also set the hours for the first and last times of
  200.         day and the increment in minutes for the calculations. All the
  201.         input numbers are expected to be integers with no  decimals, etc.
  202.         Some, but not all, parameters are checked before a run, so if you
  203.         enter any oddball values (like ~23 degrees), all bets are off.
  204.         
  205.         3.2.3 The "Run" Menu Item
  206.         
  207.         Choosing the "Run" menu item is the action which actually causes
  208.         something to happen to produce data to be displayed in the blank
  209.         window. There will probably be something of a delay before you
  210.         see any results because SUNPO does all calculations before it
  211.         displays any results.
  212.         
  213.         3.2.4 The "Sunrise" Menu Item
  214.         
  215.         This item initiates iterative calculations which attempt to find
  216.         the APPROXIMATE times at which the sun crosses the horizon (or
  217.         for which the elevation angle is zero). These calculations may
  218.         also take a while if you do not have a fast computer. Those times
  219.         and the approximate solar azimuth at those times are then shown in
  220.         a popup window. The results should be moderately valid if you live
  221.         in an area which is pretty "flat". If there are any trees, houses,
  222.         mountains in the direction of sunrise or sunset the accuracy may
  223.         not be very high.
  224.         
  225.         3.2.5 The "Reset" Menu Item
  226.         
  227.         Choosing the "Reset" menu item erases the "worksheet" and prepares
  228.         some internal flags for "new" calculations. "Reset" does not, 
  229.         however, alter the observer or time of day data. "Reset" performs
  230.         the same actions as the "File New" choice (see above).
  231.         
  232.         3.2.6 The "Graph" Menu Item
  233.  
  234.         Select this item by mouse click or Alt+G to get simple graphs of
  235.         elevation and azimuth angles (in degrees) vs local time (hours).
  236.         They are displayed in an independent window. Negative elevation angles
  237.         will not appear on the graph. Instead of using the 0 to 360 degree
  238.         range, azimuth angles are shifted into the - 180 to + 180 range. After
  239.         shifting, an azimuth angle of 0 is still North and + 90 is still East,
  240.         but West becomes - 90. Both - 180 and + 180 mean due South.
  241.  
  242.         In order to avoid the fairly complicated task of deciding exactly
  243.         which data are to be plotted if you have changed observer position
  244.         ot times, etc, only the FIRST "case" will be used for graphs. By
  245.         "first case" is meant the data produced by the first "Run" made
  246.         after initial startup of SUNPO, or just after a "Reset" or "File
  247.         New" option selection.
  248.  
  249.         Use thσ Alt + Spacebar keys and then select the CLOSE popup menu
  250.         item to close the graph window if you don't havσ a mouse.
  251.        
  252.         3.2.7 The "Help" Menu Item
  253.         
  254.         This one brings up another popup menu from which you can select
  255.         the display of a few terse descriptions of various SUNPO related
  256.         items. It does not (as yet) bring up a full-fledged Windows style
  257.         help window.
  258.         
  259.  
  260.         3.2.8 Last But Not Least
  261.         
  262.         You can begin execution of SUNPOW11.EXE by clicking the Windows
  263.         Program Manager's "File" menu item and then the "Run" item from
  264.         the popup menu. Then you simply enter the complete path name needed
  265.         to locate SUNPOW11.EXE. If you placed SUNPOW11.EXE in your base
  266.         Windows directory you can omit the directory portion of the file
  267.         name. SUNPO has no command line parameters.
  268.  
  269.         If you added SUNPOW11 to a program group, then just start it in the
  270.         usual fashion.
  271.  
  272.        *********************** WARNING No. 2 ******************************
  273.        *                                                                  *
  274.        * The behavior of SUNPOW11.EXE in the REAL mode of Windows has     *
  275.        * been a little unpredictable: It seems to run just fine on a      *
  276.        * Zenith Z386/16 (circa 1987) machine, but the author has found    *
  277.        * that it may cause "hang up" of an IBM PS-2/70 (16 MHz) machine,  *
  278.        * or it may run fine. Which thing happens appears to depend on the *
  279.        * contents of the CONFIG.SYS file. It has not been tested on a     *
  280.        * machine using 8088, 8086 or V20 CPU's.                           *
  281.        *                                                                  *
  282.        * No "hang ups" have been encountered in the STANDARD or ENHANCED  *
  283.        * modes.                                                           *
  284.        *********************** WARNING No. 2 ******************************
  285.  
  286.  
  287.         4.0 OTHER IMPORTANT INFORMATION
  288.  
  289.         SUNPO is distributed as Shareware. If you use it after some
  290.         reasonable trial period, please send the author $ 5.00 for his
  291.         trouble. Its the right thing to do! That will also make you feel
  292.         better and will get you on a mailing list for information about
  293.         any fixup versions or future enhanced versions (such as perhaps
  294.         one that will find lunar position data as well).
  295.  
  296.         You may not incorporate SUNPO into any commercial package without
  297.         express written approval of the author, but you may feel free to
  298.         give away unmodified copies of the original files (all or none,
  299.         however) or post copies on any BBS which will accept them AND which
  300.         makes no charges other than those made on the basis of connect time.
  301.  
  302.         Send your $5 as well as any constructive comments or suggestions to:
  303.  
  304.         A. Miller
  305.         P.O.Box 3512
  306.         Las Cruces, NM 88003-3512
  307.  
  308.         (internet: miller@nmsu.edu or gmiller@andes.nmsu.edu)
  309.  
  310.         IF YOU ENCOUNTER ANY "ABNORMAL" BEHAVIOR, PLEASE SEND AS MUCH
  311.         INFORMATION ABOUT ITS NATURE AND CIRCUMSTANCES UNDER WHICH IT
  312.         WAS OBSERVED TO AUTHOR.
  313.  
  314.         5.0 MISCELLANEOUS INFORMATION 
  315.  
  316.         In case you don't know where you are, here are a few clues:
  317.  
  318.                             Latitude       Longitude      TimeZone
  319.                             -------------  ------------   --------
  320.         Atlanta, GA         33D 21M North   84D 22M West     - 5
  321.         Boston, MA          41D 21M North   71D  3M West     - 5
  322.         Chicago, IL         41D 52M North   87D 37M West     - 6
  323.         Dallas, TX          32D 47M North   96D 47M West     - 6
  324.         Denver, CO          39D 44M North  104D 59M West     - 7
  325.         El Paso, TX         31D 45M North  106D 29M West     - 7
  326.         Fairbanks, AK       64D 48M North  147D 51M West     - 9
  327.         Las Cruces, NM      32D 19M North  106D 47M West     - 7
  328.         Los Angeles,CA      34D  3M North  118D 14M West     - 8
  329.         New Orleans, LA     29D 56M North   90D  3M West     - 6
  330.         Phoenix, AZ         33D 26M North  112D  3M West     - 7
  331.         San Francisco, CA   37D 47M North  122D 25M West     - 8
  332.         Seattle, WA         47D 37M North  122D 19M West     - 8
  333.  
  334.         London              51D 32M North    0D  4M West       0
  335.         Hamburg             53D 33m North   10D  2M East     + 1
  336.         Capetown            33D 55M South   18D 22M East     + 2
  337.         Guayaquil            2D 10M South   79D 56M West     - 5
  338.         Irkutsk             52D 30M North  104D 19M East     + 7
  339.         Bangkok             13D 45M North  100D 30M East     + 7
  340.         Manila              14D 34M North  120D 56M East     + 9 (I think)
  341.         Mexico City         19D 26M North   99D  7M West     - 6
  342.         Rio de Janeiro      22D 56M South   43D 11M West     - 3
  343.         Tokyo               35D 45M North  139D 45M East    + 10
  344.  
  345.         wherein, "D" means degrees and "M" means minutes. Some of time zone
  346.         values are based on longitude alone. They may be off by an hour or
  347.         so either way in a few cases due to the author's ignorance of local
  348.         customs.
  349.        
  350.         6.0 DISPLAY INFORMATION
  351.  
  352.         For an observer located as in the sample SUNPO.INI file, the screen
  353.         display and the ascii output files look something like:
  354.  
  355.            Local Global     Solar     Solar   Observer
  356.             time   time   Azimuth Elevation Parameters
  357.                                                       
  358.              600    600        65        -8     21 Jun
  359.              700    700        67         5     8.15 N
  360.              800    800        68        19    12.57 W
  361.              900    900        67        33           
  362.             1000   1000        64        46           
  363.             1100   1100        57        59           
  364.             1200   1200        37        70           
  365.             1300   1300       353        75           
  366.             1400   1400       315        68           
  367.             1500   1500       300        56           
  368.             1600   1600       294        43           
  369.             1700   1700       292        29           
  370.             1800   1800       292        15           
  371.             1900   1900       293         1           
  372.             2000   2000       296       -12           
  373.         
  374.         REMARKS:
  375.         
  376.         The 353 degree azimuth value means that the sun appeared north of
  377.         the observer at some time close to 1300 hrs. The negative eleva-
  378.         tion values indicate that sunrise occurs between 6 AM and 7 AM
  379.         local standard time and that sunset occurs just after 7 PM local
  380.         standard time.        
  381.  
  382.         (V1.01)
  383.