IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2011, 2:27:43 PM (15 years ago)
Author:
eugene
Message:

handle chisq fit for case of small number of stamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.c

    r30622 r30738  
    939939    // which are significantly deviant from that distribution.
    940940
     941    // if we only have 3 or fewer stars, we have to accept them all
     942    if (match->nGood < 3) {
     943        kernels->mean = NAN;
     944        kernels->rms = NAN;
     945        kernels->numStamps = match->nGood;
     946       
     947        psLogMsg("psModules.imcombine", PS_LOG_INFO, "only %d stars, keeping them all (good luck!)",  kernels->numStamps);
     948        return 0;
     949    }
     950
    941951    kernels->mean = NAN;
    942952    kernels->rms = NAN;
Note: See TracChangeset for help on using the changeset viewer.