[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master cf6335a6 18/69: PSF stamp: enabling the use of
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master cf6335a6 18/69: PSF stamp: enabling the use of sigma-clip parameters |
Date: |
Wed, 26 Jan 2022 12:39:10 -0500 (EST) |
branch: master
commit cf6335a6e099299a236967411e6935a689dcec06
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
PSF stamp: enabling the use of sigma-clip parameters
Until this commit, the option for using sigma-clip parameters was
available. However, it was not set properly inside of the script. In
practice that means that the option was not used. With this commit, this
bug has been fixed and now it is possible to use sigma-clip parameters when
using the script 'psf-create-make-stamp'.
---
bin/script/psf-create-make-stamp.in | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/bin/script/psf-create-make-stamp.in
b/bin/script/psf-create-make-stamp.in
index 1782fe70..70d5d7b9 100644
--- a/bin/script/psf-create-make-stamp.in
+++ b/bin/script/psf-create-make-stamp.in
@@ -472,15 +472,18 @@ fi
#
# Generate the radial profile of the stamp, since it has been already
# centered on the center of the object, it is not necessary to give the
-# center coordinates. If the user specifies a maximum radius, use it.
+# center coordinates. If the user specifies a maximum radius, use it. If
+# the user specifies sigma clip parameters, use them.
radialprofile=$tmpdir/rprofile-$objectid.fits
-if [ x"$rmax" != x ]; then
- maximumradius="--rmax=$rmax"
-else
- maximumradius=""
+if [ x"$rmax" != x ]; then maximumradius="--rmax=$rmax"
+else maximumradius=""
+fi
+if [ x"$sigmaclip" = x ]; then finalsigmaclip=""
+else finalsigmaclip="--sigmaclip=$sigmaclip";
fi
astscript-radial-profile $cropped_masked --hdu=1 $maximumradius \
- --measure=$normop --output=$radialprofile $quiet
+ --measure=$normop $finalsigmaclip \
+ --output=$radialprofile $quiet
@@ -490,10 +493,14 @@ astscript-radial-profile $cropped_masked --hdu=1
$maximumradius \
# -------------------------------
#
# The normalization value is computed from the radial profile in between
-# the two radius specified by the user.
+# the two radius specified by the user. In this case, the option to give
+# sigmaclip parameters to 'aststatistics' is different.
+if [ x"$sigmaclip" = x ]; then finalsigmaclip=""
+else finalsigmaclip="--sclipparams=$sigmaclip";
+fi
normvalue=$(asttable $radialprofile $quiet \
--range=1,$normradiusmin,$normradiusmax \
- | aststatistics --column=2 --$normop --quiet)
+ | aststatistics --column=2 --$normop $finalsigmaclip -q)
- [gnuastro-commits] master d99fc9df 60/69: PSF select-stars: add new option for selecting more bright stars, (continued)
- [gnuastro-commits] master d99fc9df 60/69: PSF select-stars: add new option for selecting more bright stars, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 69a2e6ee 54/69: Book: correct some comments in the psf-create-select-stars, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master f42832f8 23/69: PSF stamp: allowingto use a position angle and axis ratio, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 2894b35a 32/69: PSF model: including the make check step for two PSF scripts, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master aae0d156 64/69: PSF tutorial: running of Segment on saturated images added, Mohammad Akhlaghi, 2022/01/26
- [gnuastro-commits] master 5fdd3a4a 31/69: PSF create: including the make check step for two PSF scripts, Mohammad Akhlaghi, 2022/01/26
- [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 <=
- [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, 2022/01/26
- [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