1 |
< |
# SCCSid "$SunId$ LBL" |
1 |
> |
# RCSid: $Id$ |
2 |
|
# |
3 |
|
# Choose the Rad Input File to work on. |
4 |
|
# |
43 |
|
if {! [info exists radvar(RESOLUTION)]} { |
44 |
|
set radvar(RESOLUTION) 512 |
45 |
|
} |
46 |
+ |
if {! [info exists radvar(EYESEP)]} { |
47 |
+ |
set radvar(EYESEP) 1 |
48 |
+ |
} |
49 |
|
if [info exists radvar(QUALITY)] { |
50 |
|
cardval radvar(QUALITY) {High Medium Low} |
51 |
|
} else { |
94 |
|
AMB* { set radvar(AMBFILE) $vval } |
95 |
|
OPT* { set radvar(OPTFILE) $vval } |
96 |
|
EXP* { set radvar(EXPOSURE) $vval } |
97 |
+ |
EYE* { set radvar(EYESEP) $vval } |
98 |
|
RES* { set radvar(RESOLUTION) $vval } |
99 |
|
UP { set radvar(UP) $vval } |
100 |
|
IND* { set radvar(INDIRECT) $vval } |
123 |
|
} |
124 |
|
if {[lsearch -exact {ZONE QUALITY OCTREE PICTURE AMBFILE OPTFILE |
125 |
|
EXPOSURE RESOLUTION UP INDIRECT DETAIL PENUMBRAS |
126 |
< |
RAWFILE ZFILE VARIABILITY REPORT} $vn] >= 0} { |
126 |
> |
EYESEP RAWFILE ZFILE VARIABILITY REPORT} $vn] >= 0} { |
127 |
|
puts $fi "$vn= $radvar($vn)" |
128 |
|
return |
129 |
|
} |
153 |
|
if {"$vl" == "all" && ! [chksave]} {return 0} |
154 |
|
set curmess {Please wait...} |
155 |
|
update |
156 |
< |
if [catch {exec rad -n -w -e $f >& /usr/tmp/ro[pid]}] { |
157 |
< |
set curmess [exec cat /usr/tmp/ro[pid]] |
158 |
< |
exec rm -f /usr/tmp/ro[pid] |
156 |
> |
if [catch {exec rad -n -w -e $f >& /tmp/ro[pid]}] { |
157 |
> |
set curmess [exec cat /tmp/ro[pid]] |
158 |
> |
exec rm -f /tmp/ro[pid] |
159 |
|
return 0 |
160 |
|
} |
161 |
< |
set fi [open /usr/tmp/ro[pid] r] |
161 |
> |
set fi [open /tmp/ro[pid] r] |
162 |
|
if {"$vl" == "all"} { |
163 |
|
catch {unset radvar} |
164 |
|
while {[gets $fi curli] != -1} { |
191 |
|
} |
192 |
|
set alldone [eof $fi] |
193 |
|
close $fi |
194 |
< |
exec rm -f /usr/tmp/ro[pid] |
194 |
> |
exec rm -f /tmp/ro[pid] |
195 |
|
preen |
196 |
|
return 1 |
197 |
|
} |