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 */ |
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 |
|
|
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 |
|
} |