FITS(1)

πŸ“¦
version 0.24 Β· 5 versions
, in epel 10, epel 9, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ FITS(1) β€” the manual page, but make it cute ✨

okay bestie, welcome to FITS(1) from the User Commands section, aka the glow-up era of Fits πŸ’…


🌸 NAME 🌸

Fits β€” view and manipulate FITS headers πŸ¦‹


⭐ SYNOPSIS ⭐

astfits [OPTION...] ASTRdata

πŸ’– DESCRIPTION πŸ’–

Fits is part of GNU Astronomy Utilities 0.24. no cap, this is the tool. Fits lets you view and manipulate (add, delete, or modify) FITS extensions (or HDUs) and FITS header keywords within one extension. it's giving ✨cosmic filing cabinet✨ and honestly? obsessed.

want more tea? run any of these commands. the second one is the whole lore drop β€” it has the very comprehensive explanation of Fits's invocation: expected input(s), output(s), and a full description of all the options. 🫢

all options and their values:

$ astfits -P

inputs/outputs and options:

$ info astfits

full section in the manual/book:

$ info Fits

full Gnuastro manual/book:

$ info gnuastro

if you couldn't find your answer in the manual, you can get direct help from experienced Gnuastro users and developers. for more info, just run:

$ info help-gnuastro

πŸŽ€ FITS OPTIONS πŸŽ€

🧚 INPUT 🧚

  • --arguments=STR β€” plain-text file with command-line arguments. like, hand it a whole lil txt of args, iykyk.
  • -h, --hdu=STR/INT β€” extension name or number of input data. name it or number it, either way bestie.

πŸ“ OUTPUT πŸ“

  • -K, --keepinputdir β€” keep the input directory for automatic output. don't move it, it lives there πŸ₯Ί
  • --outfitsnocommit β€” no Git commit in 0-th HDU of output FITS.
  • --outfitsnoconfig β€” no metadata in 0-th HDU of output FITS.
  • --outfitsnodate β€” no 'DATE' in 0-th HDU of output FITS.
  • --outfitsnoversions β€” no versions in 0-th HDU of output FITS.
  • --outhdu=STR β€” HDU/extension in output for --copykeys.
  • -o, --output=STR β€” output file name (not for keywords). so if you're doing keyword stuff, this one's not the move.
  • -O, --colinfoinstdout β€” column info/metadata when printing to stdout.
  • --tableformat=STR β€” table fmt: 'fits-ascii', 'fits-binary', 'txt'.
  • -T, --type=STR β€” type of output: e.g., int16, float32, etc...

πŸ”₯ HDU (EXTENSION) INFORMATION πŸ”₯

  • --datasum β€” calculate HDU's datasum and print in stdout.
  • --datasum-encoded β€” 16 character string encoding of '--datasum'.
  • --hasimagehdu β€” file has at least one image HDU.
  • --hastablehdu β€” file has at least one table HDU.
  • --listallhdus β€” list all HDUs within the file.
  • --listimagehdus β€” list all image HDUs within the file.
  • --listtablehdus β€” list all table HDUs within the file.
  • -n, --numhdus β€” print number of HDUs in the given FITS file.
  • --pixelareaarcsec2 β€” pixel area in arc-seconds squared.
  • --pixelscale β€” return the pixel-scale of the HDU's WCS.
  • --skycoverage β€” image coverage in the WCS coordinates.

πŸ¦‹ HDU (EXTENSION) MANIPULATION πŸ¦‹

  • -C, --copy=STR/INT β€” copy extension to output file.
  • -k, --cut=STR/INT β€” copy extension to output and remove from input. girl is moving out, taking her stuff πŸ’€
  • --primaryimghdu β€” copy/cut image HDUs to primary/zero-th HDU.
  • -R, --remove=STR/INT β€” remove extension from input file.

πŸ‘‘ KEYWORDS (IN ONE HDU) πŸ‘‘

  • -a, --asis=STR β€” write value as-is (may corrupt FITS file). ⚠️ bestie this one is a little unhinged, it can genuinely wreck your FITS file, so know what you're doing.
fr fr, <red>may corrupt FITS file</red> is not a vibe check, it's a warning. proceed with main character caution πŸ’…
  • --copykeys=INT:INT/STR,STR β€” range/names of keywords to copy in output.
  • -c, --comment=STR β€” add COMMENT keyword, any length is ok.
  • -d, --delete=STR β€” delete a keyword from the header.
  • -H, --history=STR β€” add HISTORY keyword, any length is ok.
  • -l, --keyvalue=STR[,STR,...] β€” only print the value of requested keyword(s).
  • --printkeynames β€” print all keyword names.
  • -p, --printallkeys β€” print all keywords in the selected HDU.
  • -r, --rename=STR,STR β€” rename keyword, keeping value and comments. glow-up but keep the personality ✨
  • -s, --datetosec=STR β€” FITS date to sec from 1970/01/01T00:00:00.
  • -t, --date β€” set the DATE keyword to the current time.
  • -u, --update=STR,STR β€” update a keyword value or comments.
  • -v, --verify β€” verify the CHECKSUM and DATASUM keywords.
  • --wcscoordsys=STR β€” convert WCS coordinate system.
  • --wcsdistortion=STR β€” convert WCS distortion to another type.
  • -w, --write=STR β€” write a keyword (with value, comments and units).

🌈 META-IMAGE CREATION 🌈

  • --edgesampling=INT β€” number of extra samplings in pixel sides.
  • --pixelareaonwcs β€” image where pixels show their area in sky (WCS).

πŸ’œ OPERATING MODES πŸ’œ

  • -?, --help β€” give this help list.
  • --checkconfig β€” list all config files and variables read.
  • --cite β€” BibTeX citation for this program. cite your sources, queen πŸ“š
  • --config=STR β€” read configuration file STR immediately.
  • --config-prefix=STR β€” custom prefix of option names config files.
  • --lastconfig β€” do not parse any more configuration files.
  • --minmapsize=INT β€” min. bytes to avoid RAM automatically.
  • --onlyversion=STR β€” only run if the program version is STR.
  • -P, --printparams β€” print parameter values to be used and abort.
  • --quietmmap β€” don't print mmap'd file's name and size.
  • -q, --quiet β€” only report errors, remain quiet about steps.
  • -Q, --quitonerror β€” quit if there is an error on any action.
  • -S, --setdirconf β€” set default values for this directory and abort.
  • --usage β€” give a short usage message.
  • -U, --setusrconf β€” set default values for this user and abort.
  • -V, --version β€” print program version.

mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. just so we're clear bestie 🫢

GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/


😭 REPORTING BUGS 😭

report bugs to bug-gnuastro@gnu.org. not me being the one to tell you, but they genuinely wanna know πŸ›


Copyright Β© 2015-2025 Free Software Foundation, Inc. License GPLv3+: GNU General public license version 3 or later.

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (fr fr, no warranty, it said it not me πŸ’€)

Written/developed by Mohammad Akhlaghi πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

the full documentation for Fits is maintained as a Texinfo manual. if the info and Fits programs are properly installed at your site, the command

info Fits

should give you access to the complete manual.


and that's the whole page bestie, slay πŸ’…βœ¨

GNU Astronomy Utilities 0.24 Β· November 2025 Β· FITS(1) β€” you've reached the end of the manual, go touch some grass and then come back and read your headers 🌸🫢
πŸ“¦ where this page comes from