Scroll to navigation

FITS(1) User Commands FITS(1)

NAME

Fits - view and manipulate FITS headers

SYNOPSIS

astfits [OPTION...] ASTRdata

DESCRIPTION

Fits is part of GNU Astronomy Utilities 0.22. Fits allows you to view and manipulate (add, delete, or modify) FITS extensions (or HDUs) and FITS header keywords within one extension.

For more information, please run any of the following commands. In particular the second contains a very comprehensive explanation of Fits's invocation: expected input(s), output(s), and a full description of all the options.

$ astfits -P
$ info astfits
$ info Fits
$ 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 information, please run:

$ info help-gnuastro

Fits options:

Input:
Plain-text file with command-line arguments.
Extension name or number of input data.
Output:
Keep input directory for automatic output.
No Git commit in 0-th HDU of output FITS.
No metadata in 0-th HDU of output FITS.
No 'DATE' in 0-th HDU of output FITS.
No versions in 0-th HDU of output FITS.
HDU/extension in output for --copykeys.
Output file name (not for keywords).
Column info/metadata when printing to stdout.
Table fmt: 'fits-ascii', 'fits-binary', 'txt'.
Type of output: e.g., int16, float32, etc...
HDU (extension) information:
Calculate HDU's datasum and print in stdout.
16 character string encoding of '--datasum'.
File has at least one image HDU.
File has at least one table HDU.
List all HDUs within the file.
List all image HDUs within the file.
List all table HDUs within the file.
Print number of HDUs in the given FITS file.
Pixel area in arc-seconds squared.
Return the pixel-scale of the HDU's WCS.
Image coverage in the WCS coordinates.
HDU (extension) manipulation:
Copy extension to output file.
Copy extension to output and remove from input.
Copy/cut image HDUs to primary/zero-th HDU.
Remove extension from input file.
Keywords (in one HDU):
Write value as-is (may corrupt FITS file).
Range/Names of keywords to copy in output.
Add COMMENT keyword, any length is ok.
Delete a keyword from the header.
Add HISTORY keyword, any length is ok.
Only print the value of requested keyword(s).
Print all keyword names.
Print all keywords in the selected HDU.
Rename keyword, keeping value and comments.
FITS date to sec from 1970/01/01T00:00:00
Set the DATE keyword to the current time.
Update a keyword value or comments.
Verify the CHECKSUM and DATASUM keywords.
Convert WCS coordinate system.
Convert WCS distortion to another type.
Write a keyword (with value, comments and units).
Meta-image creation:
Number of extra samplings in pixel sides.
Image where pixels show their area in sky (WCS).
Operating modes:
-?, --help
give this help list
List all config files and variables read.
BibTeX citation for this program.
Read configuration file STR immediately.
Custom prefix of option names config files.
Do not parse any more configuration files.
Min. bytes to avoid RAM automatically.
Only run if the program version is STR.
Print parameter values to be used and abort.
Don't print mmap'd file's name and size.
Only report errors, remain quiet about steps.
Quit if there is an error on any action.
Set default values for this directory and abort.
give a short usage message
Set default values for this user and abort.
print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

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

REPORTING BUGS

Report bugs to bug-gnuastro@gnu.org.

COPYRIGHT

Copyright © 2015-2024 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.

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.

February 2024 GNU Astronomy Utilities 0.22