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 πŸ“Έ

  1. 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. 🫢

  1. print a summary of HDUs of all the FITS files in the current directory:
$ fitsinfo *.fits

yes queen, glob it, let her cook πŸ”₯


⭐ reminder: fitsinfo takes 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 πŸŽ€πŸ¦‹