gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 22c39cd: Extension name for Sky check image in


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 22c39cd: Extension name for Sky check image in NoiseChisel
Date: Mon, 14 Aug 2017 14:14:54 -0400 (EDT)

branch: master
commit 22c39cde7e3a05ae7a64d89b0b24bb16002adfa0
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Extension name for Sky check image in NoiseChisel
    
    The first extension of NoiseChisel's sky check image (when
    `--oneelempertile' is not called) had no name! So a "DETECTED" name was set
    for it.
---
 bin/noisechisel/sky.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/noisechisel/sky.c b/bin/noisechisel/sky.c
index 7f369e4..efb5961 100644
--- a/bin/noisechisel/sky.c
+++ b/bin/noisechisel/sky.c
@@ -155,7 +155,11 @@ sky_and_std(struct noisechiselparams *p, char *checkname)
   /* When the check image has the same resolution as the input, write the
      binary array as a reference to help in the comparison. */
   if(checkname && !tl->oneelempertile)
-    gal_fits_img_write(p->binary, checkname, NULL, PROGRAM_STRING);
+    {
+      p->binary->name="DETECTED";
+      gal_fits_img_write(p->binary, checkname, NULL, PROGRAM_STRING);
+      p->binary->name=NULL;
+    }
 
 
   /* Allocate space for the mean and standard deviation. */



reply via email to

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