[Radiance-general] scripting problem

Valeria De Giuli valeriadegiuli at gmail.com
Wed Feb 18 08:39:21 PST 2009


Thank you Thomas,
it runs now!
Bye,
Valeria

2009/2/18 Thomas Bleicher <tbleicher at arcor.de>:
> Valeria
>
> The syntax for gensky is
>
>    gensky month day hour:minute [anything else]
>
> In your script you create
>
>    gensky -a 45.5 -o 12.33 -m -15 month:day:hour -u -g 0.2
>
> which is not accepted by gensky. Use the line
>
>    gensky $mo $da $hh":00" -a 45.50 -o -12.33 -m -15 -u -g 0.2 > sky.rad
>
> instead of your command. I assume that the CSH syntax
> otherwise is correct. I have not checked that the output
> of $hh":00" returns something like "13:00".
>
> I also noticed that you use a uniform sky here (-u).
> This is not realistic sky distribution and only appropriate
> in specialist cases. If you want a "standard" sky you should
> use "-c" to create an CIE overcast sky (probably not very
> accurate for Venice either - I'm sure you get some sun there.).
>
> Regards,
> Thomas
>
>
> On 18 Feb 2009, at 10:30, Valeria De Giuli wrote:
>
>> 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
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
> _______________________________________________
> 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