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 (addebefore 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-dhas a default ofcwdβ 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
- ubuntu resolute: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- ubuntu stonking: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms