Script of Radiance for Windows in BCVTB

107 views
Skip to first unread message

Σωτήρης Παπαντωνίου

unread,
Oct 29, 2012, 4:21:04 PM10/29/12
to bc...@googlegroups.com
Hello list,

I was trying to run the example of Radiance in BCVTB in Windows OS, and I found that the required script is written in a format suitable for MAC or Linux.

Has any user developed any script for Windows in order to understand how it works and try to develop a similar for my research?

Thank you in advance

Sotiris

Ralph Evins

unread,
Dec 19, 2012, 5:31:34 AM12/19/12
to bc...@googlegroups.com
Here is a Windows batch file I've made that does the same as the CSH script in the Radiance40 example.
It's very much work in progress. The main differences are:
  • No check using gensky (awk doesn't work on windows)
  • No gendaylit (not in standard Desktop Radiance distribuiton)
For more advanced windows .bat files for Radiance and DaySim you could look at those included with Diva for Rhino.

In system.xml, change the SystemCommand programName to radiance.bat
Save the following to radiance.bat in \radiance40\

@echo off
 set month=%~1
 set day=%~2
 set hour=%~3
 set dirnorm=%~4
 set difhoriz=%~5
 set lat=%~6
 set long=%~7
 set mer=%~8
 gensky %month% %day% %hour% -a %lat% -o %long% -m %mer% > rads/sky.rad
 oconv -w rads/sky.rad rads/sky2.rad rads/approx.mat rads/room_basic.rad rads/top_panels.rad rads/desks.rad rads/PC.rad rads/window_pane.rad rads/glass.rad > octs/model_sky.oct
 echo 22 60 32 0 0 1 > data/test.pts
 rtrace -h -w -I -ab 2 -ad 2000 -as 1000 < data/test.pts octs/model_sky.oct | rcalc -e '$1=179*($1*0.265+$2*0.670+$3*0.065)' 

Also, save the sky descriptions below to the file /rads/sky2.rad (since these are static I'm not sure why they were included in the CSH script).
skyfunc glow skyglow
0
0
4 1 1 1 0

skyglow source sky
0
0
4 0 0 1 180

skyglow source ground
0
0
4 0 0 -1 180

Cahyo Adisaputro

unread,
Apr 15, 2020, 10:11:26 AM4/15/20
to bcvtb
HI Ralph,

Do you manage to finish the batch script ? I am new to Radiance and BCVTB, I would like to learn them for my thesis.

Thanks in advance
Reply all
Reply to author
Forward
0 new messages