gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 2b0b6294 56/69: PSF scripts: fixed two FAILS d


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 2b0b6294 56/69: PSF scripts: fixed two FAILS during make checks
Date: Wed, 26 Jan 2022 12:39:15 -0500 (EST)

branch: master
commit 2b0b6294f804fdaa6d05663d99fdb17dad71b91c
Author: Raul Infante-Sainz <infantesainz@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    PSF scripts: fixed two FAILS during make checks
    
    Until this commit, there were two PSF scripts that failed during the make
    check steps. For the 'psf-create-junction' script the problem was that the
    variable of the inner image name was not the correct one: it was 'psf' but
    should be 'core'. For the 'psf-create-select-stars' the problem was that
    when using the option '--range' in Table, the separator should be commas
    ',', however, semicolons ':' were used instead.
    
    With this commit, these bugs have been corrected. Now the make checks run
    without any problem for this two scripts.
---
 bin/script/psf-create-junction.in     |  2 +-
 bin/script/psf-create-select-stars.in | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/bin/script/psf-create-junction.in 
b/bin/script/psf-create-junction.in
index 9982ae00..524e054f 100644
--- a/bin/script/psf-create-junction.in
+++ b/bin/script/psf-create-junction.in
@@ -354,7 +354,7 @@ ycenter=$(astarithmetic $yaxis 2 / --quiet)
 # image.  So, the center of the PSF is computed here from the size of the
 # PSF image along the two axis (in pixels). Dimension values are computed
 # as described above.
-psfaxises=$(astfits $psf --hdu=$psfhdu --quiet \
+psfaxises=$(astfits $core --hdu=$corehdu --quiet \
                     --keyvalue ZNAXIS1,ZNAXIS2,NAXIS1,NAXIS2)
 psfnaxises=$(echo $psfaxises \
                   | sed 's/n\/a//g' \
diff --git a/bin/script/psf-create-select-stars.in 
b/bin/script/psf-create-select-stars.in
index 9ab27c54..b7d70e9d 100755
--- a/bin/script/psf-create-select-stars.in
+++ b/bin/script/psf-create-select-stars.in
@@ -463,9 +463,9 @@ if [ x"$catalog" != x ]; then
             echo "External Cataloge already exists "
         else
             # Select stars with magnitude between minimum to maximum.
-            asttable $catalog --range=$field,$minmag:$maxmag --sort=$field \
-                     --range=$racolumn,$minraimg:$maxraimg \
-                     --range=$deccolumn,$mindecimg:$maxdecimg \
+            asttable $catalog --range=$field,$minmag,$maxmag --sort=$field \
+                     --range=$racolumn,$minraimg,$maxraimg \
+                     --range=$deccolumn,$mindecimg,$maxdecimg \
                      --output=$catalog_magfiltered $quiet
 
             # At first check and if there are no stars in the range of 
magnitude
@@ -487,7 +487,7 @@ else
     else
        # Download the catalog with the necessary parameters.
         astquery $dataset --output=$catalog_magfiltered --overlapwith=$inputs 
--hdu=$hdu \
-                 --column=$columnquery --range=$field,$minmag:$maxmag \
+                 --column=$columnquery --range=$field,$minmag,$maxmag \
                  --sort=$field $quiet
     fi
 fi
@@ -505,7 +505,7 @@ fi
 goodparallax=$tmpdir/parallax-good.fits
 if [ x"$parallaxanderrorcolumn" != x ]; then
     asttable $catalog_magfiltered -c$racolumn,$deccolumn -c$field \
-             --range=$field,$minmag:$maxmag --colinfoinstdout --noblank=4 \
+             --range=$field,$minmag,$maxmag --colinfoinstdout --noblank=4 \
              -c'arith '$parallax' '$parallax' abs \
                       '$parallax_error' 3 x lt nan where ' \
              | asttable -c$racolumn,$deccolumn -c$field --output=$goodparallax 
$quiet



reply via email to

[Prev in Thread] Current Thread [Next in Thread]