[Radiance-general] scripting problem

Valeria De Giuli valeriadegiuli at gmail.com
Wed Feb 18 08:36:33 PST 2009


Thank you  Lars! It runs now! I'll try in the other way you suggest me!
Bye,
Valeria

2009/2/18 Lars O. Grobe <lars.grobe at nus.edu.sg>:
> 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.
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>



More information about the Radiance-general mailing list