IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13880


Ignore:
Timestamp:
Jun 19, 2007, 10:31:22 AM (19 years ago)
Author:
Paul Price
Message:

Only perform statistics if we merged this cell.

File:
1 edited

Legend:

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

    r13873 r13880  
    255255            }
    256256
    257             // Add MD5 information for cell
    258257            if (readout->image) {
     258                // Add MD5 information for cell
    259259                pmHDU *hdu = pmHDUFromCell(cell); // HDU that owns the cell
    260260                const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
     
    271271                psFree(md5string);
    272272                psFree(headerName);
     273
     274
     275                // Statistics on the merged cell
     276                if (data->statsFile) {
     277                    if (!data->stats) {
     278                        data->stats = psMetadataAlloc();
     279                    }
     280                    if (!ppStats(data->stats, data->out, view, options->combine->maskVal, config)) {
     281                        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n");
     282                        return false;
     283                    }
     284                }
    273285            }
    274286
    275287            psFree(readout);            // Drop reference
    276288
    277             // Statistics on the merged cell
    278             if (data->statsFile) {
    279                 if (!data->stats) {
    280                     data->stats = psMetadataAlloc();
    281                 }
    282                 if (!ppStats(data->stats, data->out, view, options->combine->maskVal, config)) {
    283                     psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n");
    284                     return false;
    285                 }
    286             }
    287289
    288290            // We threw away the bias sections --- record this
Note: See TracChangeset for help on using the changeset viewer.