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.28 by greg, Tue Jun 25 17:06:36 2019 UTC vs.
Revision 2.30 by greg, Thu Nov 7 23:15:07 2019 UTC

# Line 85 | Line 85 | static const char RCSid[] = "$Id$";
85   #include <stdlib.h>
86   #include <string.h>
87   #include <ctype.h>
88 + #include "platform.h"
89   #include "rtmath.h"
90   #include "rtio.h"
90 #include "resolu.h"
91 #include "platform.h"
91   #include "color.h"
92 < #include "resolu.h"
92 > #include "sun.h"
93  
94   char *progname;                                                         /* Program name */
95   char errmsg[128];                                                       /* Error message buffer */
# Line 255 | Line 254 | static const ModelCoeff DirectLumEff[8] =
254   #define NSUNPATCH       4               /* max. # patches to spread sun into */
255   #endif
256  
258 extern int jdate(int month, int day);
259 extern double stadj(int  jd);
260 extern double sdec(int  jd);
261 extern double salt(double sd, double st);
262 extern double sazi(double sd, double st);
263                                        /* sun calculation constants */
264 extern double  s_latitude;
265 extern double  s_longitude;
266 extern double  s_meridian;
267
257   int             nsuns = NSUNPATCH;      /* number of sun patches to use */
258   double          fixed_sun_sa = -1;      /* fixed solid angle per sun? */
259  
# Line 558 | Line 547 | main(int argc, char *argv[])
547                  printf("NROWS=%d\n", nskypatch);
548                  printf("NCOLS=%d\n", nstored);
549                  printf("NCOMP=3\n");
550 +                if ((outfmt == 'f') | (outfmt == 'd'))
551 +                        fputendian(stdout);
552                  fputformat((char *)getfmtname(outfmt), stdout);
553                  putchar('\n');
554          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines