9 |
|
|
10 |
|
#include <math.h> |
11 |
|
#include <ctype.h> |
12 |
– |
|
12 |
|
#include "rtio.h" |
13 |
|
#include "platform.h" |
14 |
|
#include "tiffio.h" |
107 |
|
extern char TMSTR[]; /* "CAPDATE=" from header.c */ |
108 |
|
char OWNSTR[] = "OWNER="; |
109 |
|
|
111 |
– |
char *progname; |
110 |
|
|
113 |
– |
|
111 |
|
int |
112 |
|
main(int argc, char *argv[]) |
113 |
|
{ |
114 |
|
int reverse = 0; |
115 |
|
int i; |
116 |
< |
|
117 |
< |
progname = argv[0]; |
116 |
> |
/* set global progname */ |
117 |
> |
fixargv0(argv[0]); |
118 |
|
|
119 |
|
for (i = 1; i < argc; i++) |
120 |
|
if (argv[i][0] == '-') |
374 |
|
cvts.owner[sizeof(cvts.owner)-1] = '\0'; |
375 |
|
} |
376 |
|
/* add to Radiance header */ |
377 |
< |
if (cvts.pixrat < .99 || cvts.pixrat > 1.01) |
377 |
> |
if (cvts.pixrat < .999 || cvts.pixrat > 1.001) |
378 |
|
fputaspect(cvts.pixrat, cvts.rfp); |
379 |
|
if (CHK(C_XYZE)) { |
380 |
|
if (cvts.stonits > .0) |