9 |
|
][ |
10 |
|
.B \-w |
11 |
|
][ |
12 |
< |
.B \-f[afdb][N]] |
12 |
> |
.B \-f[afdb][N] |
13 |
|
][ |
14 |
|
.B \-t |
15 |
|
][ |
20 |
|
.B "\-oc out_col" |
21 |
|
][ |
22 |
|
.B "\-or out_row" |
23 |
+ |
][ |
24 |
+ |
.B "\-o RxC[xR1xC2..]" |
25 |
|
] |
26 |
|
[ |
27 |
|
.B input.dat |
32 |
|
the number of columns specified by the |
33 |
|
.I \-oc |
34 |
|
option. |
35 |
+ |
The number of rows may be specified with a |
36 |
+ |
.I \-or |
37 |
+ |
option, or may be determined automatically from the size of the input if |
38 |
+ |
it is an even multiple of the number of columns (as it should be). |
39 |
+ |
Alternatively, both may be specified using a |
40 |
+ |
.I \-o |
41 |
+ |
option with the number of rows and columns separated by an 'x', as in "30x14" |
42 |
+ |
for 30 rows by 14 columns. |
43 |
+ |
.I Rcollate |
44 |
+ |
can also reorder the input into nested blocks by continuing the output size |
45 |
+ |
string. |
46 |
+ |
For example, "3x10X7x2" would order output data with a 3x10 super-array of |
47 |
+ |
7x2 subblocks. |
48 |
+ |
This type of block hierarchy is convenient for visualizing tensor data. |
49 |
+ |
.PP |
50 |
|
By default, the file is assumed to include an information header, which |
51 |
|
is copied to the standard output along with the command name. |
52 |
|
The |
122 |
|
from the standard input, since |
123 |
|
.I rcollate |
124 |
|
can map the file directly into virtual memory. |
125 |
< |
.SH EXAMPLE |
125 |
> |
If the |
126 |
> |
.I \-o |
127 |
> |
option is also given with multiple block levels, the transpose operation |
128 |
> |
will logically precede the reblocking operation, regardless of the order |
129 |
> |
they are given on the command line. |
130 |
> |
.SH EXAMPLES |
131 |
|
To change put 8760 color triplets per row in a matrix with no header: |
132 |
|
.IP "" .2i |
133 |
|
rcollate -h \-oc 8760 input.dat > col8760.dat |
135 |
|
To transpose a binary file with 145 float triplets per input row: |
136 |
|
.IP "" .2i |
137 |
|
rcollate -ff3 -ic 145 -t orig.flt > transpose.flt |
138 |
+ |
.PP |
139 |
+ |
To create an appropriate header for a binary float matrix as required by |
140 |
+ |
.I rmtxop(1)\: |
141 |
+ |
.IP "" .2i |
142 |
+ |
rcollate -hi -ff3 -or 145 -oc 8760 input.smx | rmtxop dcoef.dmx - > res.txt |
143 |
+ |
.PP |
144 |
+ |
To visualize a Shirley-Chiu BTDF matrix where the interior resolution is |
145 |
+ |
64x64 and the exterior resolution is 32x32: |
146 |
+ |
.IP "" .2i |
147 |
+ |
rcollate -o 64x64X32x32 s-c_bsdf.mtx | rmtxop -fc - > s-c_bsdf.hdr |
148 |
|
.SH AUTHOR |
149 |
|
Greg Ward |
150 |
|
.SH NOTES |
162 |
|
.I rcollate |
163 |
|
issues a warning and simply copies its input to its standard output. |
164 |
|
.SH "SEE ALSO" |
165 |
< |
cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), tabfunc(1), total(1) |
165 |
> |
cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rmtxop(1), |
166 |
> |
rsplit(1), tabfunc(1), total(1) |