1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Ole Streicher <olebole@debian.org>
Date: Sun, 24 Jan 2016 10:30:32 +0100
Subject: Remove suspicious threshold
These lines did reset the variance (for the resampled weight image) to zero
when they are below the configured threshold (which is, by default 1e10 (!)).
.
The code there is executed after the code from src/weight.c, where the threshold
already was applied. Setting them to zero based on a lower limit seems not to
be useful.
Closes: #812432
Forwarded: http://www.astromatic.net/forum/showthread.php?tid=1076
---
src/coadd.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/coadd.c b/src/coadd.c
index d8ae819..2398eef 100644
--- a/src/coadd.c
+++ b/src/coadd.c
@@ -2325,13 +2325,6 @@ int coadd_load(fieldstruct *field, fieldstruct *wfield,
#endif // HAVE_CFITSIO
}
read_body(wfield->tab, line, field->width);
- if ((thresh=wfield->weight_thresh)>0.0)
- {
- linet = line;
- for (x=field->width; x--; linet++)
- if (*linet<=thresh)
- *linet = 0.0;
- }
}
#ifdef USE_THREADS
if (threadstep++)
|