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.12 by greg, Mon Nov 11 18:38:41 2019 UTC vs.
Revision 1.18 by greg, Thu Jan 25 19:25:50 2024 UTC

# Line 1 | Line 1
1   .\" RCSid "$Id$"
2 < .TH RCOLLATE 1 7/8/97 RADIANCE
2 > .TH RCOLLATE 1 9/5/2013 RADIANCE
3   .SH NAME
4 < rcollate - resize or transpose matrix data
4 > rcollate - resize or re-order matrix data
5   .SH SYNOPSIS
6   .B rcollate
7   [
# Line 9 | Line 9 | rcollate - resize or transpose matrix data
9   ][
10   .B \-w
11   ][
12 < .B \-f[afdb][N]
12 > .B \-c
13   ][
14 + .B \-f{a|f|d|b}[N]
15 + ][
16   .B \-t
17   ][
18   .B "\-ic in_col"
# Line 61 | Line 63 | The
63   .I \-w
64   option turns off non-fatal warning messages, such as unexpected EOD.
65   .PP
66 + Normally,
67 + .I rcollate
68 + detects whether any transformation is actually taking place, and will
69 + reproduce the data verbatim if the input size and shape should be unaltered.
70 + The
71 + .I \-c
72 + opiton forces the operation to proceed, even if it appears to be a no-op,
73 + which can be useful to correct a misshapen input matrix or check that
74 + the data is the proper size and formatted correctly (in the case of ASCII input).
75 + .PP
76   The input format is assumed to be ASCII, with three white-space separated words
77   (typically numbers) in each record.
78   A different input format may be specified with the
# Line 89 | Line 101 | and
101   would all be equivalent.
102   Note that the lack of row separators in binary files means that
103   .I rcollate
104 < does not actually do anything for binary files unless the transpose
105 < option is given, also.
104 > does not actually do anything for binary files unless the data is being
105 > re-ordered.
106   .PP
107   If an input header is present, it may contain the format, number of components
108   and matrix dimensions.
# Line 101 | Line 113 | and
113   .I \-f
114   options are not required, but will be checked against the header
115   information if provided.
116 + An exception is made for
117 + .I \-fbN
118 + where N>1, when no checks are made against the header,
119 + and the given length is assumed
120 + to be the exact size (in bytes) of each data record.
121   .PP
122   The transpose option,
123   .I \-t
124   swaps rows and columns on the input.
125 < For binary files, the user must specify at least one input or output
126 < dimension to define the matrix size.
125 > For binary files with no header information, the user must
126 > specify at least one input or output dimension to define the matrix size.
127   For ASCII files,
128   .I rcollate
129   will automatically determine the number of columns based on the
130   position of the first EOL (end-of-line) character, and the number
131   of rows based on the total count of records in the file.
132   The user may override these determinations, allowing the matrix to
133 < be resized as well as transposed.
134 < If input and output dimensions are given, the number of input rows
135 < must equal the number of output columns,
133 > be resized or re-ordered as well as transposed.
134 > If input and output dimensions are given and there is no block re-ordering,
135 > the number of input rows must equal the number of output columns,
136   and the number of input columns must equal the number of output rows.
120 For large transpose operations on Unix systems, it is most efficient
121 to specify the input file on the command line, rather than reading
122 from the standard input, since
123 .I rcollate
124 can map the file directly into virtual memory.
137   If the
138   .I \-o
139   option is also given with multiple block levels, the transpose operation
140 < will logically precede the reblocking operation, regardless of the order
141 < they are given on the command line.
140 > will logically precede the re-ordering operation, regardless of their
141 > position on the command line.
142   .SH EXAMPLES
143   To change put 8760 color triplets per row in a matrix with no header:
144   .IP "" .2i
# Line 148 | Line 160 | rcollate -o 64x64X32x32 s-c_bsdf.mtx | rmtxop -fc - >
160   .SH AUTHOR
161   Greg Ward
162   .SH NOTES
163 + For large transpose or re-ordering operations on Unix systems,
164 + it is most efficient to specify the input file on the command line,
165 + rather than reading from the standard input, since
166 + .I rcollate
167 + can map the file directly into virtual memory.
168 + .PP
169   The
170   .I rcollate
171   command is rather inflexible when it comes to output field and record
# Line 158 | Line 176 | between words and tabs as record separators on output.
176   Output row separtors will always be an EOL, which may differ between systems.
177   .PP
178   If no options are given on the command line, or a binary file is specified
179 < without a transpose,
179 > without a transpose or re-ordering,
180   .I rcollate
181   issues a warning and simply copies its input to its standard output.
182   .SH "SEE ALSO"
183 < cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rmtxop(1),
184 < rsplit(1), tabfunc(1), total(1)
183 > cnt(1), histo(1), neaten(1), rcalc(1), rcomb(1), rcrop(1), rlam(1),
184 > rsensor(1), rmtxop(1), rsplit(1), tabfunc(1), total(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines