home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / calentool / part07 / riseset.h < prev   
Encoding:
C/C++ Source or Header  |  1989-05-27  |  2.4 KB  |  66 lines

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