1 | From: ihnp4!tektronix!reed!nsc-pdc!rgb
|
---|
2 | Date: Tue, 28 May 85 09:08:58 pdt
|
---|
3 | Subject: Re: sun(1)
|
---|
4 |
|
---|
5 | The best book I have seen to date is a small book called "Practical
|
---|
6 | Astronomy With Your Calculator" by Peter(?) Duffet-Smith. I was able
|
---|
7 | to order a copy from a local bookstore. The B. Dalton here said they
|
---|
8 | stock it, but they happened to have sold them all.
|
---|
9 |
|
---|
10 | As far as the definition of sunset, there are lots of them. The program
|
---|
11 | uses the time when the upper limb of the sun descends below the horizon.
|
---|
12 | Note that it is calculated for the observer; a more accurate calculation
|
---|
13 | would include your mountains. Refraction causes a sun which is already
|
---|
14 | below the horizon to appear to be above.
|
---|
15 |
|
---|
16 | The program calculates some corrections for sunset and sunrise positions
|
---|
17 | based on the refraction of the air, parallax, and one other thing I
|
---|
18 | forget now. The postion figures don't do the correction: I wimped out
|
---|
19 | because the refraction correction is a function of the height of the
|
---|
20 | sun above the horizon. The sunrise and sunset are apparent times,
|
---|
21 | you should remove the dt correction to find the "astronomical" times.
|
---|
22 | Try the first day of spring at dawn to see what I mean. The sun should
|
---|
23 | come up almost exactly in the east, but it's apparent position is
|
---|
24 | different because of the corrections.
|
---|
25 |
|
---|
26 | I 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 |
|
---|
39 | Input options:
|
---|
40 |
|
---|
41 | -a latitude
|
---|
42 | -o longitude
|
---|
43 | -z timezone
|
---|
44 | [date and time] only argument allowed, various formats
|
---|
45 |
|
---|
46 | Output 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 | |
---|