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/psphotOutput.c

    r5350 r5617  
    348348
    349349// write the peaks to an output file
    350 bool pmPeaksWriteText (psArray *sources, char *filename) {
     350bool pmPeaksWriteText (psArray *peaks, char *filename) {
    351351
    352352    int i;
    353353    FILE *f;
    354     pmPeak *peak;
    355354       
    356355    f = fopen (filename, "w");
     
    360359    }
    361360
    362     for (i = 0; i < sources->n; i++) {
    363         peak = (pmPeak *) sources->data[i];
     361    for (i = 0; i < peaks->n; i++) {
     362        pmPeak *peak = peaks->data[i];
    364363        if (peak == NULL) continue;
    365364        fprintf (f, "%5d %5d  %7.1f\n",
Note: See TracChangeset for help on using the changeset viewer.