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. πŸ¦‹πŸŒΈ