Hi Devon,

I looked into this some more, and there's not much I can do to change rtrace 
without breaking other tools, unfortunately.

I just tweaked dctimestep so that it doesn't insert a leading tab on the first 
record, bringing its output in line with that of rcollate.  Not sure if this is 
any help.

The reason I don't actually output columns on a single line with gendaymtx is 
that most text editors will choke on a 130 KByte line, although you can get 
that easily with something like "rcollate -oc 8760" if you want it.  Passing to 
dctimestep (if that's your plan) is faster with the gendaymtx "-of" option, 
anyway, since you avoid the back-and-forth between ASCII and float 
representations that takes so much time.

Cheers,
-Greg

> From: Devon Sparks <devon.spa...@arup.com>
> Subject: [Radiance-dev] Radiance ASCII format specification
> Date: April 7, 2014 5:20:15 PM PDT
> 
> Does Radiance specify[1] a standard ASCII format for RGB output? I've 
> observed two "defaults":
> 
> * rtrace, rcalc - RGB fields separated by tabs. Sensor records separated by 
> newlines.
> $ vwrays -vf myview.vf | head -n 1 |  rtrace -ab 0 -h model.oct
> $    0.000000e+00<TAB>0.000000e+00<TAB>0.000000e+00<TAB><CR>
> 
> * dctimestep - RGB fields separated by spaces. Time-series records separated 
> by tabs. Sensor records separated by newlines.
> $ gendaymtx -m 4 city.wea | dctimestep -n 8760 model.dc | head -n 1
> $    
> 0.000000e+00<SP>0.000000e+00<SP>0.000000e+00<TAB>0.000000e+00<SP>0.000000e+00<SP>0.000000e+00<TAB>...
> 
> Is there any reason to think that these two format specifications should be 
> unified in the standard distribution (e.g. fields separated by spaces, 
> time-based records separated by tabs, spatial records separated by newlines)? 
> How many tools would be broken in the process? 
> 
> Thanks in advance — Devon
> 
> [1] http://radsite.lbl.gov/radiance/refer/filefmts.pdf
> 
> Devon Sparks
> Consultant  |  Lighting Group
_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Reply via email to