IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2011, 2:11:57 PM (15 years ago)
Author:
eugene
Message:

change due to pmPeak element changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ppSim/src/ppSimDetections.c

    r18011 r30977  
    11# include "ppSim.h"
    22
     3// XXX this function is not used
    34bool ppSimDetections (psImage *significance, psMetadata *recipe, psArray *sources) {
    45    psAssert (sources, "programming error: ppSimDetections passed NULL sources");
     
    1213    float SIGMA_SMTH  = psMetadataLookupF32 (&status, recipe, "SIGMA_SMOOTH");
    1314    psAssert (status, "SIGMA_SMOOTH missing: call psphotSignificanceImage first");
    14     float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
     15    // float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
    1516
    1617    int row0 = significance->row0;
     
    2324        psAssert (peak, "peak is not defined for the source");
    2425
    25         peak->value = significance->data.F32[peak->y-row0][peak->x-col0];
    26         peak->SN = sqrt(peak->value*effArea);
    27 
     26        peak->detValue = significance->data.F32[peak->y-row0][peak->x-col0];
    2827    }
    2928    return true;
Note: See TracChangeset for help on using the changeset viewer.