[Radiance-general] scripting problem

Lars O. Grobe lars.grobe at nus.edu.sg
Wed Feb 18 03:12:16 PST 2009


Hi,

you must first specify month day hour (without ':' in between!!!), than 
the options (just type gensky, it will show you the possible ways to 
call it).

gensky $mo $da $hh -a 45.50 -o -12.33 -m -15 -u -g 0.2 > sky.rad

Should do the job.

However, instead of your foreach loops, you can use the radiance tool 
'cnt', which counts thru an array, combined with rcalc and awk, to write 
a shell script that will do the calculation:

cnt 12 4 18 | rcalc -e '$1=1+$1;$2=(1+$2)*7;$3=$3+4' | awk '{ print 
"gensky "$1, $2, $3" -a 45.50 -o -12.33 -m -15 -u -g .2 > sky.rad; oconv 
sky.rad office.rad glaze70.rad mirr_ss.rad > model.oct"; }' > skys.bash

As you see, I did not write the rtace part - as I am too lazy to do all 
the escaping work for awk. Still, it is just a proposal to do this in an 
one-liner ;-)

Good luck, CU Lars.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lars_grobe.vcf
Type: text/x-vcard
Size: 299 bytes
Desc: not available
Url : http://radiance-online.org/pipermail/radiance-general/attachments/20090218/3b58e17f/lars_grobe.vcf


More information about the Radiance-general mailing list