1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH ARITHMETIC "1" "November 2025" "GNU Astronomy Utilities 0.24" "User Commands"
.SH NAME
Arithmetic \- arithmetic operations on images and numbers
.SH SYNOPSIS
.B astarithmetic
[\fI\,OPTION\/\fR...] \fI\,ASTRdata or number \/\fR[\fI\,ASTRdata\/\fR] \fI\,OPERATOR \/\fR...
.SH DESCRIPTION
Arithmetic is part of GNU Astronomy Utilities 0.24.
Arithmetic will do arithmetic operations on one or multiple images and numbers.
Simply put, the name of the image along with the arithmetic operators and
possible numbers are given as arguments. The extensions of each input are
specified with (possibly multiple) calls to the '\-\-hdu' option.
.PP
Currently Arithmetic only supports postfix or reverse polish notation. For
example to get the result of '5+6', you should write '5 6 +', or to get the
average of two images, you should write 'a.fits b.fits + 2 /' (or more simply
use the 'average' operator with 'a.fits b.fits average'). Please see the manual
for more information.
.PP
Arithmetic recognizes a large collection of standard operators, including basic
arithmetic (e.g., +, \-, x, /), mathematical (e.g., abs, pow, sqrt, log),
statistical (minvalue, min, max, average), comparison (e.g., lt, le, gt),
logical (e.g., and, or, not), the full set of bitwise operators, and numeric
type conversion operators to all known types. Please run the command below for
a complete list describing all operators (press the 'SPACE' keyboard key, or
arrow keys, to go down and 'q' to return to the command\-line):
.IP
\f(CW$ info gnuastro "Arithmetic operators"\fR
.PP
For more information, please run any of the following commands. In particular
the second contains a very comprehensive explanation of Arithmetic's
invocation: expected input(s), output(s), and a full description of all the
options.
.TP
All options and their values:
$ astarithmetic \fB\-P\fR
.TP
Inputs/Outputs and options:
$ info astarithmetic
.TP
Full section in manual/book:
$ info Arithmetic
.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
Arithmetic options:
.IP
Input:
.TP
\fB\-\-arguments\fR=\fI\,STR\/\fR
Plain\-text file with command\-line arguments.
.TP
\fB\-\-envseed\fR
Use GSL_RNG_SEED env. for mknoise operator.
.TP
\fB\-g\fR, \fB\-\-globalhdu\fR=\fI\,STR\/\fR
Use this HDU for all inputs, ignore '\-\-hdu'.
.TP
\fB\-h\fR, \fB\-\-hdu\fR=\fI\,STR\/\fR/INT
Nth call, used for HDU of Nth input FITS.
.TP
\fB\-I\fR, \fB\-\-ignorecase\fR
Ignore case in matching/searching columns.
.TP
\fB\-\-searchin\fR=\fI\,STR\/\fR
Select column(s): 'name', 'unit', 'comment'.
.TP
\fB\-w\fR, \fB\-\-wcsfile\fR=\fI\,FITS\/\fR
File to use for output's WCS.
.TP
\fB\-W\fR, \fB\-\-wcshdu\fR=\fI\,STR\/\fR
HDU/extension to use for output's WCS.
.IP
Tessellation (tile grid):
.TP
\fB\-\-interpmetric\fR=\fI\,STR\/\fR
Interpolation metric (radial, manhattan).
.IP
Output:
.TP
\fB\-\-append\fR
If output file exists, append to existing HDUs.
.TP
\fB\-a\fR, \fB\-\-writeall\fR
Write all remaining data in the output.
.TP
\fB\-c\fR, \fB\-\-metacomment\fR=\fI\,STR\/\fR
Internal comments (FITS images: COMMENT keyword).
.TP
\fB\-D\fR, \fB\-\-dontdelete\fR
Don't delete output if it exists.
.TP
\fB\-K\fR, \fB\-\-keepinputdir\fR
Keep input directory for automatic output.
.TP
\fB\-n\fR, \fB\-\-metaname\fR=\fI\,STR\/\fR
Internal name (FITS images: EXTNAME keyword).
.TP
\fB\-\-outfitsnocommit\fR
No Git commit in 0\-th HDU of output FITS.
.TP
\fB\-\-outfitsnoconfig\fR
No metadata in 0\-th HDU of output FITS.
.TP
\fB\-\-outfitsnodate\fR
No 'DATE' in 0\-th HDU of output FITS.
.TP
\fB\-\-outfitsnoversions\fR
No versions in 0\-th HDU of output FITS.
.TP
\fB\-o\fR, \fB\-\-output\fR=\fI\,STR\/\fR
Output file name.
.TP
\fB\-O\fR, \fB\-\-onedasimage\fR
Write 1D outputs as an image, not a table.
.TP
\fB\-s\fR, \fB\-\-onedonstdout\fR
Write 1D output on stdout, not in a table.
.TP
\fB\-\-tableformat\fR=\fI\,STR\/\fR
Table fmt: 'fits\-ascii', 'fits\-binary', 'txt'.
.TP
\fB\-u\fR, \fB\-\-metaunit\fR=\fI\,STR\/\fR
Internal units (FITS images: BUNIT keyword).
.TP
\fB\-\-wcslinearmatrix\fR=\fI\,STR\/\fR
WCS linear matrix of output ('pc' or 'cd').
.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\-\-config\-prefix\fR=\fI\,STR\/\fR
Custom prefix of option names config files.
.TP
\fB\-\-lastconfig\fR
Do not parse any more configuration files.
.TP
\fB\-\-log\fR
Information about output(s) in a log file.
.TP
\fB\-\-minmapsize\fR=\fI\,INT\/\fR
Min. bytes to avoid RAM automatically.
.TP
\fB\-N\fR, \fB\-\-numthreads\fR=\fI\,INT\/\fR
Number of CPU threads to use.
.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\-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\-2025 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 Arithmetic
is maintained as a Texinfo manual. If the
.B info
and
.B Arithmetic
programs are properly installed at your site, the command
.IP
.B info Arithmetic
.PP
should give you access to the complete manual.
|