| 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> |
| 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; |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
int main(int argc, char *argv[]) { |
| 432 |
– |
progname = argv[0]; |
| 431 |
|
int month, day; |
| 432 |
|
double hour; |
| 433 |
|
FVECT sundir; |
| 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); |