Changeset 8398 for trunk/ppMerge/src/ppMergeScaleZero.c
- Timestamp:
- Aug 16, 2006, 2:53:55 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeScaleZero.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeScaleZero.c
r7873 r8398 6 6 #include "ppMerge.h" 7 7 #include "ppMergeScaleZero.h" 8 9 #define MAX_ITER 10 // Maximum number of iterations for pmFlatNormalize10 #define TOLERANCE 1e-3 // Tolerance to reach for pmFlatNormalize11 12 8 13 9 // Extract a particular statistic from the stats … … 279 275 if (options->scale) { 280 276 // Need to normalize over the focal plane 281 bool converge = true; // Did we converge?282 277 if (psTraceGetLevel(__func__) > 9) { 283 278 for (int i = 0; i < gains->n; i++) { … … 285 280 } 286 281 } 287 psVector *fluxes = pmFlatNormalize(&converge, gains, background, MAX_ITER, TOLERANCE);288 if (! converge || !fluxes) {282 psVector *fluxes = NULL; // Solution to fluxes 283 if (!pmFlatNormalize(&fluxes, &gains, background)) { 289 284 psLogMsg(__func__, PS_LOG_WARN, "Normalisation failed to converge --- continuing anyway.\n"); 290 285 status = false;
Note:
See TracChangeset
for help on using the changeset viewer.
