ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/rcollate.1
(Generate patch)

Comparing ray/doc/man/man1/rcollate.1 (file contents):
Revision 1.1 by greg, Thu Sep 5 17:53:22 2013 UTC vs.
Revision 1.5 by greg, Fri May 30 00:00:54 2014 UTC

# Line 7 | Line 7 | rcollate - resize or transpose matrix data
7   [
8   .B \-h
9   ][
10 + .B \-w
11 + ][
12   .B \-f[afdb][N]]
13   ][
14   .B \-t
# Line 32 | Line 34 | By default, the file is assumed to include an informat
34   is copied to the standard output along with the command name, but the
35   .I \-h
36   option may be used to turn this behavior off.
37 + The
38 + .I \-w
39 + option turns off non-fatal warning messages, such as unexpected EOD.
40   .PP
41   The input format is assumed to be ASCII, with three white-space separated words
42   (typically numbers) in each record.
# Line 59 | Line 64 | On most architectures,
64   and
65   .I \-fb24
66   would all be equivalent.
67 < Note also that the lack of row separators in binary files means that
67 > Note that the lack of row separators in binary files means that
68   .I rcollate
69   does not actually do anything for binary files unless the transpose
65 .I \(\-t\)
70   option is given, also.
71   .PP
72 + If an input header is present, it may contain the format, number of components
73 + and matrix dimensions.
74 + In such cases, the
75 + .I \-ic,
76 + .I \-ir
77 + and
78 + .I \-f
79 + options are not required, but will be checked against the header
80 + information if provided.
81 + .PP
82   The transpose option,
83   .I \-t
84   swaps rows and columns on the input.
# Line 74 | Line 88 | For ASCII files,
88   .I rcollate
89   will automatically determine the number of columns based on the
90   position of the first EOL (end-of-line) character, and the number
91 < of rows based on the count of records in the file.
91 > of rows based on the total count of records in the file.
92   The user may override these determinations, allowing the matrix to
93   be resized as well as transposed.
94   If input and output dimensions are given, the number of input rows
95   must equal the number of output columns,
96 < and the number of input columns must equal the number of output rows
97 < with the
84 < .I \-t
85 < option.
86 < For large transpose operations on Unix systems, it is much more efficient
96 > and the number of input columns must equal the number of output rows.
97 > For large transpose operations on Unix systems, it is most efficient
98   to specify the input file on the command line, rather than reading
99   from the standard input, since
100   .I rcollate
101 < can map the file directly into memory.
101 > can map the file directly into virtual memory.
102   .SH EXAMPLE
103   To change put 8760 color triplets per row in a matrix with no header:
104   .IP "" .2i
# Line 103 | Line 114 | The
114   .I rcollate
115   command is rather inflexible when it comes to output field and record
116   separators for ASCII data.
117 < It accepts any number or type of white space between input fields
117 > It accepts any amount of white space between fields
118   on input, but only produces spaces as field separators
119 < between words and tabs as record separators.
119 > between words and tabs as record separators on output.
120   Output row separtors will always be an EOL, which may differ between systems.
121   .PP
122   If no options are given on the command line, or a binary file is specified
123   without a transpose,
124   .I rcollate
125 < issues a warning and simply copies its input to the standard output.
125 > issues a warning and simply copies its input to its standard output.
126   .SH "SEE ALSO"
127   cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), tabfunc(1), total(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines