gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master cf58a078 62/69: PSF select-stars: give the def


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master cf58a078 62/69: PSF select-stars: give the default value to the two variables
Date: Wed, 26 Jan 2022 12:39:16 -0500 (EST)

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

    PSF select-stars: give the default value to the two variables
    
    Until now, for the two varialbe '--faintmagdiff', '--brightmag' had not
    default value determined and when the user did not determine these values
    the script will be interrupt and wanted the user determine these valuse.
    
    With this commit, the default value has been defined for two these
    variables '--faintmagdiff', '--brightmag' and if the user does not
    determind the value of these parameters the default value has been
    considered.
---
 bin/script/psf-create-select-stars.in | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/bin/script/psf-create-select-stars.in 
b/bin/script/psf-create-select-stars.in
index f2d5fee3..f6542103 100755
--- a/bin/script/psf-create-select-stars.in
+++ b/bin/script/psf-create-select-stars.in
@@ -46,13 +46,13 @@ output=""
 tmpdir=""
 catalog=""
 keeptmp=""
-brightmag=""
+brightmag=-10
 segmented=""
 racolumn="ra"
 mindistdeg=""
 deccolumn="dec"
 minaxisratio=""
-faintmagdiff=""
+faintmagdiff=4
 version=@VERSION@
 magnituderange=""
 matchaperturedeg=""
@@ -299,21 +299,6 @@ elif [ ! -f $inputs ]; then
     exit 1
 fi
 
-# Check the user provide the magnitude of the faintest stars which she/he
-# want compare.
-if [ x"$faintmagdiff" = x ]; then
-    echo "$scriptname:: The '--faintmagdiff' dose not provided."
-    exit 1
-fi
-
-# Check the user provide the magnitude of the brightest stars which she/he
-# want compare.
-if [ x"$brightmag" = x ]; then
-    echo "$scriptname:: The '--brightmag' dose not provided."
-    exit 1
-fi
-
-
 # Check that 'segmented' is output of 'astsegment'.
 if [ x"$segmented" != x ]; then
     nhdu=$(astfits $segmented --listimagehdus \



reply via email to

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