File: astarithmetic.1

package info (click to toggle)
gnuastro 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,688 kB
  • sloc: ansic: 134,935; sh: 8,203; makefile: 826; cpp: 9
file content (169 lines) | stat: -rw-r--r-- 5,168 bytes parent folder | download
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
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.17.
.TH ARITHMETIC "1" "January 2021" "GNU Astronomy Utilities 0.14" "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.14.
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\-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\-w\fR, \fB\-\-wcsfile\fR=\fI\,STR\/\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\,INT\/\fR
Interpolation metric (radial, manhattan).
.IP
Output:
.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\-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'.
.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\-\-log\fR
Information about output(s) in a log file.
.TP
\fB\-\-minmapsize\fR=\fI\,INT\/\fR
Minimum bytes in array to not use ram RAM.
.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\-2021, 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.