[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 510ae0b 2/2: Corrected extension name of Noise
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 510ae0b 2/2: Corrected extension name of NoiseChisel dthresh check image |
Date: |
Wed, 17 May 2017 10:35:53 -0400 (EDT) |
branch: master
commit 510ae0b206426c95062dd2cd0b32ab4c47bed429
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Corrected extension name of NoiseChisel dthresh check image
The extension name for applying `dthresh' on the sky and on the detections
was the same (which is wrong and can cause confusions). This is corrected
with this commit.
---
bin/noisechisel/detection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/noisechisel/detection.c b/bin/noisechisel/detection.c
index ccedd64..4a4f68b 100644
--- a/bin/noisechisel/detection.c
+++ b/bin/noisechisel/detection.c
@@ -290,7 +290,7 @@ detection_pseudo_find(struct noisechiselparams *p,
gal_data_t *workbin,
detection_pseudo_sky_or_det(p, workbin->array, s0d1);
if(p->detectionname)
{
- workbin->name="DTHRESH-ON-SKY";
+ workbin->name = s0d1 ? "DTHRESH-ON-DET" : "DTHRESH-ON-SKY";
gal_fits_img_write(workbin, p->detectionname, NULL, PROGRAM_STRING);
workbin->name=NULL;
}