ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/dayfact.csh
(Generate patch)

Comparing ray/src/util/dayfact.csh (file contents):
Revision 1.4 by greg, Wed Jun 5 14:01:20 1991 UTC vs.
Revision 1.5 by greg, Wed Jun 5 16:50:45 1991 UTC

# Line 12 | Line 12 | set fcopts=($*)
12   set wporig=(0 0 0)
13   set wpsize=(1 1)
14   set rtargs=(-ab 1 -ad 256 -as 128 -aa .15 -av .1 .1 .1)
15
15   set maxres=128
17 set iltemp=/usr/tmp/il$$.pic
18 set sctemp=/usr/tmp/sc$$.csh
19 set tempfiles=($iltemp $sctemp)
16  
17   alias readvar 'echo -n Enter \!:1 "[$\!:1]: ";set ans="$<";if("$ans" != "")set \!:1="$ans"'
18  
# Line 35 | Line 31 | if ( "$octree" == "$nofile" || ! -f "$octree" ) then
31          echo "before running this script."
32          exit 1
33   endif
34 + set title="$octree:r"
35   echo "In what scene file is the gensky command located?"
36   readvar genskyf
37   if ( "$genskyf" == "$nofile" || ! -r "$genskyf" ) then
38          echo "You will not be able to compute"
39          echo "daylight factors without a gensky file"
40   else
41 +        set title=$title\ `sed -n 's/^.*\<gensky  *\([0-9][0-9]*  *[0-9][0-9]*  *[0-9][0-9.]*\).*$/\1/p' $genskyf`
42          set extamb=`xform -e $genskyf|sed -n 's/^# Ground ambient level: //p'`
43   endif
44   echo -n "Is the z-axis your zenith direction? "
# Line 69 | Line 67 | if ( "$ilpict" == "$nofile" && "$dfpict" == "$nofile"
67          echo "Since you don't want any output, I guess we're done."
68          exit 0
69   endif
70 + echo "Title for output picture"
71 + readvar title
72   cat <<'_EOF_' > $sctemp
73 < onintr quit
73 > set iltemp=/usr/tmp/il$$.pic
74 > set sctemp=/usr/tmp/sc$$.csh
75 > set tltemp=/usr/tmp/tl$$.pic
76 > set tempfiles=($iltemp $sctemp $tltemp)
77   echo "Your dayfact job is finished."
78   echo "Please check for error messages below."
79   echo ""
# Line 83 | Line 86 | cnt $wpres[2] $wpres[1] \
86          | pvalue -r -x $wpres[1] -y $wpres[2] -df \
87          | pfilt -h 20 -n 0 -x 350 -y 350 -p 1 -r 1 > $iltemp
88   set maxval=`getinfo < $iltemp | rcalc -i 'EXPOSURE=${e}' -e '$1=3/e'`
89 + psign -h 50 " $title " | pfilt -1 -x /2 -y /2 > $tltemp
90   '_EOF_'
91   if ( "$ilpict" != "$nofile" ) then
92 <        echo 'falsecolor -cb -l Lux $fcopts -s "$maxval*470" -m 470 \\
93 <                -pi $iltemp > $ilpict' >> $sctemp
92 >        echo 'falsecolor -cb -l Lux $fcopts \\
93 >                -s "$maxval*470" -m 470 -pi $iltemp \\
94 >                | pcompos -a 1 - $tltemp > $ilpict' >> $sctemp
95   endif
96   if ( "$dfpict" != "$nofile" ) then
97 <        echo 'falsecolor -cb -l DF $fcopts -s "$maxval/$extamb" \\
98 <                -m "1/$extamb" -pi $iltemp > $dfpict' >> $sctemp
97 >        echo 'falsecolor -cb -l DF $fcopts \\
98 >                -s "$maxval/$extamb" -m "1/$extamb" -pi $iltemp \\
99 >                | pcompos -a 1 - $tltemp > $dfpict' >> $sctemp
100   endif
101   echo 'rm -f $tempfiles' >> $sctemp
102   (source $sctemp) |& mail `whoami` &

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines