IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2006, 12:49:47 AM (20 years ago)
Author:
eugene
Message:

cleanup log messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFindPeaks.c

    r10295 r10801  
    2020    psImage *smooth_im = psImageCopy (NULL, readout->image, PS_TYPE_F32);
    2121    psImageSmooth (smooth_im, SIGMA, NSIGMA);
    22     psLogMsg ("psphot", 4, "smooth image: %f sec\n", psTimerMark ("psphot"));
     22    psLogMsg ("psphot", PS_LOG_MINUTIA, "smooth image: %f sec\n", psTimerMark ("psphot"));
    2323
    2424    psImage *smooth_wt = psImageCopy (NULL, readout->weight, PS_TYPE_F32);
     
    2626    smooth_wt = (psImage*)psBinaryOp(smooth_wt, smooth_wt, "*",
    2727                                     psScalarAlloc(1/(4*M_PI*PS_SQR(SIGMA)), PS_TYPE_F32));
    28     psLogMsg ("psphot", 4, "smooth weight: %f sec\n", psTimerMark ("psphot"));
     28    psLogMsg ("psphot", PS_LOG_MINUTIA, "smooth weight: %f sec\n", psTimerMark ("psphot"));
    2929
    3030    psImage *mask = readout->mask;
     
    3636    }
    3737
    38     psTimerStart ("psphot");
    3938    for (int j = 0; j < smooth_im->numRows; j++) {
    4039        for (int i = 0; i < smooth_im->numCols; i++) {
     
    4746        }
    4847    }
    49     psLogMsg ("psphot", 4, "built S/N map: %f sec\n", psTimerMark ("psphot"));
    50 
    51     psTimerStart ("psphot");
     48    psLogMsg ("psphot", PS_LOG_MINUTIA, "built S/N map: %f sec\n", psTimerMark ("psphot"));
    5249
    5350    // set peak threshold
     
    5552    // threshold = NSIGMA*sky->sampleStdev + sky->sampleMean;
    5653    threshold = PS_SQR(NSIGMA);
    57     psLogMsg ("psphot", 4, "threshold: %f DN\n", threshold);
     54    psLogMsg ("psphot", PS_LOG_DETAIL, "threshold: %f DN\n", threshold);
    5855
    5956    // find the peaks in the smoothed image
     
    6865        pmPeaksWriteText (peaks, output);
    6966    }
    70     psLogMsg ("psphot", 3, "%ld peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
     67    psLogMsg ("psphot", PS_LOG_INFO, "%ld peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
    7168
    7269    return (peaks);
Note: See TracChangeset for help on using the changeset viewer.