Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!uwmcsd1!ig!agate!ucbvax!DOCKMASTER.ARPA!MSchwartz From: MSchwartz@DOCKMASTER.ARPA Newsgroups: comp.sys.zenith.z100 Subject: Re: sunrise-sunset Message-ID: <880214053356.507578@DOCKMASTER.ARPA> Date: 14 Feb 88 05:33:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 22 Don et al: All good sunrise/sunset programs I've seen are based on algorithms published by the Naval Observatory in a book called "Almanac for Computers". Dan Goldish (at Raytheon) did one up in FORTRAN, and still gets requests for printouts from a number of places each year. His implementation provides both astronomical and religious data. Some years ago, I converted his basic program to C, and placed it in the public domain (via USENET, so it certainly got lost....). With the exception on 2 parameters (which I understand have been updated in about 1985) the program should be suitable. Accuracy is about 1 minute at 40N; it is supposedly more accurate at the equator, and much less at the poles. Please send net mail requests (for source code). If I get more than a few requests, I will find out if SIMTEL20 wishes to make it publicly available. I can only send EXEs through USNail, if required, since MULTICS does not seem to talk nicely to TOPS20, UNIX, etc. If this is what you want, I'll be happy to help. mike schwartz