1 |
.\" RCSid "$Id: getinfo.1,v 1.6 2014/07/28 17:25:03 greg Exp $" |
2 |
.TH GETINFO 1 1/15/99 RADIANCE |
3 |
.SH NAME |
4 |
getinfo - get header information from a RADIANCE file |
5 |
.SH SYNOPSIS |
6 |
.B getinfo |
7 |
[ |
8 |
.B -d |
9 |
][ |
10 |
.B "file .." |
11 |
] |
12 |
.br |
13 |
.B getinfo |
14 |
- |
15 |
.br |
16 |
.B getinfo |
17 |
.B -a |
18 |
.B "info_line1 .." |
19 |
.br |
20 |
.B getinfo |
21 |
.B -c |
22 |
.B "command .." |
23 |
.SH DESCRIPTION |
24 |
.I Getinfo |
25 |
reads the header of each RADIANCE |
26 |
.I file |
27 |
and writes it to the standard output. |
28 |
Octree and picture files are in a binary format, which makes |
29 |
it difficult to determine their content. |
30 |
Therefore, a few lines of text are placed at the beginning |
31 |
of each file by the RADIANCE program that creates it. |
32 |
The end of the header information and the start of the |
33 |
data is indicated by an empty line. |
34 |
The |
35 |
.I \-d |
36 |
option can be used to print the dimensions of an octree or |
37 |
picture file instead. |
38 |
For an octree, |
39 |
.I "getinfo \-d" |
40 |
prints the bounding cube (xmin ymin zmin size). |
41 |
For a picture, |
42 |
.I "getinfo \-d" |
43 |
prints the y and x resolution (\-Y yres +X xres). |
44 |
If no |
45 |
.I file |
46 |
is given, the standard input is read. |
47 |
.PP |
48 |
The second form of |
49 |
.I getinfo |
50 |
with a hyphen simply removes the header |
51 |
and copies the body of the file from the standard |
52 |
input to the standard output. |
53 |
.PP |
54 |
The third form of |
55 |
.I "getinfo \-a" |
56 |
adds one or more header lines to the standard input. |
57 |
These lines are given as arguments to |
58 |
.I getinfo, |
59 |
and must be quoted if they contain spaces. |
60 |
.PP |
61 |
The fourth form of |
62 |
.I "getinfo \-c" |
63 |
is followed by a command and its arguments, which is executed |
64 |
on the data segment of the standard input. |
65 |
The header is passed along, with the addition of the command |
66 |
at the end. |
67 |
This is roughly equivalent to the following sequence, but does not |
68 |
require the input to be in a file: |
69 |
.IP "" .2i |
70 |
( getinfo < input ; getinfo - < input | command .. ) |
71 |
.SH EXAMPLE |
72 |
To print the header information from scene1.oct and scene2.hdr: |
73 |
.IP "" .2i |
74 |
getinfo scene1.oct scene2.hdr |
75 |
.SH AUTHOR |
76 |
Greg Ward |
77 |
.SH "SEE ALSO" |
78 |
oconv(1), pfilt(1), rcalc(1), rhinfo(1), rpict(1), rvu(1) |