IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2005, 10:35:43 AM (21 years ago)
Author:
eugene
Message:

adding optional output dumps

File:
1 edited

Legend:

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

    r5593 r5617  
    3131    psFree (smooth);
    3232
    33     // make this optional
    34     // DumpPeaks (peaks, "peaks.dat");
    35 
     33    // optional dump of all peak data
     34    char *output = psMetadataLookupPtr (&status, config, "PEAKS_OUTPUT_FILE");
     35    if (status && (output != NULL) && (output[0])) {
     36        pmPeaksWriteText (peaks, output);
     37        psFree (output);
     38    }
     39     
    3640    psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
    37 
    3841    return (peaks);
    3942}
Note: See TracChangeset for help on using the changeset viewer.