sethead(1)
β¨ sethead(1) β the manual page, but make it cute β¨
okay bestie, pull up a chair, because we're talking about sethead β a General Commands Manual girlie whose whole job is setting FITS or IRAF header keyword values π
π NAME π
sethead β Set FITS or IRAF header keyword values
πΈ SYNOPSIS πΈ
sethead [-dknv][r letter] <FITS or IRAF file> kw1=val1 kw2=val2 ...
kwn=valuen
π¦ DESCRIPTION π¦
So like, what sethead does is set parameters in the header of a FITS or IRAF image. iconic behavior honestly.
If the keywords you're setting do not already exist, they get added at the end of the header. no drama, they just slide in at the back π«Ά
Here's the vibe check on how values get formatted:
- If a value contains no alphabetic characters, it's assumed to be numeric and it gets right-aligned.
- Otherwise it's left-aligned after the equals sign, and padded by spaces to a minimum of 8 characters.
Now, the listfile era π β if you wanna set keywords across a whole list of files, just substitute @<listfile> for the file names on the command line. and if you've got a LOT of keywords to set, put them, one per line, in a file and substitute @<keylistfile> on the command line. slay.
And bestie, if two @ commands are present? the program will literally figure out which one contains file names and which one contains keywords. it's giving main character energy, it's giving mind reader β¨
One lil thing: lines in a keyword list file that don't contain an = are ignored. bye, not relevant, we move on π
π OPTIONS π
-hβ Write aHISTORYline into the output header with the sethead version, the current date and time, and the names of the keywords that got set. receipts, basically π§Ύ-kβ Write aSETHEADkeyword into the output header with the sethead version, the current date and time, and the names of the keywords set. And if aSETHEADkeyword already exists, the old value gets moved to aHISTORYline before the new value is written. out with the old, in with the new π-nβ Write a new file, with an added"e"before the extension. new file who dis π±-rletter β Rename existing keywords whose values are being reset by prepending the character letter. If the changed keyword is already 8 characters long, drop the last character. (8 chars is the limit bestie, she's got no room π)-vβ Print confirmations of each parameter setting. she's loud and she's proud, and honestly? we love the transparency π
π WEB PAGE π
http://tdc-www.harvard.edu/software/wcstools/sethead.html
π AUTHOR π
Jessica Mink, SAO (jmink@cfa.harvard.edu)
and that's the whole page bestie, no cap. this manual page was living in the WCSTools era and is dated 6 July 2001 β yeah, she's vintage, she's archival, and she's still sethead(1) through and through. π¦β¨ periodt.
π¦ where this page comes from
- debian bookworm: wcstools 3.9.7-1 Β· GPL-2.0-only
- debian trixie: wcstools 3.9.7-1.1+b1 Β· GPL-2.0-only
- epel 9: wcstools 3.9.7-2.el9 Β· GPLv2+
- fedora 43: wcstools 3.9.7-12.fc43 Β· GPL-2.0-or-later
- fedora 44: wcstools 3.9.7-13.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: wcstools 3.9.6-1 Β· GPL-2.0-only
- ubuntu noble: wcstools 3.9.7-1.1build1 Β· GPL-2.0-only
- ubuntu questing: wcstools 3.9.7-2
- 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