dfits(1)
π« dfits β the manual, but make it cute π«
okay bestie, so this is the page for dfits, a General Commands Manual girly, and she is literally here to show you FITS file header info. no cap. let's get into it π
β¨ NAME β¨
dfits β display FITS file header information π¦
β¨ SYNOPSIS β¨
dfits [-x xtnum] <list>
dfits [-x xtnum] -
that's the whole vibe. two ways in, one flag, we love a minimalist queen π
β¨ DESCRIPTION β¨
so like. dfits displays FITS header informations on stdout. yes bestie, "informations". we don't gatekeep grammar here π
where can that header info live? options, babe:
- in the main header only β this is the default, the main character energy π«Ά
- in extensions π¦
- or in both, because why choose π
(see the -x option below for how to pick, iykyk)
and dfits accepts multi-file input β feed her a whole list, she eats π₯
dfits - expects single file data coming from stdin. just one file, one vibe, through the pipe.
ALSO β and this is new, so pay attention β dfits now also accepts HDR files. how does she know they're HDR files? iconic detective work: they're identified from the fact that they contain a line feed in one of the 80 first characters. that's the tell. slay π
β¨ OPTIONS β¨
-x xtnumβ Specifies the extension to print out. Extensions are numbered starting from 1. If this option is not specified, only the main header is printed out. If this option specifies an extension that does not exist, nothing is printed out. π Specify 0 as extension number to get a print of the main header plus all extension headers. zero is the "give me everything" girlie, obsessed π
πΈ Examples πΈ
dfits *.fits
dfits *.fits | grep NAXIS3
gzip -d < star.fits.gz | dfits - | more
dfits -x 0 *.fits
dfits -x 3 *.fits
look at her go. pipe her, grep her, gunzip her, she's fine with all of it β¨
β¨ SEE ALSO β¨
fitsort can be combined with dfits output to sort out keyword values of a group of FITS files. bestie duo fr fr π€
β¨ FILES β¨
Files shall all comply with FITS format. non-negotiable, no exceptions, that's the rule π
okay so real talk β if you ask for an extension that doesn't exist, you get absolutely nothing printed. not an error, not a hint, just silence. dramatic? yes. accurate? also yes. π«Ά
and that's the whole page, bestie!! this icon dropped on 30 Mar 2000 and she's still serving dfits(1) energy to this very day. periodt. π
β¨π
π¦ where this page comes from
- debian bookworm: qfits-tools 6.2.0-8+b2
- debian trixie: qfits-tools 6.2.0-9+b1
- ubuntu jammy: qfits-tools 6.2.0-8ubuntu2
- ubuntu noble: qfits-tools 6.2.0-9ubuntu1
- ubuntu questing: qfits-tools 6.2.0-9ubuntu1
- ubuntu resolute: qfits-tools 6.2.0-9ubuntu2
- ubuntu stonking: qfits-tools 6.2.0-9ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms