[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 8dabd91 1/2: Blank pixels in Sky and Sky STD i
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 8dabd91 1/2: Blank pixels in Sky and Sky STD images acceptable |
Date: |
Sat, 10 Sep 2016 12:32:04 +0000 (UTC) |
branch: master
commit 8dabd91470070f9e2f3c46fe1e181421d0ecbb57
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Blank pixels in Sky and Sky STD images acceptable
Until now, MakeCatalog would complain if the Sky and Sky Standard Deviation
images had blank pixels. It is up to the user to make sure these images
don't have blank pixels over the pixels they want.
A small correction was also made to the error message when no median was
given.
---
src/mkcatalog/ui.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mkcatalog/ui.c b/src/mkcatalog/ui.c
index 0d898f4..7c86b7e 100644
--- a/src/mkcatalog/ui.c
+++ b/src/mkcatalog/ui.c
@@ -981,11 +981,12 @@ checksetfloat(struct mkcatalogparams *p, char *filename,
char *hdu,
gal_fits_file_to_float(filename, NULL, hdu, NULL, array, &bitpix,
&anyblank, &s0, &s1);
- /* Make sure it has no blank pixels. */
+ /* Make sure it has no blank pixels.
if(anyblank)
error(EXIT_FAILURE, 0, "the Sky and Sky standard deviation images "
"should not have any blank values. %s (hdu: %s) has blank "
"pixels", filename, hdu);
+ */
/* Make sure it has the same size as the image. */
if(s0!=p->s0 || s1!=p->s1)
@@ -1027,7 +1028,7 @@ readkeywords(struct mkcatalogparams *p)
{
p->medstd=gal_statistics_median(p->std, size);
fprintf(stderr, "Warning: Could not find the MEDSTD keyword in %s "
- "(hdu: %s). The median standard deviation is thus found on"
+ "(hdu: %s). The median standard deviation is thus found on "
"the (interpolated) standard deviation image. NoiseChisel "
"finds the median before interpolation, so the reported value "
"in the final catalog will not be accurate (will depend on "