[Radiance-general] The Three-Phase Method for Simulating Complex Fenestration with Radiance

Axel Jacobs jacobs.axel at gmail.com
Wed Jul 24 06:29:44 PDT 2013


Hi Greg, Leyla,

> Oh, oops!  Guess that is the way it works, not the other way around.  If you output into a single file as you were doing, the first 8760*3 values are the first sensor, the next 8760*3 are the next sensor, and so on.  A simple sed script should work for separating them, and you can automate generating the sed script using rcalc.  If you have 20 sensor, you would use:
>
> % cnt 20 | rcalc -e 'a=8761*$1+2;b=8761*($1+1)' -o '${a},${b}w sensor${recno}.txt' > sedscr.txt
> % [dctimestep command] | tr \\t \\n | sed -n -f sedscr.txt

I've just tried this out. The rcalc bit only works when a,b are up to
six digits long, which is 114 sensor points. rcalc goes into
exponential notation beyond this.
If you have more than 114 sensors, use this awk replacement instead:

cnt 115 | awk '{a=8761*$1+2; b=8761*($1+1); print a","b"w
sensor"NR".txt"}' > sedscr.txt


Regards

Axel



More information about the Radiance-general mailing list