IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8398


Ignore:
Timestamp:
Aug 16, 2006, 2:53:55 PM (20 years ago)
Author:
Paul Price
Message:

Synching to revised pmFlatNormalize function API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeScaleZero.c

    r7873 r8398  
    66#include "ppMerge.h"
    77#include "ppMergeScaleZero.h"
    8 
    9 #define MAX_ITER 10                     // Maximum number of iterations for pmFlatNormalize
    10 #define TOLERANCE 1e-3                  // Tolerance to reach for pmFlatNormalize
    11 
    128
    139// Extract a particular statistic from the stats
     
    279275    if (options->scale) {
    280276        // Need to normalize over the focal plane
    281         bool converge = true;           // Did we converge?
    282277        if (psTraceGetLevel(__func__) > 9) {
    283278            for (int i = 0; i < gains->n; i++) {
     
    285280            }
    286281        }
    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)) {
    289284            psLogMsg(__func__, PS_LOG_WARN, "Normalisation failed to converge --- continuing anyway.\n");
    290285            status = false;
Note: See TracChangeset for help on using the changeset viewer.