286 |
|
newheader("RADIANCE", ofp); |
287 |
|
printargs(argc, argv, ofp); |
288 |
|
fputnow(ofp); |
289 |
+ |
fprintf(ofp, "NROWS=%d\n", rmtx->nrows); |
290 |
|
fprintf(ofp, "NCOLS=%d\n", rmtx->ncols); |
291 |
|
fputs("NCOMP=3\n", ofp); |
292 |
|
fputformat((char *)cm_fmt_id[outfmt], ofp); |
303 |
|
cm_free(cmtx); |
304 |
|
return(0); |
305 |
|
userr: |
306 |
< |
fprintf(stderr, "Usage: %s [-n nsteps][-o ospec][-i{f|d}][-o{f|d}] DCspec [skyf]\n", |
306 |
> |
fprintf(stderr, "Usage: %s [-n nsteps][-o ospec][-i{f|d|h}][-o{f|d}] DCspec [skyf]\n", |
307 |
|
progname); |
308 |
< |
fprintf(stderr, " or: %s [-n nsteps][-o ospec][-i{f|d}][-o{f|d}] Vspec Tbsdf.xml Dmat.dat [skyf]\n", |
308 |
> |
fprintf(stderr, " or: %s [-n nsteps][-o ospec][-i{f|d|h}][-o{f|d}] Vspec Tbsdf.xml Dmat.dat [skyf]\n", |
309 |
|
progname); |
310 |
|
return(1); |
311 |
|
} |