| 1 |
|
#!/bin/csh -f |
| 2 |
< |
# SCCSid "$SunId$ LBL" |
| 2 |
> |
# RCSid: $Id$ |
| 3 |
|
# |
| 4 |
|
# Interactive program for calculating glare values |
| 5 |
|
# |
| 7 |
|
set nofile="none" |
| 8 |
|
set octree=$nofile |
| 9 |
|
set picture=$nofile |
| 10 |
+ |
set glarefile=$nofile |
| 11 |
|
if ($#argv >= 1) then |
| 12 |
|
set glarefile=$argv[1] |
| 13 |
< |
else |
| 14 |
< |
set glarefile=$nofile |
| 13 |
> |
if ($#argv >= 2) then |
| 14 |
> |
set picture=$argv[2] |
| 15 |
> |
if ($#argv >= 3) then |
| 16 |
> |
set octree=$argv[3] |
| 17 |
> |
endif |
| 18 |
> |
endif |
| 19 |
|
endif |
| 20 |
|
set rtargs= |
| 21 |
|
set view= |
| 60 |
|
octree. |
| 61 |
|
|
| 62 |
|
_EOF_ |
| 63 |
< |
readvar picture |
| 64 |
< |
readvar octree |
| 63 |
> |
if ( $picture == $nofile ) then |
| 64 |
> |
readvar picture |
| 65 |
> |
endif |
| 66 |
> |
if ( $octree == $nofile ) then |
| 67 |
> |
readvar octree |
| 68 |
> |
endif |
| 69 |
|
readvar view |
| 70 |
|
if ( $picture == $nofile && $octree == $nofile ) then |
| 71 |
|
echo "You must specify a picture or an octree" |
| 158 |
|
echo "Displaying glare sources in '$picture'..." |
| 159 |
|
xglaresrc $picture $glarefile |
| 160 |
|
endif |
| 161 |
< |
set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio" "CIE Glare Index") |
| 162 |
< |
set ndxcom=("glarendx -t guth_vcp" "glarendx -t guth_dgr" "glarendx -t cie_cgi") |
| 163 |
< |
set bcdlvl=(50 124 18.5) |
| 161 |
> |
set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio" "CIE Glare Index" "BRS Glare Index" "Unified Glare Rating" "Daylight Glare Index") |
| 162 |
> |
set ndxcom=("glarendx -t guth_vcp" "glarendx -t guth_dgr" "glarendx -t cie_cgi" "glarendx -t brs_gi" "glarendx -t ugr" "glarendx -t dgi") |
| 163 |
> |
set bcdlvl=(50 124 18.5 18.5 18.5 21.7) |
| 164 |
|
while ( 1 ) |
| 165 |
|
echo "" |
| 166 |
|
echo " 0. Quit" |