ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/gendaymtx.c
(Generate patch)

Comparing ray/src/gen/gendaymtx.c (file contents):
Revision 2.37 by greg, Sat Aug 15 03:28:56 2020 UTC vs.
Revision 2.38 by greg, Fri Sep 11 16:50:50 2020 UTC

# Line 89 | Line 89 | static const char RCSid[] = "$Id$";
89   #include "color.h"
90   #include "sun.h"
91  
92 < char *progname;                                                         /* Program name */
93 < char errmsg[128];                                                       /* Error message buffer */
92 > char *progname;                                 /* Program name */
93   const double DC_SolarConstantE = 1367.0;        /* Solar constant W/m^2 */
94   const double DC_SolarConstantL = 127.5;         /* Solar constant klux */
95  
# Line 535 | Line 534 | main(int argc, char *argv[])
534                                                          sunsfp, modsfp);
535                          continue;
536                  }
537 +                if (!sun_in_sky && dir > (input==1 ? 20. : 20.*WHTEFFICACY))
538 +                        fprintf(stderr,
539 +                                "%s: warning - unusually bright at %.1f on %d-%d\n",
540 +                                        progname, hr, mo, da);
541                                          /* convert measured values */
542 <                if (dir_is_horiz && altitude > 0.)
542 >                if (dir_is_horiz && altitude > FTINY)
543                          dir /= sin(altitude);
544                  if (input == 1) {
545                          dir_irrad = dir;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines