[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master e39330ab 17/39: Zeropoint: adding sanity check
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master e39330ab 17/39: Zeropoint: adding sanity check for aperture option |
Date: |
Wed, 19 Apr 2023 12:18:24 -0400 (EDT) |
branch: master
commit e39330abbf9798996c35880fb4100a8ae95f7eca
Author: Elham Saremi <saremi_elham@yahoo.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Zeropoint: adding sanity check for aperture option
Until now, we did not have a sanity check for --aperarcsec option. Without
this, the user did not understand that the existence of it is necessary.
With this commit, a sanity check is added to zero point script. So if the
user doesn't use this option, one error will be printed.
---
bin/script/zeropoint.in | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bin/script/zeropoint.in b/bin/script/zeropoint.in
index 0bb04f80..4e7578c5 100644
--- a/bin/script/zeropoint.in
+++ b/bin/script/zeropoint.in
@@ -345,6 +345,15 @@ EOF
fi
fi
+# If an aperture size is not given at all.
+if [ x"$aperarcsec" = x ]; then
+ cat <<EOF
+$scriptname: ERROR: '--aperarcsec' (or '-a') is necessary at least with one
value. Run with '--help' for more information.
+EOF
+ exit 1
+fi
+
+
- [gnuastro-commits] master updated (dd7ccfb7 -> 21cd71bf), Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 1ddcf29a 06/39: zeropoint: options of zeropoint estimation is written in book, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master c3fc5214 04/39: Zeropoint: add options with variable, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master d44ce8c0 10/39: zeropoint: use --magrage provided by user, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 8be4edd7 18/39: Zeropoint: a bug about the magnitude range, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 10030cfc 11/39: Zeropoint: add magnitude range into the header of output, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master e39330ab 17/39: Zeropoint: adding sanity check for aperture option,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 46d328cd 12/39: Book: writing a tutorial for the zero-point script; preface, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 01dcbeed 15/39: Book: tutorial of zero point; magnitude range and aperture size, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master b3077f0d 27/39: Book: revision of the first part of the zeropoint tutorial, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 17b5fa81 36/39: Book: simplifying and polishing the zero point script tutorial, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 7769e279 07/39: zeropoint: new options for magnitude and keeping the results are added, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master a1c7a277 16/39: Book: tutorial of zero point; select the best aperture, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 1a987e04 19/39: Book: tutorial of zero point; using keepzpap and completion of results, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master a3c0f0e2 31/39: Zeropoint: optimize the script for overlaping check, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 156da6c7 28/39: Book: Increase readability and correction, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master d8402f1a 32/39: Book: some command and some tips is added to better recognition, Mohammad Akhlaghi, 2023/04/19