Permalink
Browse files

Update Jan 2014: since timelib_astro_rise_set_altitude() subtracts 16

arcminutes to account for the apparent radius of the sun ("upper limb
correction"), we should use 34 minutes and not 50 mintues here
  • Loading branch information...
mjradwin committed Jan 7, 2014
1 parent ee79ce3 commit bbba291b7ac9c16a141637287079640db517f146
Showing with 6 additions and 2 deletions.
  1. +1 −1 c/configure.ac
  2. +5 −1 c/hebcal.c
View
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
-AC_INIT(hebcal,4.15.1,hebcal-bugs@sadinoff.com)
+AC_INIT(hebcal,4.15.2,hebcal-bugs@sadinoff.com)
AC_CONFIG_SRCDIR([common.c])
dnl #AM_INIT_AUTOMAKE([no-dependencies check-news])
AM_INIT_AUTOMAKE
View
@@ -170,8 +170,12 @@ void PrintGregDate( date_t dt )
* atmospheric refraction at the horizon (34 arcminutes).
*
* http://aa.usno.navy.mil/faq/docs/RST_defs.php
+ *
+ * Update Jan 2014: since timelib_astro_rise_set_altitude() subtracts 16
+ * arcminutes to account for the apparent radius of the sun ("upper limb
+ * correction"), we should use 34 minutes and not 50 mintues here.
*/
-#define SUNRISE_SUNSET_ALTITUDE ((double)(-50.0/60.0))
+#define SUNRISE_SUNSET_ALTITUDE ((double)(-34.0/60.0))
static void get_rise_set(date_t todayGreg, double *h_rise, double *h_set, double *gmt_offset)
{

0 comments on commit bbba291

Please sign in to comment.