gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master b36c21f 17/32: astscript-radial-profile: modif


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master b36c21f 17/32: astscript-radial-profile: modification to use $ instead of c in Table
Date: Wed, 24 Feb 2021 22:36:18 -0500 (EST)

branch: master
commit b36c21f1c9e7607e664772a5efbd6bbf50bd5892
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Raul Infante-Sainz <infantesainz@gmail.com>

    astscript-radial-profile: modification to use $ instead of c in Table
    
    Until this commit, when refering to columns in `asttable', it had to be
    specified by typing `c1', `c2', etc. However, with the recent changes in
    Gnuastro, now it is `$1', `$2', etc. This has been introduced with the
    aim of be more general and follow the standard notation like `awk'. With
    this commit, this new convention has been introduced in the
    astscript-radial-profile. In the last step it invokes `asttable' to
    operate the columns, so it was necessary to change the call to the
    columns. Also important is to note that the operator now are enclosed
    between double quotes to avoid problem with the white spaces.
    
    Thanks to Mohammad and Samaeh for helping in solving this bug!
---
 bin/script/radial-profile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/script/radial-profile.in b/bin/script/radial-profile.in
index 2cce9d3..4d49c2f 100644
--- a/bin/script/radial-profile.in
+++ b/bin/script/radial-profile.in
@@ -440,8 +440,8 @@ echo "# Column 2: $ycolname [modified,f32,] Binned $b and 
arith $Y" >> $aprofile
 # Make the appropiate operation over the two columns of the radial profile
 # and add it to the temporal file with the meta-data.
 asttable $bprofile \
-         -c"arith c1 $X" \
-         -c"arith c2 $Y" >> $aprofile
+         -c'arith $1 '"$X" \
+         -c'arith $2 '"$Y" >> $aprofile
 
 # Finally, read the temporal file with the metadata information as well as
 # the radial profile values, and save it as a fits table using Table.



reply via email to

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