[Radiance-general] scripting problem

Valeria De Giuli valeriadegiuli at gmail.com
Wed Feb 18 02:30:03 PST 2009


Hi all,
I'm trying to automate the calculation of illuminance values inside an
office, during 4 different days of each month of the year. I've saved
the script below as venezia.csh and then I've written chmod u+x
venezia.csh, and finally ./venezia.csh.

#! /bin/csh
set opzioni = (-ab 7 -aa .1 -ad 2048 -as 1024 -ar 512)
foreach mo (1 2 3 4 5 6 7 8 9 10 11 12)
foreach da (7 14 21 28)
foreach hh (4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21)
gensky -a 45.50 -o -12.33 -m -15 $mo":"$da":"$hh -u -g 0.2 > sky.rad
oconv sky.rad office.rad glaze70.rad mirr_ss.rad > model.oct
rtrace -w -h -opv -I+ $opzioni model.oct < office_sensor.pts > |rcalc
-e '$1=$1;$2=$2;$3=179*(.265074126*$4+.670114631*$5+.064811243*$6)' >
$mo.$da.$hh.V.mss.dat
end
end
end

The problem is : use error - bad month, oconv: sky.rad - empty-file
and, finally, missing name for redirect. Does anybody know how to make
it work?
Thanks in advance,
Valeria



More information about the Radiance-general mailing list