.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH FITS "1" "October 2022" "GNU Astronomy Utilities 0.19" "User Commands" .SH NAME Fits \- view and manipulate FITS headers .SH SYNOPSIS .B astfits [\fI\,OPTION\/\fR...] \fI\,ASTRdata\/\fR .SH DESCRIPTION Fits is part of GNU Astronomy Utilities 0.19. Fits allows you to view and manipulate (add, delete, or modify) FITS extensions (or HDUs) and FITS header keywords within one extension. .PP 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. .TP All options and their values: $ astfits \fB\-P\fR .TP Inputs/Outputs and options: $ info astfits .TP Full section in manual/book: $ info Fits .TP Full Gnuastro manual/book: $ info gnuastro .PP 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: .IP \f(CW$ info help-gnuastro\fR .PP Fits options: .IP Input: .TP \fB\-h\fR, \fB\-\-hdu\fR=\fI\,STR\/\fR/INT Extension name or number of input data. .IP Output: .TP \fB\-K\fR, \fB\-\-keepinputdir\fR Keep input directory for automatic output. .TP \fB\-\-outhdu\fR=\fI\,STR\/\fR HDU/extension in output for \fB\-\-copykeys\fR. .TP \fB\-o\fR, \fB\-\-output\fR=\fI\,STR\/\fR Output file name (not for keywords). .TP \fB\-O\fR, \fB\-\-colinfoinstdout\fR Column info/metadata when printing to stdout. .TP \fB\-\-tableformat\fR=\fI\,STR\/\fR Table fmt: 'fits\-ascii', 'fits\-binary', 'txt'. .TP \fB\-T\fR, \fB\-\-type\fR=\fI\,STR\/\fR Type of output: e.g., int16, float32, etc... .IP HDU (extension) information: .TP \fB\-\-datasum\fR Calculate HDU's datasum and print in stdout. .TP \fB\-\-hasimagehdu\fR File has at least one image HDU. .TP \fB\-\-hastablehdu\fR File has at least one table HDU. .TP \fB\-\-listallhdus\fR List all HDUs within the file. .TP \fB\-\-listimagehdus\fR List all image HDUs within the file. .TP \fB\-\-listtablehdus\fR List all table HDUs within the file. .TP \fB\-n\fR, \fB\-\-numhdus\fR Print number of HDUs in the given FITS file. .TP \fB\-\-pixelareaarcsec2\fR Pixel area in arc\-seconds squared. .TP \fB\-\-pixelscale\fR Return the pixel\-scale of the HDU's WCS. .TP \fB\-\-skycoverage\fR Image coverage in the WCS coordinates. .IP HDU (extension) manipulation: .TP \fB\-C\fR, \fB\-\-copy\fR=\fI\,STR\/\fR/INT Copy extension to output file. .TP \fB\-k\fR, \fB\-\-cut\fR=\fI\,STR\/\fR/INT Copy extension to output and remove from input. .TP \fB\-\-primaryimghdu\fR Copy/cut image HDUs to primary/zero\-th HDU. .TP \fB\-R\fR, \fB\-\-remove\fR=\fI\,STR\/\fR/INT Remove extension from input file. .IP Keywords (in one HDU): .TP \fB\-a\fR, \fB\-\-asis\fR=\fI\,STR\/\fR Write value as\-is (may corrupt FITS file). .TP \fB\-\-copykeys\fR=\fI\,INT\/\fR:INT/STR,STR Range/Names of keywords to copy in output. .TP \fB\-c\fR, \fB\-\-comment\fR=\fI\,STR\/\fR Add COMMENT keyword, any length is ok. .TP \fB\-d\fR, \fB\-\-delete\fR=\fI\,STR\/\fR Delete a keyword from the header. .TP \fB\-H\fR, \fB\-\-history\fR=\fI\,STR\/\fR Add HISTORY keyword, any length is ok. .TP \fB\-l\fR, \fB\-\-keyvalue\fR=\fI\,STR[\/\fR,STR,...] Only print the value of requested keyword(s). .TP \fB\-\-printkeynames\fR Print all keyword names. .TP \fB\-p\fR, \fB\-\-printallkeys\fR Print all keywords in the selected HDU. .TP \fB\-r\fR, \fB\-\-rename\fR=\fI\,STR\/\fR,STR Rename keyword, keeping value and comments. .TP \fB\-s\fR, \fB\-\-datetosec\fR=\fI\,STR\/\fR FITS date to sec from 1970/01/01T00:00:00 .TP \fB\-t\fR, \fB\-\-date\fR Set the DATE keyword to the current time. .TP \fB\-u\fR, \fB\-\-update\fR=\fI\,STR\/\fR,STR Update a keyword value or comments. .TP \fB\-v\fR, \fB\-\-verify\fR Verify the CHECKSUM and DATASUM keywords. .TP \fB\-\-wcscoordsys\fR=\fI\,STR\/\fR Convert WCS coordinate system. .TP \fB\-\-wcsdistortion\fR=\fI\,STR\/\fR Convert WCS distortion to another type. .TP \fB\-w\fR, \fB\-\-write\fR=\fI\,STR\/\fR Write a keyword (with value, comments and units). .IP Meta\-image creation: .TP \fB\-\-edgesampling\fR=\fI\,INT\/\fR Number of extra samplings in pixel sides. .TP \fB\-\-pixelareaonwcs\fR Image where pixels show their area in sky (WCS). .IP Operating modes: .TP \-?, \fB\-\-help\fR give this help list .TP \fB\-\-checkconfig\fR List all config files and variables read. .TP \fB\-\-cite\fR BibTeX citation for this program. .TP \fB\-\-config\fR=\fI\,STR\/\fR Read configuration file STR immediately. .TP \fB\-\-lastconfig\fR Do not parse any more configuration files. .TP \fB\-\-minmapsize\fR=\fI\,INT\/\fR Min. bytes to avoid RAM automatically. .TP \fB\-\-onlyversion\fR=\fI\,STR\/\fR Only run if the program version is STR. .TP \fB\-P\fR, \fB\-\-printparams\fR Print parameter values to be used and abort. .TP \fB\-\-quietmmap\fR Don't print mmap'd file's name and size. .TP \fB\-q\fR, \fB\-\-quiet\fR Only report errors, remain quiet about steps. .TP \fB\-Q\fR, \fB\-\-quitonerror\fR Quit if there is an error on any action. .TP \fB\-S\fR, \fB\-\-setdirconf\fR Set default values for this directory and abort. .TP \fB\-\-usage\fR give a short usage message .TP \fB\-U\fR, \fB\-\-setusrconf\fR Set default values for this user and abort. .TP \fB\-V\fR, \fB\-\-version\fR print program version .PP Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. .PP GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/ .SH "REPORTING BUGS" Report bugs to bug\-gnuastro@gnu.org. .SH COPYRIGHT Copyright \(co 2015\-2022 Free Software Foundation, Inc. License GPLv3+: GNU General public license version 3 or later. .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .PP Written/developed by Mohammad Akhlaghi .SH "SEE ALSO" The full documentation for .B Fits is maintained as a Texinfo manual. If the .B info and .B Fits programs are properly installed at your site, the command .IP .B info Fits .PP should give you access to the complete manual.