IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2006, 11:58:44 AM (20 years ago)
Author:
eugene
Message:

renamed config to recipe in lower-level functions, added pixel weights to pmSource, other cleanups

File:
1 edited

Legend:

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

    r6495 r6862  
    22
    33// 2006.02.02 : no leaks
    4 psArray *psphotFindPeaks (pmReadout *readout, psMetadata *config) {
     4psArray *psphotFindPeaks (pmReadout *readout, psMetadata *recipe) {
    55
    66    bool  status = false;
     
    1212    psTimerStart ("psphot");
    1313
    14     SIGMA  = psMetadataLookupF32 (&status, config, "PEAKS_SMOOTH_SIGMA");
    15     NSIGMA = psMetadataLookupF32 (&status, config, "PEAKS_SMOOTH_NSIGMA");
     14    SIGMA  = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_SIGMA");
     15    NSIGMA = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA");
    1616
    1717    psImage *smooth_im = psImageCopy (NULL, readout->image, PS_TYPE_F32);
     
    3737
    3838    // set peak threshold
    39     NSIGMA = psMetadataLookupF32 (&status, config, "PEAKS_NSIGMA_LIMIT");
     39    NSIGMA = psMetadataLookupF32 (&status, recipe, "PEAKS_NSIGMA_LIMIT");
    4040    // threshold = NSIGMA*sky->sampleStdev + sky->sampleMean;
    4141    threshold = PS_SQR(NSIGMA);
     
    4949
    5050    // optional dump of all peak data
    51     char *output = psMetadataLookupStr (&status, config, "PEAKS_OUTPUT_FILE");
     51    char *output = psMetadataLookupStr (&status, recipe, "PEAKS_OUTPUT_FILE");
    5252    if (status && (output != NULL) && (output[0])) {
    5353        pmPeaksWriteText (peaks, output);
     
    5555    psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
    5656
    57     char *breakPt = psMetadataLookupStr (&status, config, "BREAK_POINT");
     57    char *breakPt = psMetadataLookupStr (&status, recipe, "BREAK_POINT");
    5858    if (!strcasecmp (breakPt, "PEAKS")) exit (0);
    5959
Note: See TracChangeset for help on using the changeset viewer.