fitsinfo(1)
β¨ fitsinfo(1) β¨
okay bestie, so fitsinfo is a little command-line bestie from the astropy 1.1 era and she is so good at her one job π
πΈ NAME πΈ
fitsinfo β print a summary of the HDUs in one or more FITS files(s) π¦
π SYNOPSIS π
fitsinfo filename [filename ...]
π DESCRIPTION π
okay so fitsinfo is a command-line script, and she's built on top of astropy.io.fits β iconic lineage honestly π β and what she does is print a summary of the HDUs in one or more FITS files(s) straight to the standard output. that's it. that's the whole vibe. no cap. β¨
π EXAMPLES π
here's how you actually use fitsinfo, bestie, with receipts πΈ
- print a summary of the HDUs in a FITS file:
$ fitsinfo filename.fits
Filename: filename.fits
No. Name Type Cards Dimensions Format
0 PRIMARY PrimaryHDU 138 ()
1 SCI ImageHDU 61 (800, 800) int16
2 SCI ImageHDU 61 (800, 800) int16
3 SCI ImageHDU 61 (800, 800) int16
4 SCI ImageHDU 61 (800, 800) int16
look at that table. she ate. π
the Cards column? the Dimensions? the Format? all of it. π«Ά
- print a summary of HDUs of all the FITS files in the current directory:
$ fitsinfo *.fits
yes queen, glob it, let her cook π₯
β reminder:fitsinfotakes one or more filename arguments β that[filename ...]in the synopsis means she'll happily handle a whole crowd of FITS files at once, not just one π
and that's the whole page bestie, no notes, we're done here πΈ
okay so this was written up back in April 2015 and lives alongside her sibling page fitsdiff β astropy 1.1 era, vintage but still serving πβ¨ byeeee ππ¦
π¦ 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