53 |
|
If no view is specified, the view parameters are taken from the picture, |
54 |
|
so the view specification is optional unless you are starting from an |
55 |
|
octree. |
56 |
+ |
|
57 |
|
_EOF_ |
58 |
|
readvar picture |
59 |
|
readvar octree |
62 |
|
echo "You must specify a picture or an octree" |
63 |
|
exit 1 |
64 |
|
endif |
65 |
+ |
if ( $picture == $nofile && "$view" == "" ) then |
66 |
+ |
echo "You must give a view if there is no picture" |
67 |
+ |
exit 1 |
68 |
+ |
endif |
69 |
|
if ( $picture != $nofile ) then |
70 |
|
if ( ! -r $picture ) then |
71 |
|
echo "Cannot read $picture" |
95 |
|
if ("$<" =~ [yY]) then |
96 |
|
set fgargs=(-r 400 $fgargs) |
97 |
|
else |
98 |
< |
set fgargs=(-r 200 $fgargs) |
98 |
> |
set fgargs=(-r 250 $fgargs) |
99 |
|
endif |
100 |
< |
echo -n "Are these sources very bright? " |
100 |
> |
echo -n "Are these sources relatively bright? " |
101 |
|
if ("$<" =~ [nN]*) then |
102 |
|
set fgargs=(-c $fgargs) |
103 |
|
endif |
135 |
|
if ($?DISPLAY && $picture != $nofile) then |
136 |
|
echo "" |
137 |
|
echo "Displaying glare sources in '$picture'..." |
138 |
< |
xglaresrc $picture $glarefile |
138 |
> |
xglaresrc $picture $glarefile >& /dev/null |
139 |
|
if ($status) then |
140 |
|
x11image =+0+0 -g 2.6 $picture & |
141 |
|
sleep 40 |
142 |
|
xglaresrc $picture $glarefile |
143 |
|
endif |
144 |
|
endif |
145 |
< |
set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio") |
146 |
< |
set ndxcom=(guth_vcp guth_dgr) |
145 |
> |
set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio" "CIE Glare Index") |
146 |
> |
set ndxcom=("glarendx -t guth_vcp" "glarendx -t guth_dgr" "glarendx -t cie_cgi") |
147 |
> |
set bcdlvl=(50 124 18.5) |
148 |
|
while ( 1 ) |
149 |
|
echo "" |
150 |
|
echo " 0. Quit" |
178 |
|
else if ($octree != $nofile) then |
179 |
|
set subtitle="$subtitle $octree" |
180 |
|
endif |
181 |
+ |
if ( "$subtitle" == "" ) then |
182 |
+ |
set subtitle="`getinfo < $glarefile | grep findglare`" |
183 |
+ |
endif |
184 |
|
cat <<_EOF_ > $plotfile |
185 |
+ |
include=line.plt |
186 |
|
include=polar.plt |
187 |
|
title="$ndxnam[$choice]" |
188 |
|
subtitle="$subtitle" |
189 |
+ |
Bdata= |
190 |
+ |
0 $bcdlvl[$choice] |
191 |
+ |
360 $bcdlvl[$choice] |
192 |
+ |
; |
193 |
+ |
Blabel="BCD level" |
194 |
|
Adata= |
195 |
|
_EOF_ |
196 |
|
getinfo - < $gndxfile >> $plotfile |