home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: riseset.h,v 2.1 89/05/09 14:25:32 billr Exp $
- */
- /*
- * riseset.h
- *
- * Author: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
- *
- * Copyright (C) 1989, Tektronix, Inc. All Rights Reserved
- *
- * Permission is hereby granted to use and modify this code in source
- * or binary form as long as it is not sold for profit and this copyright
- * notice remains intact.
- */
- /*
- * Geographic coordinates of this physical location (if known).
- * [121-08'-56"W x 44-15'-15"N == Redmond, Oregon, USA]
- * [122-15'-12"W x 37-29'-00"N == Golden Gate Park, San Francisco, CA, USA]
- * If the longitude is not known, the local time offset is derived
- * from the timezone information (tzp.tz_minuteswest). If the
- * latitude is not known, the default used is 34-0'-0" - the approximate
- * centerline of the U.S.
- *
- * To find your local coordinates, call the local Flight Service Station
- * (in the U.S., look under Transportation, Department of - FSS) and
- * ask for the latitude and longitude of your local airport. That
- * will probably be close enough. Other useful sources are a local
- * planetarium, science museum, Dept. of Astronomy, or library.
- */
- #define LONG_DEGREES 121. /* if unknown comment this out */
- #define LONG_MINUTES 08.
- #define LONG_SECONDS 56.
- #define LAT_DEGREES 44. /* if unknown comment this out */
- #define LAT_MINUTES 15.
- #define LAT_SECONDS 15.
-
- /*#undef LONG_DEGREES /* if longitude unknown, uncomment this line */
- /*#undef LAT_DEGREES /* if latitude unknown, uncomment this line */
-
- /*
- * index into riseset_buf[]
- */
- #define B_GMT 0 /* Greenwich Mean Time (GMT) (==UTC) */
- #define B_TDT 1 /* Terrestrial Dynamical Time */
- #define B_LCT 2 /* Local Civil Time */
- #define B_LMT 3 /* Local Mean Time */
- #define B_POM 4 /* Phase Of Moon */
- #define B_JLD 5 /* Julian Day */
- #define B_GST 6 /* Greenwich Mean Sideral Time */
- #define B_LST 7 /* Local Sidereal Time */
- #define B_LHA 8 /* L.H.A. of Sun */
- #define B_SDE 9 /* Declination of Sun */
- #define B_SAZ 10 /* Azimuth of Sun */
- #define B_SEL 11 /* Elevation of Sun */
- #define B_SRD 12 /* Sun Rise Today */
- #define B_SSD 13 /* Sun Set Today */
- #define B_SRT 14 /* Sun Rise Tomorrow */
- #define B_SST 15 /* Sun Set Tomorrow */
- #define B_MRD 16 /* Moon Rise Today */
- #define B_MSD 17 /* Moon Set Today */
- #define B_MRT 19 /* Moon Rise Tomorrow */
- #define B_MST 20 /* Moon Set Tomorrow */
- #define B_DMY 21 /* Day-Month-Year */
-
- #define B_SIZE (B_DMY+1)
-