[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 26372ebc: Segment: output SKY_STD HDU now has
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 26372ebc: Segment: output SKY_STD HDU now has WCS |
Date: |
Tue, 21 Nov 2023 06:27:58 -0500 (EST) |
branch: master
commit 26372ebca4f2cc2d3f7f82467e6751aeafeedcf2
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Segment: output SKY_STD HDU now has WCS
Until now, when the SKY_STD HDU Segment didn't have any WCS structure, even
when it had the same image size as the input.
With this commit, that output now also has the input's WCS in its headers.
This bug was reported by Sepideh Eskdandarlou.
This fixes bug #64915.
---
NEWS | 2 ++
bin/segment/segment.c | 6 +++++-
doc/announce-acknowledge.txt | 1 +
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 550674ca..45996b13 100644
--- a/NEWS
+++ b/NEWS
@@ -138,6 +138,8 @@ See the end of the file for license conditions.
- bug #64852: astscript-zeropoint: crash when input is in 0-th HDU;
reported by 'danc' in https://savannah.gnu.org/support/?110952; fixed
by Sepideh Eskandarlou.
+ - bug #64915: Segment's SKY_STD output HDU does not have WCS; reported by
+ Sepideh Eskandarlou.
diff --git a/bin/segment/segment.c b/bin/segment/segment.c
index 6b32f646..31a5d714 100644
--- a/bin/segment/segment.c
+++ b/bin/segment/segment.c
@@ -1441,7 +1441,11 @@ segment_output(struct segmentparams *p)
/* Write the STD dataset into the output file. */
p->std->name="SKY_STD";
if(p->std->size == p->input->size)
- gal_fits_img_write(p->std, p->cp.output, keys, PROGRAM_NAME);
+ {
+ p->std->wcs=p->input->wcs;
+ gal_fits_img_write(p->std, p->cp.output, keys, PROGRAM_NAME);
+ p->std->wcs=NULL;
+ }
else
gal_tile_full_values_write(p->std, &p->cp.tl, 1, p->cp.output, keys,
PROGRAM_NAME);
diff --git a/doc/announce-acknowledge.txt b/doc/announce-acknowledge.txt
index b611873e..6ac34ade 100644
--- a/doc/announce-acknowledge.txt
+++ b/doc/announce-acknowledge.txt
@@ -1,5 +1,6 @@
Alphabetically ordered list to acknowledge in the next release.
+Sepideh Eskandarlou
Teet Kuutma
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 26372ebc: Segment: output SKY_STD HDU now has WCS,
Mohammad Akhlaghi <=