IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2008, 9:39:53 AM (18 years ago)
Author:
Paul Price
Message:

Need to average concepts for output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080320/ppMerge/src/ppMergeLoop.c

    r17157 r17169  
    219219                }
    220220            }
     221
     222            // Get list of cells for concepts averaging
     223            psList *inCells = psListAlloc(NULL); // List of cells
     224            for (int i = 0; i < numFiles; i++) {
     225                psListAdd(inCells, PS_LIST_TAIL, readouts->data[i]);
     226            }
     227            if (!pmConceptsAverageCells(outCell, inCells, NULL, NULL, true)) {
     228                psError(PS_ERR_UNKNOWN, false, "Unable to average cell concepts.");
     229                psFree(inCells);
     230                psFree(outRO);
     231                goto ERROR;
     232            }
     233            psFree(inCells);
     234
    221235            psFree(readouts);
    222236
     
    283297        }
    284298    }
     299
     300    // Get list of FPAs for concepts averaging
     301    psList *inFPAs = psListAlloc(NULL); // List of FPAs
     302    for (int i = 0; i < numFiles; i++) {
     303        pmFPAfile *input = inputs->data[i]; // Input file
     304        psListAdd(inFPAs, PS_LIST_TAIL, input->fpa);
     305    }
     306    if (!pmConceptsAverageFPAs(output->fpa, inFPAs)) {
     307        psError(PS_ERR_UNKNOWN, false, "Unable to average FPA concepts.");
     308        psFree(inFPAs);
     309        goto ERROR;
     310    }
     311    psFree(inFPAs);
     312
     313
    285314    if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
    286315        goto ERROR;
Note: See TracChangeset for help on using the changeset viewer.