add_card
Arguments appearing in italic are optional.call add_card( header, kwd, value [, comment, update] )
name & dimensionality | kind | in/out | description |
---|---|---|---|
header(LEN=80) DIMENSION(:) | CHR | INOUT | The header to write the keyword to. |
kwd(LEN=*) | CHR | IN | the FITS keyword to write. Should be shorter or equal to 8 characters. |
value | any | IN | the value to give to the keyword. |
comment(LEN=*) | CHR | IN | comment to the keyword. |
update | LGT | IN | if set to .true., the first occurence of the keyword kwd in header will be updated (and all other occurences removed); otherwise, the keyword will be appended at the end (and any previous occurence removed). If the keyword is either 'HISTORY' or 'COMMENT', update is ignored and the keyword is peacefully appended at the end of the header. |
Gives the keyword `NSIDE' the value 256 in the given header-string. It is important to make sure that the header string array is empty before attempting to write anything in it.
Version 3.11, 2013-04-24