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.3 by greg, Wed Jun 5 12:49:16 1991 UTC vs.
Revision 1.4 by greg, Wed Jun 5 14:01:20 1991 UTC

# Line 8 | Line 8 | set genskyf=$nofile
8   set octree=$nofile
9   set dfpict=$nofile
10   set ilpict=$nofile
11 + 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  
16   set maxres=128
17   set iltemp=/usr/tmp/il$$.pic
18 < set tempfiles=($iltemp)
18 > set sctemp=/usr/tmp/sc$$.csh
19 > set tempfiles=($iltemp $sctemp)
20  
21   alias readvar 'echo -n Enter \!:1 "[$\!:1]: ";set ans="$<";if("$ans" != "")set \!:1="$ans"'
22  
21 onintr quit
22
23   cat <<_EOF_
24                          DAYLIGHT FACTOR CALCULATION
25  
# Line 69 | Line 69 | if ( "$ilpict" == "$nofile" && "$dfpict" == "$nofile"
69          echo "Since you don't want any output, I guess we're done."
70          exit 0
71   endif
72 < echo "Starting rtrace calculation -- this will take some time..."
72 > cat <<'_EOF_' > $sctemp
73 > onintr quit
74 > echo "Your dayfact job is finished."
75 > echo "Please check for error messages below."
76 > echo ""
77 > set echo
78   cnt $wpres[2] $wpres[1] \
79          | rcalc -e '$1=($2+.5)/'"$wpres[1]*$wpsize[1]+$wporig[1]" \
80                  -e '$2=(1-($1+.5)/'"$wpres[2])*$wpsize[2]+$wporig[2]" \
# Line 78 | Line 83 | cnt $wpres[2] $wpres[1] \
83          | pvalue -r -x $wpres[1] -y $wpres[2] -df \
84          | pfilt -h 20 -n 0 -x 350 -y 350 -p 1 -r 1 > $iltemp
85   set maxval=`getinfo < $iltemp | rcalc -i 'EXPOSURE=${e}' -e '$1=3/e'`
86 + '_EOF_'
87   if ( "$ilpict" != "$nofile" ) then
88 <        echo "Making illuminance contour picture $ilpict..."
89 <        falsecolor -s "$maxval*470" -m 470 -l Lux -cb -pi $iltemp > $ilpict
88 >        echo 'falsecolor -cb -l Lux $fcopts -s "$maxval*470" -m 470 \\
89 >                -pi $iltemp > $ilpict' >> $sctemp
90   endif
91   if ( "$dfpict" != "$nofile" ) then
92 <        echo "Making daylight factor contour picture $dfpict..."
93 <        falsecolor -s "$maxval/$extamb" -m "1/$extamb" -l DF \
88 <                -cb -pi $iltemp > $dfpict
92 >        echo 'falsecolor -cb -l DF $fcopts -s "$maxval/$extamb" \\
93 >                -m "1/$extamb" -pi $iltemp > $dfpict' >> $sctemp
94   endif
95 < echo "Done."
96 < quit:
97 <        rm -f $tempfiles
95 > echo 'rm -f $tempfiles' >> $sctemp
96 > (source $sctemp) |& mail `whoami` &
97 > echo "Your job is started in the background."
98 > echo "I will send you mail when it is done."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines