FITSHEADER(1)
β¨ NAME β¨
fitsheader β bestie, it prints the header(s) of a FITS file. That's it, that's the whole gig π
This is the fitsheader(1) page from astropy 1.0.2, and we're gonna get you fluent in it, fr fr.
πΈ DESCRIPTION πΈ
okay so here's the whole vibe upfront β this is literally how you call it:
usage: fitsheader [-h] [-e HDU] [-k KEYWORD] [-t [FORMAT]] [-c]
filename [filename ...]
So what's it doing? It prints the header(s) of a FITS file. The optional arguments let you say which extension(s) you want, which keyword(s) you want, and what output format you want. And heads up β in the case of a compressed image, the decompressed header is shown by default. Like, by default you get the actual data's header, not the compression wrapper. Noted. π
π positional arguments:
filenameβ the path to one or more files, and yes bestie, wildcards are supported π. Multiple files? Multiple filenames. Go off.
π optional arguments:
-h,--helpβ shows this help message and then dips.exit. bye π-e HDU,--extension HDUβ pick your extension by name or number. And the way this one is repeatable?? You can stack it to select multiple extensions at once. Obsessed. π₯-k KEYWORD,--keyword KEYWORDβ pick a keyword. Also repeatable, so you can grab multiple keywords in one go β and it supports wildcards too. She's flexible, she's iconic. β¨-t [FORMAT],--table [FORMAT]β prints the header(s) in machine-readable table format. The default format is"ascii.fixed_width", but you can pass things like"ascii.csv","ascii.html","ascii.latex","fits", etc. So many options, so little time. π-c,--compressedβ for compressed image data, this shows the true header which describes the compression rather than the data. So like, the opposite of the default. Main character of the compression world. π
lowkey a reminder: that compressed-image default from the DESCRIPTION? It's showing you the decompressed header. If you want the compression header instead, that's your -c moment. Don't mix 'em up bestie π«Ά
And that's the whole page, no cap. This was fitsheader β part of astropy 1.0.2 β and the page itself is dated April 2015. Yeah, she's a classic, she's vintage, she still ate. π Go print some headers, you got this. π¦πΈ
π¦ where this page comes from
- debian bookworm: astropy-utils 5.2.1-2+deb12u1 Β· BSD-3-Clause
- debian trixie: astropy-utils 7.0.1-3 Β· BSD-3-Clause
- ubuntu jammy: astropy-utils 5.0.2-1 Β· BSD-3-Clause
- ubuntu noble: astropy-utils 6.0.0-1ubuntu2 Β· BSD-3-Clause
- ubuntu questing: astropy-utils 7.0.1-3
- ubuntu resolute: astropy-utils 7.2.0-1build1 Β· BSD-3-Clause
- ubuntu stonking: astropy-utils 8.0.1-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms