source: buchla-68k/orig/DATE/SUNNOTES.txt@ d21fc6f

Last change on this file since d21fc6f was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago

Imported original source code.

  • Property mode set to 100755
File size: 2.4 KB
RevLine 
[3ae31e9]1From: ihnp4!tektronix!reed!nsc-pdc!rgb
2Date: Tue, 28 May 85 09:08:58 pdt
3Subject: Re: sun(1)
4
5The best book I have seen to date is a small book called "Practical
6Astronomy With Your Calculator" by Peter(?) Duffet-Smith. I was able
7to order a copy from a local bookstore. The B. Dalton here said they
8stock it, but they happened to have sold them all.
9
10As far as the definition of sunset, there are lots of them. The program
11uses the time when the upper limb of the sun descends below the horizon.
12Note that it is calculated for the observer; a more accurate calculation
13would include your mountains. Refraction causes a sun which is already
14below the horizon to appear to be above.
15
16The program calculates some corrections for sunset and sunrise positions
17based on the refraction of the air, parallax, and one other thing I
18forget now. The postion figures don't do the correction: I wimped out
19because the refraction correction is a function of the height of the
20sun above the horizon. The sunrise and sunset are apparent times,
21you should remove the dt correction to find the "astronomical" times.
22Try the first day of spring at dawn to see what I mean. The sun should
23come up almost exactly in the east, but it's apparent position is
24different because of the corrections.
25
26I hope this is understandable...
27
28 Bob Bond
29* Each option yields one type of output line, more or less.
30* Set time in a variety of ways, including just hour or hour:min.
31* Ditto for date.
32* Option to get current or specified time included.
33* Option to get just current position.
34* Option to get time since/until previous/next sunrise/set, and percent of
35 interval elapsed/remaining.
36* Option to get length of day/night and percents.
37* Work with standard TZ information.
38
39Input options:
40
41-a latitude
42-o longitude
43-z timezone
44[date and time] only argument allowed, various formats
45
46Output options, sample:
47
48-P Latitude, longitude: 40.02N 105.43W
49-d Date, time: 850419 10:33 (MDT)
50-t(def) Rise, set times: 5:33 20:19 (MDT)
51-a Rise, set azimuth: 61 19' 298 51'
52-p Current elev, azimuth: 38 14' 180 00'
53-s Since-/till+ rise, set: -4:44 +10:02
54-S Since-/till+ rise, set: -31.3% +68.7%
55-l Length of night, day: 14:10 9:50
56-L Length of night, day: 60.2% 39.8%
57
58-f full, all of above
59
Note: See TracBrowser for help on using the repository browser.