CPHEAD(1)

✨ CPHEAD(1) ✨

okay bestie, gather round πŸ’– this one lives in User Commands, and it's literally the glow-up tool for your FITS headers. no cap.


πŸŽ€ NAME πŸŽ€

cphead β€” AME

(yes that's what it says, and yes we're keeping it exactly like that πŸ’…)


πŸ¦‹ SYNOPSIS πŸ¦‹

cphead [-v][-d dir][-p num] file1.fit ... filen.fits kw1 kw2 ... kwn

🌸 DESCRIPTION 🌸

So the whole vibe is: Copy FITS or IRAF header keyword values from first file to others. That's it. That's the job. You take the keywords from the first file and you spread them to the other files like the moment everyone copies the main character's outfit ✨

there's also these two alternate forms, and they're iconic:

or : cphead [-v][-d dir][-p num] file1.fit @filelist kw1 kw2 ... kwn
or : cphead [-v][-d dir][-p num] file1.fit @filelist @kwlist

and here come the options, one bullet each because we do NOT skip πŸ‘‘

  • -a β€” Replace header of 2nd file with that from first. full makeover, no survivors πŸ’–
  • -d β€” Root directory for input files (default is cwd). so if you're feeling lazy and not standing in the right folder, this is your girl 🫢
  • -h β€” Write HISTORY line. it leaves receipts πŸ“
  • -k β€” Write CPHEAD keyword.
  • -n β€” Write a new file (add e before the extension). new file, who dis πŸ’…
  • -p β€” Number of decimal places in numeric output. so you can control the ✨precision✨ bestie
  • -v β€” Verbose. it will literally tell you everything and honestly? we love a chatty queen 😭
  • -w β€” Copy all WCS keywords.
reminder that -d has a default of cwd β€” if you don't say where the input files live, it just assumes you're already there. periodt.

and that's the whole page, no notes πŸ’œ

cphead came from source cphead EB_SOURCE, dated February 2026 β€” shoutout to the manual page that got the ✨treatment✨. bye bestie, go copy some keywords, iykyk πŸ”₯πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from