| 38 | 
  | 
        echo "You will not be able to compute daylight" | 
| 39 | 
  | 
        echo "factors since there is no 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` | 
| 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? " | 
| 69 | 
  | 
endif | 
| 70 | 
  | 
echo "Title for output picture" | 
| 71 | 
  | 
readvar title | 
| 72 | 
+ | 
set sctemp=/usr/tmp/sc$$.csh | 
| 73 | 
  | 
cat <<'_EOF_' > $sctemp | 
| 74 | 
  | 
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." | 
| 95 | 
  | 
endif | 
| 96 | 
  | 
if ( "$dfpict" != "$nofile" ) then | 
| 97 | 
  | 
        echo 'falsecolor -cb -l DF $fcopts \\ | 
| 98 | 
< | 
                -s "100*$maxval/PI/$extamb" -m "100/PI/$extamb" -ip $iltemp \\ | 
| 98 | 
> | 
                -s "100/PI*$maxval/$extamb" -m "100/PI/$extamb" -ip $iltemp \\ | 
| 99 | 
  | 
                | pcompos -a 1 - $tltemp > $dfpict' >> $sctemp | 
| 100 | 
  | 
endif | 
| 101 | 
  | 
echo 'rm -f $tempfiles' >> $sctemp |