| 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" |
| 97 |
|
else |
| 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 >& /dev/null |
| 135 |
< |
if ($status) then |
| 136 |
< |
x11image =+0+0 -g 2.6 $picture & |
| 137 |
< |
sleep 40 |
| 138 |
< |
xglaresrc $picture $glarefile |
| 139 |
< |
endif |
| 138 |
> |
xglaresrc $picture $glarefile |
| 139 |
|
endif |
| 140 |
< |
set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio") |
| 141 |
< |
set ndxcom=(guth_vcp guth_dgr) |
| 140 |
> |
set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio" "CIE Glare Index") |
| 141 |
> |
set ndxcom=("glarendx -t guth_vcp" "glarendx -t guth_dgr" "glarendx -t cie_cgi") |
| 142 |
> |
set bcdlvl=(50 124 18.5) |
| 143 |
|
while ( 1 ) |
| 144 |
|
echo "" |
| 145 |
|
echo " 0. Quit" |
| 181 |
|
include=polar.plt |
| 182 |
|
title="$ndxnam[$choice]" |
| 183 |
|
subtitle="$subtitle" |
| 184 |
+ |
Bdata= |
| 185 |
+ |
0 $bcdlvl[$choice] |
| 186 |
+ |
360 $bcdlvl[$choice] |
| 187 |
+ |
; |
| 188 |
+ |
Blabel="BCD level" |
| 189 |
|
Adata= |
| 190 |
|
_EOF_ |
| 191 |
|
getinfo - < $gndxfile >> $plotfile |