[Radiance-general] rcollate troubles in Five-Phase CFS tutorial

Greg Ward gregoryjward at gmail.com
Tue Apr 15 22:15:15 PDT 2014


Sorry -- this is probably my fault.  To make dctimestep work for multiplying matrices together, I altered it to output a header if and only if there was more than one column being produced.  This is pretty non-standard behavior for a Radiance tool, and wasn't documented by Andy because he wrote the scripts before the change.

The -h option of rcollate means don't expect a header on input AND don't produce one on output.  To get what you want, you need to take away the -h option to rcollate and/or insert "getinfo -" somewhere to strip the header.  This should work for your last command:

dctimestep -n 8760 -if matrices/directsun.dsmx matrices/OakLand_direct_m6.smx | \
      rcollate -oc 1 | getinfo - > i_ds5ph.txt

Or this:

dctimestep -n 8760 -if matrices/directsun.dsmx matrices/OakLand_direct_m6.smx | \
     | getinfo - | rcollate -h -oc 1 > i_ds5ph.txt

If you are OK with having a header in the output, use the first command above without the getinfo call.  Does this make sense?

-Greg

> From: Chris Coulter <Chris.Coulter at BuroHappold.com>
> Subject: [Radiance-general] rcollate troubles in Five-Phase CFS tutorial
> Date: April 15, 2014 9:16:25 PM PDT
> 
> All,
>  
> I’m having some issues running through Andy’s Five-Phase CFS tutorial, specifically the last stages of combining all of the matrices into readable illuminance data. I’m using the bash script that was included in the downloadable files. I can get through section 6.7 without any errors (so it seems). I start to get errors in 6.8 Putting it all together.
>  
> The epw2wea and gendaymtx seem to work just fine. I get errors of “Incomplete record / unexpected EOF” when running the dctimestep commands for the base 3-phase and direct 3-phase pieces. I also receive a “Bad transpose specification – check dimension(s)” error on output of the direct sun dctimestep. The commands I’ve executed are as follows:
>  
> time dctimestep -n 8760 -if matrices/viewmatrix.vmx bsdf/fullwindow.xml  \
>       matrices/daylightmatrix.dmx matrices/OakLand.smx | \
>       rcollate -h -oc 1 > i_3ph.txt
> time dctimestep -n 8760 -if  matrices/viewmatrix_direct.vmx bsdf/fullwindow.xml  \
>       matrices/daylightmatrix_direct.dmx matrices/OakLand_direct.smx | \
>       rcollate -h -oc 1 > i_ds3ph.txt
> time dctimestep -n 8760 -if matrices/directsun.dsmx matrices/OakLand_direct_m6.smx | \
>       rcollate -h -oc 1 > i_ds5ph.txt
>  
> Has anyone else run into these errors? I tried to separate dctimestep from piping directly into rcollate to see if I could track down the problem. Seems as if dctimestep creates a file the has a header, then 6 rows of data (corresponding to photocells.pts), with each row containing RGB triplets in floating point format. Counting up columns, looks like there are 8760 triplets. This is what I would expect.
> I then would expect rcollate to transform the matrix and strip off the header (-h). I was expecting the output matrix to be 8760 rows by 6 column, I’ve tried playing around w/ various –oc –ic –or –ir options in multiple combinations, but keep getting errors.
>  
> Any help would be greatly appreciated. I feel like I’ve managed to understand things to this point and am now getting hung up on some minutia…(such is life w/ Radiance)!
>  
> Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20140415/2c22307a/attachment-0001.html>


More information about the Radiance-general mailing list