gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 6425b29: Book: fixed incorrect call to column


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 6425b29: Book: fixed incorrect call to column number in table's arithmetic
Date: Fri, 15 May 2020 11:31:18 -0400 (EDT)

branch: master
commit 6425b29a55995b78f855cd6454a21669bc389492
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Book: fixed incorrect call to column number in table's arithmetic
    
    Recently the format of identifying column numers changed in Table's column
    arithmetic (to resemble AWK), while it had been corrected in the book, Raúl
    Infante-Sainz informed me that one case in the demonstration commands was
    still using a 'c' instead of a '$'. It has been corrected with this commit.
---
 doc/gnuastro.texi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 7129279..29b38ac 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -9270,9 +9270,9 @@ $ asttable bintab.fits -c2,'arith $2 5 x' -otable.fits
 ## Sort the output columns by the third column, save output:
 $ asttable bintab.fits --sort=3 -ooutput.txt
 
-## Subtract the first column from the second in `cat.txt' (can also
-## be a FITS table) and keep the third and fourth columns.
-$ asttable cat.txt -c'arith $2 c1 -',3,4 -ocat.fits
+## Subtract the first column from the second in `cat.fits' (can also
+## be a text table) and keep the third and fourth columns.
+$ asttable cat.txt -c'arith $2 $1 -',3,4 -ocat.fits
 @end example
 
 Table's input dataset can be given either as a file or from Standard input 
(see @ref{Standard input}).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]