IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13906


Ignore:
Timestamp:
Jun 19, 2007, 4:56:59 PM (19 years ago)
Author:
Paul Price
Message:

Fix to ensure blank PHUs are written for the output file. If there's a blank PHU there, we intend to write it out (because it's put in at the right place when we are doing ppMergeCheckInputs), so set the data_exists flag to ensure it is written out.

File:
1 edited

Legend:

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

    r13880 r13906  
    116116    }
    117117    while ((chip = pmFPAviewNextChip(view, fpa, 1))) {
     118        if (chip->hdu && chip->hdu->header) {
     119            // Data will exist soon
     120            chip->data_exists = true;
     121        }
    118122        pmChipWrite(chip, data->outFile, config->database, true, false); // Write header only
    119123        pmCell *cell;                   // Cell of interest
    120124        while ((cell = pmFPAviewNextCell(view, fpa, 1))) {
    121125            cellNum++;
     126            if (cell->hdu && cell->hdu->header) {
     127                // Data will exist soon
     128                chip->data_exists = true;
     129            }
    122130            pmCellWrite(cell, data->outFile, config->database, true); // Write header only
    123131            pmReadout *readout = pmReadoutAlloc(cell); // Output readout of interest
Note: See TracChangeset for help on using the changeset viewer.