gethead(1)
π NAME π
gethead β the girl who prints out your FITS or IRAF header keyword values, no cap π
β¨ SYNOPSIS β¨
gethead [-hptv] [-d pathname] [-n num] <FITS or IRAF file> kw1 kw2 ... kwn
π DESCRIPTION π
Okay bestie, so here's the vibe: gethead goes into the header of the image you handed it and pulls out the values of whatever keywords you asked for. That's it. That's the whole job. Iconic behaviour, honestly. π
By default all those values get listed on one single line, separated by spaces. Cute, compact, efficient.
But wait β the -v flag? That one makes it print the keyword names AND their values, one keyword per line. Very "show your work" of it. π¦
Now, the party tricks:
- Wanna read keywords from a whole list of files? Just swap out the file names on the command line for
@<listfile>. Boom. β¨ - Wanna read a lot of keywords at once? Put them, one per line, in a file and drop
@<keylistfile>on the command line. Slay. - And if you're feeling chaotic and there are two
@commands present? Don't stress β the program will figure out which one holds the file names and which one holds the keywords. It's giving main character energy fr fr. π
π OPTIONS π
-aβ Lists the file name even if the keywords aren't found. Petty? No. Thorough. π-dβ Root directory for input files (the default iscwd, aka wherever you already are).-eβ Outputs thekeyword=value's on one line per file.-fβ Never prints filenames (the default is to print them when there's more than one).-gβ Outputs thekeyword=value's on one line per keyword.-hβ Flag that causes the keyword names to be printed at the top of columns. Column headings, but make it fashion. π-nβ Number of decimal places in numeric output.-oβ ORs the conditions instead of ANDing them.-pβ Prints the full pathnames of files.-tβ Flag that causes the output to be in tab-separated tables with keyword column headings. Spreadsheet-coded. π-uβ Always prints___if the keyword is not found, even if there's only one keyword in the search.-vβ Prints output as<keyword>=<value>, one per line.
π WEB PAGE π
http://tdc-www.harvard.edu/software/wcstools/gethead.html
(go say hi, she's got lore π)
π AUTHOR π
Jessica Mink, SAO (jmink@cfa.harvard.edu)
and that's the whole page, bestie π«Ά this one dropped on 6 July 2001 as part of WCSTools, and yeah, it's a gethead(1) situation β General Commands Manual energy from start to finish. mwah πβ¨
π¦ 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