logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sethead - Set FITS or IRAF header keyword values

Author

       Jessica Mink, SAO (jmink@cfa.harvard.edu)

6 July 2001                                         WCSTools                                          sethead(1)

Description

       Set  parameters  in  the  header of a FITS or IRAF image.  If the keywords do not already exist, they are
       added at the end of the header.  Values  are  assumed  to  be  numeric  if  they  contain  no  alphabetic
       characters  and  right-aligned.   Otherwise  they  are  left-aligned after the equals sign, and padded by
       spaces to a minimum of 8 characters.  To set keywords in a list of files, substitute @<listfile> for  the
       file  names  on  the  command  line.   To  set  a  lot of keywords, put them, one per line, in a file and
       substitute @<keylistfile> on the command line.  If two @ commands are present, the  program  will  figure
       out  which  contains  file  names and which contains keywords.  Lines in a keyword list file which do not
       contain an = are ignored.

Name

       sethead - Set FITS or IRAF header keyword values

Options

-h     Write HISTORY line into output header with sethead version, current date and time,  and  names  of
              keywords set.

       -k     Write SETHEAD keyword into output header with sethead version, current date and time, and names of
              keywords  set.   If  a SETHEAD keyword already exists, move the old value to a HISTORY line before
              writing the new value

       -n     Write a new file with an added "e" before the extension.

       -rletter
              Rename existing keywords whose values are being reset by prepending the character "letter".   Drop
              the last character if the changed keyword is already 8 characters long.

       -v     Print confirmations of each parameter setting

Synopsis

       sethead [-dknv][r letter] <FITS or IRAF file> kw1=val1 kw2=val2 ... kwn=valuen

Web Page

See Also