summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2023-12-09 23:11:40 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2023-12-09 23:11:40 +0100
commit5e6d069f76d3de7496ba174be32e22488fe2d111 (patch)
tree3297226df67280de5b0479bffb43abbb810da4fa
parent08152a7414d4d58d508648b31163e6c02fd0eee4 (diff)
downloadgnuastro-5e6d069f7.tar.gz
astscript-psf-unite: correctly accounting for --innerhdu
Until now, when '--innerhdu' was used with this script to specify a HDU other than '--innerhdu=1', the script would not use the user-specified HDU. With this commit, the source of this problem has been found and fixed. It was due to the 'astwarp' command where we were not passing the value give to this option. This bug was reported by Ignacio Ruiz Cejudo. This fixes bug #65005.
-rw-r--r--NEWS3
-rw-r--r--bin/script/psf-unite.sh2
-rw-r--r--doc/announce-acknowledge.txt1
3 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 277a053..b1728c1 100644
--- a/NEWS
+++ b/NEWS
@@ -142,6 +142,9 @@ See the end of the file for license conditions.
Sepideh Eskandarlou.
- bug #64952: Table error message for incorrect column name was not
complete; reported by Sepideh Eskandarlou.
+ - bug #65005: astscript-psf-unit not accounting for --innerhdu; reported
+ by Ignacio Ruiz Cejudo.
+
diff --git a/bin/script/psf-unite.sh b/bin/script/psf-unite.sh
index a321d32..6c5b3ce 100644
--- a/bin/script/psf-unite.sh
+++ b/bin/script/psf-unite.sh
@@ -472,7 +472,7 @@ xdiff=$(astarithmetic $xcenter float32 $xpsfcenter float32 - --quiet)
ydiff=$(astarithmetic $ycenter float32 $ypsfcenter float32 - --quiet)
innertranslated=$tmpdir/"$bname_inner"_translated.fits
-astwarp $inner --translate=$xdiff,$ydiff \
+astwarp $inner --hdu=$innerhdu --translate=$xdiff,$ydiff \
--output=$innertranslated $quiet
diff --git a/doc/announce-acknowledge.txt b/doc/announce-acknowledge.txt
index 6ac34ad..1153c23 100644
--- a/doc/announce-acknowledge.txt
+++ b/doc/announce-acknowledge.txt
@@ -1,5 +1,6 @@
Alphabetically ordered list to acknowledge in the next release.
+Ignacio Ruiz Cejudo
Sepideh Eskandarlou
Teet Kuutma