[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.
- [gnuastro-commits] master 4e019cb 05/32: astscript-radial-profile: fixing some bugs and modifying metadata, (continued)
- [gnuastro-commits] master 4e019cb 05/32: astscript-radial-profile: fixing some bugs and modifying metadata, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master dd4f925 06/32: astscript-radial-profile: adding documentation to the GNUASTRO book, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 5e84045 04/32: astscript-radial-profile: allowing to manipulate the final profile, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 82f8176 08/32: astscript-radial-profile: adding usage example to GNUASTRO book, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 0634f04 14/32: Book: describing remaining options of radial profile script, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 2f2970f 09/32: Adding Vim .swp temporal files to .gitignore, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 3fcd49a 10/32: astscript-radial-profile: setting name and version from the compilation, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master ebab496 15/32: Book: changed the place of radial profile script documentation, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 6400ca4 16/32: Some minor correction in description, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 4f3d70d 20/32: Binning data in some case, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master b36c21f 17/32: astscript-radial-profile: modification to use $ instead of c in Table,
Mohammad Akhlaghi <=
- [gnuastro-commits] master e24caa6 07/32: astscript-radial-profile: user can now specify output column names, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master e1ded16 11/32: Book: minor typos and corrections in radial profile script examples, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 87d68b0 12/32: astscript-radial-profile: removing --rmin option because it is not used, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master aec3057 13/32: Book: describing most important options of radial profile script, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 1b505d1 21/32: Binning the S/N column, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 4294506 32/32: astscript-radial-profile: polished the script and book, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master ad7fb58 26/32: Central coordinates of the cropped image, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master d085379 22/32: Radial-profile script documentation, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 8089ea3 27/32: astscript-radial-profile: Samaeh's changes included, conflicts fixed, Mohammad Akhlaghi, 2021/02/24
- [gnuastro-commits] master 04a8bec 29/32: Book: simplifying documentation of astscript-radial-profile, Mohammad Akhlaghi, 2021/02/24