I'd like to do glare analysis (evalglare) using HDR images generated in OS/Radiance. I only want to do this for uncontrolled windows for now. First step is to get the images generated. The below is the code I'm proposing in the runSimulation
routine. unctrld_wg_glr_b
is a user-selected parameter that will choose either to run an annual illuminance run, or generate HDR images. Any thoughts on a better approach?
windowMaps.each do |row|
# skip header
next if row[0] == "#"
wg = row.split(",")[0]
# do uncontrolled windows (WG0)
if wg == "WG0"
# if row.split(",")[2] == "n/a" || row.split(",")[2] == "AlwaysOff"
# keep header, convert to illuminance, but no transpose
### foo (-ff)
while merge_count() > 2
puts "waiting in rmtxop queue..."
sleep(5)
end
# if user-specifies to generate hourly images for later glare processing...
if unctrld_wg_glr_b = 'Yes'
rad_command = "dctimestep output/ts/#{wg}_%04d.hdr output/dc/#{wg}.vmx annual-sky.mtx"
else
rad_command = "dctimestep output/dc/#{wg}.vmx annual-sky.mtx | rmtxop -fa -c 47.4 120 11.6 - > output/ts/#{wg}.ill"
exec_statement(rad_command, runner)