19 |
|
- |
20 |
|
.br |
21 |
|
.B getinfo |
22 |
+ |
{ |
23 |
|
.B -a |
24 |
+ |
| |
25 |
+ |
.B -r |
26 |
+ |
} |
27 |
|
.B "info_line1 .." |
28 |
|
.br |
29 |
|
.B getinfo |
77 |
|
These lines are given as arguments to |
78 |
|
.I getinfo, |
79 |
|
and must be quoted if they contain spaces. |
80 |
+ |
The alternative form with |
81 |
+ |
.I \-r |
82 |
+ |
replaces any previous occurances of the settings in the given |
83 |
+ |
line(s) with nothing if there is only one word, or with |
84 |
+ |
the whole line if quoted and containing interior white space or |
85 |
+ |
an equals sign ('='). |
86 |
+ |
Any leading white space matches any leading number of spaces and |
87 |
+ |
tabs in the input header. |
88 |
|
.PP |
89 |
|
The fourth form of |
90 |
|
.I "getinfo \-c" |
118 |
|
and exposure calibration of a picture: |
119 |
|
.IP "" .2i |
120 |
|
getinfo -a "VIEW= -vta -vh 180 -vv 180" "EXPOSURE=1.5" < orig.hdr > modified.hdr |
121 |
+ |
.PP |
122 |
+ |
To remove any indented lines containing "EXPOSURE=" and replace any |
123 |
+ |
left-justified "EXPOSURE=" lines with a single value of 16: |
124 |
+ |
.IP "" .2i |
125 |
+ |
getinfo -r " EXPOSURE=" "EXPOSURE=16" < orig.hdr > fixed.hdr |
126 |
|
.PP |
127 |
|
To raise floating-point matrix elements to a power of 2.7: |
128 |
|
.IP "" .2i |