[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 10030cfc 11/39: Zeropoint: add magnitude range
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 10030cfc 11/39: Zeropoint: add magnitude range into the header of output |
Date: |
Wed, 19 Apr 2023 12:18:23 -0400 (EDT) |
branch: master
commit 10030cfc8f4be4d1640b7d6097c59f1bccecff23
Author: Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Zeropoint: add magnitude range into the header of output
Until now, if user considered the magnitude range did not write in header
of output.
With this commit, two values named 'MAGMIN' and 'MAGMAX' are added to
header of output. If user determine the magnitude range both of these will
take value, otherwise if user do not determine magnitude range both of them
do not have value in header.
---
bin/script/zeropoint.mk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/bin/script/zeropoint.mk b/bin/script/zeropoint.mk
index 5e82d96a..6fd16433 100644
--- a/bin/script/zeropoint.mk
+++ b/bin/script/zeropoint.mk
@@ -256,9 +256,11 @@ $(zeropoint): $(aperzeropoint)
# Find the best aperture, its zeropoint and standard deviation for
# writting in the header of the output.
- mag=""
+ magmin=""
+ magmax=""
if [ x"$(magrange)" != x ]; then
- mag=$(magrange)
+ magmin=$$(echo "$(magrange)" | sed 's\,\ \' | awk '{print $$1}')
+ magmax=$$(echo "$(magrange)" | sed 's\,\ \' | awk '{print $$2}')
fi
asttable $$zp --output=$@.fits
bestaper=$$(asttable $$zp --sort=ZPSTD --head=1 --column=APERTURE)
@@ -268,7 +270,8 @@ $(zeropoint): $(aperzeropoint)
astfits $@.fits --write=ZPAPER,"$$bestaper","Best aperture."
astfits $@.fits --write=ZPVALUE,"$$bestzp","Best zeropoint."
astfits $@.fits --write=ZPSTD,"$$beststd","Best standard deviation of
zeropoint."
- astfits $@.fits --write=MAGRNG,"$$mag","Magnitude range."
+ astfits $@.fits --write=MAGMIN,"$$magmin","Minimum magnitude for
obtaining zeropoint."
+ astfits $@.fits --write=MAGMAX,"$$magmax","Maximum magnitude for
obtaining zeropoint."
if [ x"$(keepzpap)" = x ]; then
- [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 <=
- [gnuastro-commits] master e39330ab 17/39: Zeropoint: adding sanity check for aperture option, Mohammad Akhlaghi, 2023/04/19
- [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