gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master edcb351 2/7: radial-profile: removing the set-


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master edcb351 2/7: radial-profile: removing the set-x option used for debuging
Date: Sun, 16 May 2021 15:39:28 -0400 (EDT)

branch: master
commit edcb351079ead4922ff8bbc841152b348e296a65
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    radial-profile: removing the set-x option used for debuging
    
    Until this commit, the option 'set-x' was used during the development of
    the code to debug. It prints the raw code at the same time than the output
    of the code while it is being executed. However, for the final version we
    do not want to have this. With this commit, this option has been removed.
    In addition to this, very minor corrections and descriptions have been
    included.
---
 bin/script/radial-profile.in | 22 +++++++++++++++-------
 doc/gnuastro.texi            |  6 +++---
 2 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/bin/script/radial-profile.in b/bin/script/radial-profile.in
index e6ca149..2eaad77 100755
--- a/bin/script/radial-profile.in
+++ b/bin/script/radial-profile.in
@@ -27,7 +27,7 @@
 
 # Exit the script in the case of failure
 set -e
-set -x
+
 
 
 
@@ -104,7 +104,7 @@ $scriptname options:
   -v, --oversample        Oversample for higher resolution radial profile.
       --instd=FLT/STR     Sky standard deviation as a single number or as the
                           filename containing the dataset with different values
-                         per pixel.
+                          per pixel.
       --stdhdu=STR        HDU/extension of the sky standard deviation image.
 
  Operating mode:
@@ -302,8 +302,8 @@ if [ x"$measure" = x ]; then measure=mean; fi
 
 
 
-# Check and set of SNR parameters and variables
-# -----------------------------------------------------
+# Check and set SNR parameters and variables
+# ------------------------------------------
 #
 # --sn  --instd  --stdhdu  instdtype
 #   yes   no       yes       file (same as input image)
@@ -334,6 +334,7 @@ fi
 
 
 
+
 # Finalize the center value
 # -------------------------
 #
@@ -437,9 +438,9 @@ if [ -d $tmpdir ]; then junk=1; else mkdir $tmpdir; fi
 # Crop image and instd
 # --------------------
 #
-# Crop the input image and instd, if --sn is requested, around the desired
-# point so we can continue processing only on those pixels (we do not need the
-# other pixels).
+# Crop the input image and instd image, if --sn is requested, around the
+# desired point so we can continue processing only on those pixels (we do
+# not need the other pixels).
 #
 # The crop's output always has the range of pixels from the original image
 # used in the `ICF1PIX' keyword value. So, to find the new center
@@ -475,8 +476,14 @@ ycenter=$(echo "$ycenter $cropwidth $dxy" \
 
 
 
+
+
 # Over-sample the input if necessary
 # ----------------------------------
+#
+# With the goal of having higher spatial resolution, here the input image
+# is over-sampled. This is only done if the user request this with the
+# option --oversample.
 values=$tmpdir/values.fits
 if [ x$oversample = x ]; then
     ln -fs $crop $values
@@ -494,6 +501,7 @@ fi
 
 
 
+
 # Generate the apertures image
 # ----------------------------
 #
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 9aed2a0..a3d7a30 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -21177,7 +21177,7 @@ $ astscript-radial-profile image.fits
 ## Generate the radial profile centered at x=44 and y=37 (in pixels),
 ## up to  a radial distance of 19 pixels, use the mean value.
 $ astscript-radial-profile image.fits      \
-                           --center=44,37 \
+                           --center=44,37  \
                            --rmax=19
 
 ## Generate the radial profile centered at x=44 and y=37 (in pixels),
@@ -21185,7 +21185,7 @@ $ astscript-radial-profile image.fits      \
 ## mean and standard deviation (sigclip-mean and sigclip-std) using
 ## 3 sigma and 10 iterations.
 $ astscript-radial-profile image.fits       \
-                           --center=44,37  \
+                           --center=44,37   \
                            --rmax=100       \
                            --sigmaclip=3,10 \
                            --measure=sigclip-mean,sigclip-std
@@ -21203,7 +21203,7 @@ $ astscript-radial-profile image.fits --mode=wcs        
     \
 ## Generate the radial profile centered at RA=40.062675270971,
 ## DEC=-8.1511992735126, up to a radial distance of 20 pixels,
 ## and calculate the SNR using the INPUT-NO-SKY and SKY-STD
-## extensions of the astnoisechisel output file.
+## extensions of the NoiseChisel output file.
 $ astscript-radial-profile  image_detected.fits -hINPUT-NO-SKY        \
                             --mode=wcs                                \
                             --center=40.062675270971,-8.1511992735126 \



reply via email to

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