[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 \
- [gnuastro-commits] master d6e6f9da 47/69: PSF flux-factor: correct the indentation, (continued)
- [gnuastro-commits] master d6e6f9da 47/69: PSF flux-factor: correct the indentation, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 809be22b 67/69: Book: PSF construction tutorial, completed until the outer part, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 2b0b6294 56/69: PSF scripts: fixed two FAILS during make checks, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f2a74d83 30/69: Book: fixing references and labels for the PSF scripts information, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master cf6335a6 18/69: PSF stamp: enabling the use of sigma-clip parameters, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 00b08df2 28/69: PSF stamp: add --saturation option for masking the saturated pixels, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 2718494e 19/69: PSF stamp: allowing to run the script without making normalization, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master da6eea59 33/69: Scripts: changing 'wcstoimg' to 'wcs-to-img' in several scripts, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 50fd424f 66/69: PSF tutorial: adding information to choose proper --normradii values, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 86ac2dd1 42/69: PSF select-stars: corrected bug in checking the catalog-image overlap, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master cf58a078 62/69: PSF select-stars: give the default value to the two variables,
Mohammad Akhlaghi <=
- [gnuastro-commits] master db2d55be 37/69: PSF select-stars: changing some variable names to follow conventions, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master cd14a366 44/69: PSF select-stars: including the make check step for this script, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 85648ac3 45/69: PSF select-stars: The script has been changed for use in general scenario, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 0facf365 16/69: Book: adding documentation of 'psf-model-scattered-light' script, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master b1e3da80 34/69: PSF junction: fixed bug when centering the different parts of the PSF, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 7c398567 36/69: Book: Correct the some parts of the making the PSF, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master b82adcfc 46/69: Book: some essential option was add to astscript-psf-select-stars section, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master ff3bb03f 38/69: PSF select-stars: removing not used options and polishing the comments, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master b5525411 48/69: PSF select-stars: delete the value of some options and ask them from the user, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 075bc680 58/69: PSF select-stars: remove the stars that have stars., Mohammad Akhlaghi, 2022/01/26