--- ray/src/util/dayfact.csh 1991/06/05 14:01:20 1.4 +++ ray/src/util/dayfact.csh 1991/06/05 16:50:45 1.5 @@ -12,11 +12,7 @@ set fcopts=($*) set wporig=(0 0 0) set wpsize=(1 1) set rtargs=(-ab 1 -ad 256 -as 128 -aa .15 -av .1 .1 .1) - set maxres=128 -set iltemp=/usr/tmp/il$$.pic -set sctemp=/usr/tmp/sc$$.csh -set tempfiles=($iltemp $sctemp) alias readvar 'echo -n Enter \!:1 "[$\!:1]: ";set ans="$<";if("$ans" != "")set \!:1="$ans"' @@ -35,12 +31,14 @@ if ( "$octree" == "$nofile" || ! -f "$octree" ) then echo "before running this script." exit 1 endif +set title="$octree:r" echo "In what scene file is the gensky command located?" readvar genskyf if ( "$genskyf" == "$nofile" || ! -r "$genskyf" ) then echo "You will not be able to compute" echo "daylight factors without a gensky file" else + set title=$title\ `sed -n 's/^.*\ $sctemp -onintr quit +set iltemp=/usr/tmp/il$$.pic +set sctemp=/usr/tmp/sc$$.csh +set tltemp=/usr/tmp/tl$$.pic +set tempfiles=($iltemp $sctemp $tltemp) echo "Your dayfact job is finished." echo "Please check for error messages below." echo "" @@ -83,14 +86,17 @@ cnt $wpres[2] $wpres[1] \ | pvalue -r -x $wpres[1] -y $wpres[2] -df \ | pfilt -h 20 -n 0 -x 350 -y 350 -p 1 -r 1 > $iltemp set maxval=`getinfo < $iltemp | rcalc -i 'EXPOSURE=${e}' -e '$1=3/e'` +psign -h 50 " $title " | pfilt -1 -x /2 -y /2 > $tltemp '_EOF_' if ( "$ilpict" != "$nofile" ) then - echo 'falsecolor -cb -l Lux $fcopts -s "$maxval*470" -m 470 \\ - -pi $iltemp > $ilpict' >> $sctemp + echo 'falsecolor -cb -l Lux $fcopts \\ + -s "$maxval*470" -m 470 -pi $iltemp \\ + | pcompos -a 1 - $tltemp > $ilpict' >> $sctemp endif if ( "$dfpict" != "$nofile" ) then - echo 'falsecolor -cb -l DF $fcopts -s "$maxval/$extamb" \\ - -m "1/$extamb" -pi $iltemp > $dfpict' >> $sctemp + echo 'falsecolor -cb -l DF $fcopts \\ + -s "$maxval/$extamb" -m "1/$extamb" -pi $iltemp \\ + | pcompos -a 1 - $tltemp > $dfpict' >> $sctemp endif echo 'rm -f $tempfiles' >> $sctemp (source $sctemp) |& mail `whoami` &