fitscheck(1)

✨ fitscheck(1) ✨

okay bestie, gather round, because we're talking about fitscheck from astropy 1.0.2 and honestly? it's giving unsung hero πŸ’… this is the script that keeps your FITS files from being a whole mess.


πŸŽ€ NAME πŸŽ€

fitscheck β€” a script that sniffs out FITS standards violations and, like, fixes them too πŸ› οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

fitscheck [OPTION]... [FILE]...

🌸 DESCRIPTION 🌸

so fitscheck is a command line script built on top of pyfits, and what it does is verify and update the CHECKSUM and DATASUM keywords in your FITS files. that's the main character job πŸ‘‘ but it can also detect and often fix other FITS standards violations, because it's generous like that.

the whole point? it helps you re-write the non-standard checksums that pyfits originally generated into standard checksums, so they'll actually interoperate with cfitsio. periodt. πŸ’–

⚠️ okay important, no cap: fitscheck will refuse to write new checksums if the checksum keywords are missing or if their values are bad. it's not being difficult, it's being responsible.

so if you want to override that:

  • use --force to write new checksums regardless of whether they currently exist or pass πŸ”₯
  • use --ignore-missing to tolerate missing checksum keywords without comment πŸ™ˆ

πŸ’… OPTIONS πŸ’…

  • -h, --help β€” shows you a terse usage message (help). short and sweet, just like it should be 🫢
  • -k [standard | nonstandard | either | none], --checksum=[standard | nonstandard | either | none] β€” picks the FITS checksum mode, or none for no checksum mode at all. defaults to standard ⭐
  • -w, --write β€” writes out file checksums and/or FITS compliance fixes. this is the one that actually touches your files ✍️
  • -f, --force β€” does the file update even if the original checksum was bad 😀
  • -c, --compliance β€” does FITS compliance checking, and fixes it if possible πŸ”
  • -i, --ignore-missing β€” ignores missing checksums. pretend you didn't see them 🫣
  • -v, --verbose β€” generates extra output. more words! more info! 🌈

πŸ“ EXAMPLES πŸ“

verify and update checksums, tolerating non-standard checksums, updating to standard checksum:

% fitscheck --checksum either --write *.fits

write new checksums, even if existing checksums are bad or missing:

% fitscheck --write --force *.fits

verify standard checksums and FITS compliance without changing the files:

% fitscheck --compliance *.fits

verify original nonstandard checksums only:

% fitscheck --checksum nonstandard *.fits

only check and fix compliance problems, ignoring checksums:

% fitscheck --checksum none --compliance --write *.fits

verify standard interoperable checksums:

% fitscheck *.fits

delete checksum keywords:

% fitscheck --checksum none --write *.fits

🧚 reminder bestie: if you're not passing --write, you're just looking, not touching. the file stays exactly how it was. iykyk πŸ’œ

and that's the whole page!! this lil manual was written by the fitscheck crew back in April 2015 β€” the source is fitscheck itself, version vibes from the astropy 1.0.2 era, and the manual section is fitscheck(1) πŸ“–βœ¨ go forth and checksum responsibly, queen πŸ‘‘πŸ’–