

Sat Jan 17 01:15:08 MST 2004

compile a la bsd
if define SYS5, then problems as macosx lacks some old sysv routines/variables

usual slew of warnings, tied to old code with current ansi compiler

same results with this version on macosx as sysv version on octane
[small differences not worth tracking down, in view of sysv!=bsd branches:
           00:52:32      Local Mean Time
           00:52:18      Local Mean Time
	   `
           08:36:57      Local Sidereal Time
           08:36:44      Local Sidereal Time
etc]

----------------------------------------------------------------------
comparison of results mac vs octane follows:
----------------------------------------------------------------------

:r !sunrise
Sat Jan 17 08:15:59 2004 GMT
           08:17:11      Terrestrial Dynamical Time
Sat Jan 17 01:15:59 2004 Local Civil Time
           00:52:18      Local Mean Time
The Moon is 2.2 days past Last Quarter
Julian Day  2453021.844
           16:00:25      Greenwich Mean Sidereal Time
           08:36:44      Local Sidereal Time
           00:42:26      L.H.A. of Sun
                -20.843  Degrees Declnation
Azimuth          42.787  Degrees
Elevation       -75.330  Degrees
Sunrise    07:24         Tomorrow   07:24  
Sunset     17:43         Tomorrow   17:44  
Moonrise   03:06         Tomorrow   04:18  
Moonset    13:37         Tomorrow   14:27  


$ jar@server: /usr/people/jar> sunrise
Sat Jan 17 08:16:19 2004 GMT
           08:17:31      Terrestrial Dynamical Time
Sat Jan 17 01:16:19 2004 Local Civil Time
           00:52:32      Local Mean Time
The Moon is 2.2 days past Last Quarter
Julian Day  2453021.845
           16:00:45      Greenwich Mean Sidereal Time
           08:36:57      Local Sidereal Time
           00:42:39      L.H.A. of Sun
                -20.843  Degrees Declnation
Azimuth          42.914  Degrees
Elevation       -75.288  Degrees
Sunrise    07:24         Tomorrow   07:24  
Sunset     17:43         Tomorrow   17:44  
Moonrise   03:06         Tomorrow   04:18  
Moonset    13:37         Tomorrow   14:27  





Fri Jan 23 19:09:47 MST 1998

compiled straight under octane irix 6.4

installed binary in ~/lbin
man page already installed in ~/man/man1


Wed Feb 17 19:00:21 MST 1988

rise_set compiles straight under bsd, on cs dept vax

changes in time functions needed for sys5:
#defined with tests on SYS5, to remove:
	remove sys/timeb.h, struct timeb, ftime() (all bsd specific)
	remove hack to compute XDT vs XST
	replace with set of localdst based on timezone and daylight externals

seems to work, by cf with vax

changed longitude and latitude to tucson values, approximate, 
determined by inspection of county map;
probably ok within 5 minutes of arc = 5/60/360 = .0004

put executable into /usr/games/sunrise


the exact coord of the UofA satellite dish, for computer communications,
came over the net:

see program for values


