IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2011, 10:11:07 AM (15 years ago)
Author:
eugene
Message:

merging updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/psModules/src/objects/pmFootprintCullPeaks.c

    r31153 r31443  
    102102        float beta = nsigma_delta * ALPHA;
    103103        float beta2 = PS_SQR(beta);
    104         int nBins = sqrt(4.0*(maxFlux - min_threshold)/beta2) + 10; // let's be extra generous
     104        float value = 4.0*(maxFlux - min_threshold)/beta2;
     105        int nBins = (value > 1.0) ? sqrt(value) + 10 : 10; // let's be extra generous
    105106
    106107        // create a vector to store the threshold bins used for each peak
Note: See TracChangeset for help on using the changeset viewer.