Writes a new keyword to the FITS extension FITSWRITE
It is a synonym for fitsmod edit=write mode=interface position=!
.
!
)
gives a blank comment. The special value "$C"
means use the current comment. In
addition "$C(
keyword)"
requests that the comment of the keyword given between
the parentheses be assigned to the keyword being edited. If this positional
keyword does not exist, the comment is is blank. Note that it is not normal to have multiple occurrences of a keyword in a FITS header, unless it is blank, COMMENT or HISTORY.
The suggested value is the current value.
The new keywords are inserted immediately before each corresponding position
keyword. If any name in it does not exist in FITS array, or the null value (!
)
is supplied, the KEYWORD keyword will be inserted just before the END card
or appended to FITS array when the END card does not exist. [!]
FALSE
, inferred data typing is used. So for
instance if Parameter VALUE = "Y"
, it would appears as logical TRUE
rather
than the string ’Y ’
in the FITS header. See topic "Value Data Type"
.
When STRING is TRUE
, the value will be treated as a string for the purpose of
writing the FITS header. [FALSE]
"$V"
means use the current value of the
KEYWORD keyword. This makes it possible to modify a comment, leaving the value
unaltered. In addition "$V(
keyword)"
requests that the value of the reference keyword
given between the parentheses be assigned to the keyword being written. This
reference keyword must exist and have a value. "Airmass at mid-observation"
. The header is located just before
the end. "O’Leary"
, and
its comment is copied from keyword PRININV. The modified FITS extension lies
within the NDF called afcyg. "27"
. There is
no comment. The keyword is located at the end of the headers, but before any
END card. " Detector name"
, the
leading spaces are significant. The keyword is located at the current position
keyword. For the text-file, values enclosed in quotes (’
) or doubled quotes ("
) are strings.
Note that numeric or logical string values must be quoted to prevent them being
converted to a numeric or logical value in the FITS extension.
For prompting the value is a string when Parameter STRING is TRUE
.
Otherwise type conversions of the first word after the keywords are made to integer, double precision, and logical types in turn. If a conversion is successful, that becomes the data type. In the case of double precision, the type is set to real when the number of significant digits only warrants single precision. If all the conversions failed the value is deemed to be a string.