| 1 |
< |
.\" RCSid "$Id" |
| 1 |
> |
.\" RCSid "$Id$" |
| 2 |
|
.TH GETINFO 1 1/15/99 RADIANCE |
| 3 |
|
.SH NAME |
| 4 |
|
getinfo - get header information from a RADIANCE file |
| 11 |
|
] |
| 12 |
|
.br |
| 13 |
|
.B getinfo |
| 14 |
+ |
[ |
| 15 |
+ |
.B -d |
| 16 |
+ |
] |
| 17 |
|
- |
| 18 |
+ |
.br |
| 19 |
+ |
.B getinfo |
| 20 |
+ |
.B -a |
| 21 |
+ |
.B "info_line1 .." |
| 22 |
+ |
.br |
| 23 |
+ |
.B getinfo |
| 24 |
+ |
[ |
| 25 |
+ |
.B -d |
| 26 |
+ |
] |
| 27 |
+ |
.B -c |
| 28 |
+ |
.B "command .." |
| 29 |
|
.SH DESCRIPTION |
| 30 |
|
.I Getinfo |
| 31 |
|
reads the header of each RADIANCE |
| 46 |
|
prints the bounding cube (xmin ymin zmin size). |
| 47 |
|
For a picture, |
| 48 |
|
.I "getinfo \-d" |
| 49 |
< |
prints the y and x resolution (-Y yres +X xres). |
| 49 |
> |
prints the y and x resolution (\-Y yres +X xres). |
| 50 |
|
If no |
| 51 |
|
.I file |
| 52 |
|
is given, the standard input is read. |
| 53 |
|
.PP |
| 54 |
< |
The second form of getinfo with a hyphen simply removes the header |
| 54 |
> |
The second form of |
| 55 |
> |
.I getinfo |
| 56 |
> |
with a hyphen simply removes the header |
| 57 |
|
and copies the body of the file from the standard |
| 58 |
|
input to the standard output. |
| 59 |
+ |
If the |
| 60 |
+ |
.I \-d |
| 61 |
+ |
option is included, then the resolution string will be elided as well. |
| 62 |
+ |
.PP |
| 63 |
+ |
The third form of |
| 64 |
+ |
.I "getinfo \-a" |
| 65 |
+ |
adds one or more header lines to the standard input. |
| 66 |
+ |
These lines are given as arguments to |
| 67 |
+ |
.I getinfo, |
| 68 |
+ |
and must be quoted if they contain spaces. |
| 69 |
+ |
.PP |
| 70 |
+ |
The fourth form of |
| 71 |
+ |
.I "getinfo \-c" |
| 72 |
+ |
is followed by a command and its arguments, which is executed |
| 73 |
+ |
on the data segment of the standard input. |
| 74 |
+ |
The header is passed along, with the addition of the command |
| 75 |
+ |
at the end. |
| 76 |
+ |
This is roughly equivalent to the following sequence, but does not |
| 77 |
+ |
require the input to be in a file: |
| 78 |
+ |
.IP "" .2i |
| 79 |
+ |
( getinfo < input ; getinfo - < input | command .. ) |
| 80 |
+ |
.PP |
| 81 |
+ |
If the |
| 82 |
+ |
.I \-d |
| 83 |
+ |
option is included, then the resolution string will be copied |
| 84 |
+ |
before the command is called. |
| 85 |
|
.SH EXAMPLE |
| 86 |
< |
To print the header information from scene1.oct and scene2.pic: |
| 86 |
> |
To print the header information from scene1.oct and scene2.hdr: |
| 87 |
|
.IP "" .2i |
| 88 |
< |
getinfo scene1.oct scene2.pic |
| 88 |
> |
getinfo scene1.oct scene2.hdr |
| 89 |
|
.SH AUTHOR |
| 90 |
|
Greg Ward |
| 91 |
|
.SH "SEE ALSO" |
| 92 |
< |
oconv(1), pfilt(1), rhinfo(1), rpict(1), rview(1) |
| 92 |
> |
oconv(1), pfilt(1), rcalc(1), rhinfo(1), rpict(1), rsplit(1), rtrace(1), rvu(1) |