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

Comparing ray/src/gen/genssky.c (file contents):
Revision 2.7 by greg, Thu Apr 10 23:30:58 2025 UTC vs.
Revision 2.8 by greg, Sat Jun 7 05:09:45 2025 UTC

# Line 6 | Line 6 | static const char RCSid[] =
6   /* Main function for generating spectral sky */
7   /* Cloudy sky computed as weight average of clear and cie overcast sky */
8  
9 #include "atmos.h"
9   #include "copyright.h"
10 + #include "paths.h"
11 + #include "atmos.h"
12   #include "resolu.h"
13   #include "rtio.h"
14   #include <ctype.h>
# Line 19 | Line 20 | static const char RCSid[] =
20   #include <sys/types.h>
21   #endif
22  
22 char *progname;
23
23   const double ARCTIC_LAT = 67.;
24   const double TROPIC_LAT = 23.;
25   const int SUMMER_START = 4;
# Line 429 | Line 428 | static Atmosphere init_atmos(const double aod, const d
428   }
429  
430   int main(int argc, char *argv[]) {
432  progname = argv[0];
431    int month, day;
432    double hour;
433    FVECT sundir;
# Line 451 | Line 449 | int main(int argc, char *argv[]) {
449    double dirnorm = 0; /* direct normal illuminance */
450    double difhor = 0;  /* diffuse horizontal illuminance */
451  
452 +  fixargv0(argv[0]);
453    if (argc == 2 && !strcmp(argv[1], "-defaults")) {
454      printf("-i %d\t\t\t\t#scattering order\n", sorder);
455      printf("-g %f\t\t\t#ground reflectance\n", grefl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines