IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 19, 2007, 12:22:18 PM (18 years ago)
Author:
Paul Price
Message:

ppMerge wasn't calling pmFPAUpdateNames, so output headers didn't have required keywords.

File:
1 edited

Legend:

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

    r15380 r15651  
    108108    pmFPAview *view = pmFPAviewAlloc(0);// View of FPA, for iteration
    109109    int cellNum = -1;                   // Cell number in the whole FPA
     110    if (data->out->hdu) {
     111        pmFPAUpdateNames(data->out, NULL, NULL);
     112    }
    110113    pmFPAWrite(data->out, data->outFile, config->database, true, false); // Write header only
    111114    pmChip *chip;                       // Chip of interest
     
    116119    }
    117120    while ((chip = pmFPAviewNextChip(view, fpa, 1))) {
    118         if (chip->hdu && chip->hdu->header) {
    119             // Data will exist soon
    120             chip->data_exists = true;
     121        if (chip->hdu) {
     122            pmFPAUpdateNames(data->out, chip, NULL);
     123            if (chip->hdu->header) {
     124                // Data will exist soon
     125                chip->data_exists = true;
     126            }
    121127        }
    122128        pmChipWrite(chip, data->outFile, config->database, true, false); // Write header only
     
    124130        while ((cell = pmFPAviewNextCell(view, fpa, 1))) {
    125131            cellNum++;
    126             if (cell->hdu && cell->hdu->header) {
    127                 // Data will exist soon
    128                 chip->data_exists = true;
     132            if (cell->hdu) {
     133                pmFPAUpdateNames(data->out, chip, cell);
     134                if (cell->hdu->header) {
     135                    // Data will exist soon
     136                    chip->data_exists = true;
     137                }
    129138            }
    130139            pmCellWrite(cell, data->outFile, config->database, true); // Write header only
Note: See TracChangeset for help on using the changeset viewer.