1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
.help parkey Dec90 tables
.ih
NAME
parkey -- Write an IRAF parameter to a header keyword.
.ih
USAGE
parkey value output keyword
.ih
DESCRIPTION
This task changes the value of a header keyword in either a table or an
image. If the value of the task parameter 'add' is "yes", the task will
allow you to add a new keyword to the header, otherwise, adding a new
keyword will cause an error. Type conversion is performed if the data type of
the header keyword differs from the data type of the input parameter 'value'.
If a new
keyword is added to the file, the type is determined
from the input value. The
strings "yes", "y", "no", "n", "true", "t", "false", and "f", in either
upper or lower case, are interpreted as boolean values.
.ih
PARAMETERS
.ls value [string]
Input value to be written to the header keyword. (Strings are case sensitive.)
.le
.ls output [file name]
Name of the file whose header keyword is to be changed.
.le
.ls keyword [string]
Name of the header keyword to be changed. (The name is not case sensitive.)
.le
.ls (add = no) [boolean]
Allow new header keywords to be added?
If 'add = no', then existing keywords
can take new values but no new keywords can be added to the file.
.le
.ih
EXAMPLES
1. Set the header keyword 'OVERSCAN' in the file 'image.hhh' to 5:
.nf
tt> parkey 5 image.hhh overscan
.fi
2. Set the group parameter 'CTYPE1' in the second group of the same
file to "ANGSTROM":
.nf
tt> parkey ANGSTROM image.hhh[2] ctype1
.fi
3. Set the header keyword 'YSTEP' to the value stored
in the IRAF parameter 'x':
.nf
tt> parkey (x) image.hhh ystep
.fi
4. Add the keyword 'COMPNAME' to the table header and put the value "FILTER1"
in it:
.nf
tt> parkey FILTER1 graph.tab compname add+
.fi
.ih
BUGS
.ih
REFERENCES
This task was written by Bernie Simon.
.ih
SEE ALSO
keypar, keytab, partab, tabkey, tabpar
.endhelp
|