gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master ccae240f 29/69: PSF stamp: bug in --rmax optio


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master ccae240f 29/69: PSF stamp: bug in --rmax option introduced in previous commit fixed
Date: Wed, 26 Jan 2022 12:39:12 -0500 (EST)

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

    PSF stamp: bug in --rmax option introduced in previous commit fixed
    
    When rebasing the work of Sepideh over my branch, I changed the way of
    computing the maximum radius for the normalization.  Sepideh did the
    computation properly but I modified in a bad way her job. With this commit,
    I have fixed this problem. Now the script doesn't use the '--rmax' option
    anymore.
---
 bin/script/psf-create-make-stamp.in | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/bin/script/psf-create-make-stamp.in 
b/bin/script/psf-create-make-stamp.in
index fc5fc1c1..54ed85a4 100644
--- a/bin/script/psf-create-make-stamp.in
+++ b/bin/script/psf-create-make-stamp.in
@@ -500,13 +500,10 @@ if [ x"$normradiusmin" != x ] && [ x"$normradiusmax" != x 
]; then
     # specifies sigma clip parameters, use them.
     radialprofile=$tmpdir/rprofile-$objectid.fits
     maxr=$(echo "$normradiusmax" | awk '{print $1+1}')
-    if [ x"$maxradius" != x ]; then maximumradius="--rmax=$rmax"
-    else                       maximumradius="--rmax=$maxradius";
-    fi
     if [ x"$sigmaclip" = x ]; then finalsigmaclip=""
     else                           finalsigmaclip="--sigmaclip=$sigmaclip";
     fi
-    astscript-radial-profile $cropped_masked --hdu=1 $maximumradius \
+    astscript-radial-profile $cropped_masked --hdu=1 --rmax=$maxr \
                              --measure=$normop $finalsigmaclip \
                              --positionangle=$positionangle \
                              --axisratio=$axisratio \



reply via email to

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