IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2008, 2:29:14 PM (18 years ago)
Author:
Paul Price
Message:

Fix for outrageous use of memory when combining GPC images --- there are so many chips and cells, each with their own concepts metadata, that the memory is filled with metadataItems. Added a purge of the ones that aren't required. Since the concepts are integral to the system, it's sometimes necessary when iterating to skip cells that have had the concepts purged.

File:
1 edited

Legend:

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

    r16950 r16989  
    133133        while ((cell = pmFPAviewNextCell(view, fpa, 1))) {
    134134            cellNum++;
     135
     136            pmHDU *hdu = pmHDUGetLowest(data->out, chip, cell); // HDU for cell
     137            if (!hdu || hdu->blankPHU) {
     138                pmCellWrite(cell, data->outFile, config->database, true); // Write header only
     139                continue;
     140            }
    135141            if (cell->hdu) {
    136142                // Data will exist soon
     
    138144                chip->data_exists = cell->data_exists = true;
    139145            }
    140             pmCellWrite(cell, data->outFile, config->database, true); // Write header only
    141146            pmReadout *readout = pmReadoutAlloc(cell); // Output readout of interest
    142147            psArray *stack = psArrayAlloc(filenames->n); // Stack of readouts to combine
     
    155160
    156161            // Put version metadata into header
    157             pmHDU *hdu = pmHDUFromCell(cell);
    158162            if (hdu && hdu != lastHDU) {
    159163                if (!hdu->header) {
Note: See TracChangeset for help on using the changeset viewer.