IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2006, 4:18:39 PM (20 years ago)
Author:
Paul Price
Message:

Change to output statistics of combined image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCheckInputs.c

    r8069 r8405  
    2323        psErrorStackPrint(stderr, "Can't open output image: %s\n", outName);
    2424        exit(EXIT_FAILURE);
     25    }
     26
     27    // Statistics file
     28    psString statsName = psMetadataLookupStr(NULL, config->arguments, "-stats"); // Name for statistics file
     29    if (statsName && strlen(statsName) > 0) {
     30        data->statsFile = fopen(statsName, "w");
     31        if (!data->statsFile) {
     32            psLogMsg(__func__, PS_LOG_WARN, "Unable to open statistics file %s --- ignored.\n",
     33                     statsName);
     34        }
    2535    }
    2636
Note: See TracChangeset for help on using the changeset viewer.