[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 76c8a482 03/39: Zeropoint: add a script for bi
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 76c8a482 03/39: Zeropoint: add a script for bing it on Gnuastro |
Date: |
Wed, 19 Apr 2023 12:18:21 -0400 (EDT) |
branch: master
commit 76c8a4826d1172f3b4dde1c3921a4fd0cbdd765a
Author: Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Zeropoint: add a script for bing it on Gnuastro
Until now, Make file for computing the Zeropoint was written. But we could
not bring it on Gnuastro. Because whole the Gnuastro programs are written
in 'C' or 'Script'.
With this commit, the Script file of Zeropint is in the preparation stage
and some of the options are defined.
---
bin/script/zeropoint.in | 128 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 128 insertions(+)
diff --git a/bin/script/zeropoint.in b/bin/script/zeropoint.in
new file mode 100644
index 00000000..686bfb01
--- /dev/null
+++ b/bin/script/zeropoint.in
@@ -0,0 +1,128 @@
+#!/bin/sh
+
+# Calculate the Zeropoint of the image based on the refrence images or
+# catalog.
+#
+# Run with '--help' for more information.
+#
+# Original author:
+# Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
+# Contributing author:
+# Mohammad Akhlaghi <mohammad@akhlaghi.org>
+# Samane Raji <samaneraji@gmail.com>
+# Copyright (C) 2020-2022 Free Software Foundation, Inc.
+#
+# Gnuastro is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# Gnuastro is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with Gnuastro. If not, see <http://www.gnu.org/licenses/>.
+
+
+# Exit the script in the case of failure
+set -e
+
+# 'LC_NUMERIC' is responsible for formatting numbers printed by the OS. It
+# prevents floating points like '23,45' instead of '23.45'.
+export LC_NUMERIC=C
+
+
+
+
+# Default parameter's values
+hdu=1
+quiet=""
+output=""
+tmpdir=""
+catalog=""
+keeptmp=""
+refrence=""
+aperarcsec=""
+cataloghdu=""
+refrencezp=""
+refrencehdu=""
+version=@VERSION@
+scriptname=@SCRIPT_NAME@
+
+
+
+
+# Output of '--usage'
+print_usage() {
+ cat <<EOF
+$scriptname: run with '--help' to list the options.
+EOF
+}
+
+
+
+
+
+# Output of '--help'
+print_help() {
+ cat <<EOF
+Usage: $scriptname [OPTIONS] image.fits
+
+Build a catalogue of "good stars" that will be considered for constructing
+an extended and non parametric PSF. Here, "good stars" means that they
+don't have close objects that affect it sourrondings and consequently they
+are not contaminated. The script will construct a catalog of stars from
+reference datasets (Gaia) if the user does not provide another one. In
+addition to this, other parameters like the axis ratio are considered to
+filter the sample and select only proper stars.
+
+$scriptname options:
+ Input:
+ -h, --hdu=STR/INT HDU/Extension name of number of the input file.
+ -c, --catalog Refrence catalog which based on it zeropoint of
+ input will be compute.
+ -C, --cataloghdu HDU/Extension name of number of the catalog.
+ -r, --reference Rerence images which based on them zeropoint of
+ input will be compute.
+ -z, --referencezp Zeropoints of reference images.
+ -R, --referencehdu HDU/Extension name of number of the refrence files.
+ -a, --aprarcsec Aperure arcseconds.
+
+ Output:
+ -o, --output Output table with the object coordinates.
+ -t, --tmpdir Directory to keep temporary files.
+ -k, --keeptmp Keep temporal/auxiliar files.
+
+ Operating mode:
+ -h, --help Print this help.
+ --cite BibTeX citation for this program.
+ -q, --quiet Don't print any extra information in stdout.
+ -V, --version Print program version.
+
+Mandatory or optional arguments to long options are also mandatory or optional
+for any corresponfing short options.
+
+GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/
+
+Report bugs to bug-gnuastro@gnu.org
+EOF
+}
+
+
+
+
+
+# Output of '--version':
+print_version() {
+ cat <<EOF
+$scriptname (GNU Astronomy Utilities) $version
+Copyright (C) 2020-2022 Free Software Foundation, Inc.
+License GPLv3+: GNU General public license version 3 or later.
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written/developed by Sepideh Eskandarlou.
+EOF
+}
- [gnuastro-commits] master 01dcbeed 15/39: Book: tutorial of zero point; magnitude range and aperture size, (continued)
- [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
- [gnuastro-commits] master 6ff43d00 05/39: Zeropoint: script for estimating the zeropoint of an image, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 76c8a482 03/39: Zeropoint: add a script for bing it on Gnuastro,
Mohammad Akhlaghi <=
- [gnuastro-commits] master dddb483f 01/39: zeropoint: First make file for obtainaing the zeropoint photometry, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master a841d3f2 02/39: zeropoint: catalogs can be used as reference, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 2c027224 08/39: Zeropoint: change the output file, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master ea79c2ba 14/39: Book: tutorial of zero point; removing the sky and running the script, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 48edcd91 13/39: Book: tutorial of zero point; preparing images for using the script, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 88b4c298 23/39: Book: tutorial of zero point; subsection catalog reference, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master aeb507b8 22/39: Book: correct the info format menus, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 069e12f4 24/39: Zeropoint: a bug about the matching of reference and main catalog, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master c4af3dfc 25/39: Book: tutorial of zero point; completing the catalog reference, Mohammad Akhlaghi, 2023/04/19
- [gnuastro-commits] master 536052fb 35/39: astscript-zeropoint: writting all receipes as in one shell, Mohammad Akhlaghi, 2023/04/19