gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master c0522688: psf-stamp: corrected width when --sn


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master c0522688: psf-stamp: corrected width when --snthresh is applied
Date: Tue, 23 Aug 2022 11:33:56 -0400 (EDT)

branch: master
commit c0522688a07898072815f9d3ae4f2e21bbc0dc3e
Author: Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    psf-stamp: corrected width when --snthresh is applied
    
    Until now, when the '--snthresh' option was given to the
    'astscript-psf-stamp', the value of '--width' had a typo and the script
    could not recognise the value of this option.
    
    With this commit, this typo has been solved.
    
    This fixes bug #62943.
---
 NEWS                    | 2 ++
 bin/script/psf-stamp.in | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 820595df..67ee0093 100644
--- a/NEWS
+++ b/NEWS
@@ -136,6 +136,8 @@ See the end of the file for license conditions.
               Infante-Sainz.
   bug #62937: psf-scale-factor not being quiet, when requested. Found and
               fixed by Sepideh Eskandarlou.
+  bug #62943: Couldn't read the value of width with '--snthresh' is called.
+              Found and fixed by Sepideh Eskandarlou.
   bug #62944: No warning when the option value isn't immediately after the
               equal sign in long format. Found by Faezeh Bijarchian.
 
diff --git a/bin/script/psf-stamp.in b/bin/script/psf-stamp.in
index ba55b395..9937c0e2 100644
--- a/bin/script/psf-stamp.in
+++ b/bin/script/psf-stamp.in
@@ -670,7 +670,7 @@ EOF
        cropstd=$tmpdir/cropped-std-$objectid.fits
        astcrop $segment --hdu=SKY_STD --mode=img \
                 --center=$xcenter,$ycenter \
-                --width=$xwidth,$ywidth \
+                --width=$xwidthinpix,$ywidthinpix \
                --output=$cropstd $quiet
        astarithmetic $cropped_masked -h1 set-v \
                      $cropstd -h1        set-s \



reply via email to

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